tursodatabase / tursodatabase/libsql
libsql crate: honor URI for opening databases, not just paths
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 17.2k
- Forks
- 531
- Avg merge
- 1h 12m
- Merged PRs (30d)
- 1
Description
It's customary for SQLite and libSQL apis (e.g. rusqlite as well) to allow passing the database path in URI form, so not just /tmp/test.db, but e.g. file:/tmp/test.db?vfs=unix-dotfile or file:/tmp/test.db?exclusive=1. We should honor that. We already parse http/https protocols with the url crate, and it should be capable of handling sqlite uri format too.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the libsql crate's database-opening entry point and its existing http/https URL parsing with the url crate. Check how SQLite URI forms such as file:/tmp/test.db?vfs=unix-dotfile are currently handled. Done means database paths supplied in SQLite URI form are honored, with verification covering the examples in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust, sqlite
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100