tursodatabase / tursodatabase/libsql-js

Knex compatibility

Open
#96 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
335
Forks
48
Avg merge
3d 2h
Merged PRs (30d)
3

Description

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'

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the database export in promise.js and reproducing the two reported cases with knex.raw() and a TypeScript import from libsql/promise. Trace why statement.run is unavailable and why the promise.js types are not exported; done means both cases work with the expected API and types.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, sqlite, typescript
Domain
backend, database
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.