tursodatabase / tursodatabase/libsql-client-ts

access to local sqlite file

Open
#285 4 comments 11 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
576
Forks
69
PR merge metrics
No merged PRs in 30d

Description

When I try to access to local sqlite file a get the error:

URL_SCHEME_NOT_SUPPORTED: The client that uses Web standard APIs supports only "libsql:", "wss:", "ws:", "https:" and "http:" URLs, got "file:". For more information, please read https://github.com/libsql/libsql-client-ts#supported-urls

I access exactly the same than is in the example: https://github.com/tursodatabase/libsql-client-ts/blob/main/examples/local/index.mjs#L3

Contributor guide

Open the contributing guide

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 with examples/local/index.mjs and reproduce the reported file: URL error using the documented example. Trace how the local SQLite URL is passed to the client and compare it with the supported URL schemes in the error and linked documentation. Done means the local example can access the SQLite file without the URL scheme error, with regression coverage if the repository provides a suitable test location.

Written by the indexing model from the issue text.

Assessment

Tech stack
sqlite, typescript
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.