Giter Club home page Giter Club logo

Comments (7)

noam-honig avatar noam-honig commented on June 10, 2024 2

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.

noam-honig avatar noam-honig commented on June 10, 2024

@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.

kk7771 avatar kk7771 commented on June 10, 2024

@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.

noam-honig avatar noam-honig commented on June 10, 2024

@kk7771 Don't close it yet - it shouldn't be too much work - when do you need this?

from remult.

kk7771 avatar kk7771 commented on June 10, 2024

@noam-honig No hurry bro, I'm just trying out the possibilities of remult in bun:sqlite 😁

from remult.

noam-honig avatar noam-honig commented on June 10, 2024

Ok - If you want to play, checkout this code:

export class SqlJsDataProvider implements SqlImplementation {

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.

noam-honig avatar noam-honig commented on June 10, 2024

Released in https://github.com/remult/remult/releases/tag/v0.26.0

from remult.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.