tursodatabase / libsql-js

A better-sqlite3 compatible API for libSQL that supports Bun, Deno, and Node
MIT License
191 stars 22 forks source link

Knex compatibility #96

Open e-lobo opened 6 months ago

e-lobo commented 6 months ago

I'm getting the following errors when using with knex.

Im using the database export from the pormise.js file

  1. statement.run is undefined. i noticed this when running knex.raw()
  2. types are not exported of promise.js so in a ts file import Database from 'libsql/promise'
penberg commented 3 months ago

Promise types were added in https://github.com/tursodatabase/libsql-js/commit/f7d550ff8844a7a0d24abe2dde71c23163609116