Comments (7)
I've created an implementation for it, you can test it in our exp
version.
Try npm i remult@exp
And then use it in your code, here's my example:
import { Database } from "bun:sqlite";
import express from 'express'
import { remultExpress } from "remult/remult-express";
const app = express()
const api = remultExpress({
entities: [Task],
dataProvider: new SqlDatabase(new BunSqliteDataProvider(new Database(":memory:")))
})
app.use(api)
app.listen(3004)
Let me know what you think
from remult.
@kk7771 If knex supports it, we do to.
If not, can you point me to an example project that uses it, it shouldn't be hard to implement
from remult.
@noam-honig I've checked the documentation for knex etc and it seems to be unsupported at the moment. I'll close the issue first
from remult.
@kk7771 Don't close it yet - it shouldn't be too much work - when do you need this?
from remult.
@noam-honig No hurry bro, I'm just trying out the possibilities of remult in bun:sqlite 😁
from remult.
Ok - If you want to play, checkout this code:
remult/projects/core/remult-sql-js.ts
Line 17 in c5609d1
You can probably easily adjust it to use bun sql.
If you get to a point when it'll be more urgent for you, just let me know - I'll be happy to help
from remult.
Released in https://github.com/remult/remult/releases/tag/v0.26.0
from remult.
Related Issues (20)
- Backend method parameter typing issues HOT 12
- Problem using Multer and withRemult HOT 3
- Data too long for JSON Field HOT 15
- "remult" has no exported member named 'ArrayEntityDataProvider' HOT 5
- 403 forbidden even when user is allowed HOT 9
- Better way to type a string property as a union of string subtypes? HOT 5
- Hono and Elysia Backend Remult Support HOT 5
- 403 status livequery custom monorepo todo app HOT 18
- Issue with Repository 'find' Method: Syntax Error Results in Unintended Data Query HOT 3
- feature: ability to add Entity properties that related to Open API HOT 3
- Doc: Offline Support HOT 3
- Doc: DB Migrations HOT 4
- howto access the repo from backend HOT 5
- [Feature Request] allow customized query function HOT 7
- server backend build fails HOT 4
- problem customising viteconfig HOT 12
- toOne creates link fields in both tables HOT 1
- How can i custom the logic of compile the entity and filter to raw sql? HOT 16
- How to support multiple data provider HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from remult.