tursodatabase / tursodatabase/libsql
Support shared in memory DBs
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 17.2k
- Forks
- 531
- Avg merge
- 1h 12m
- Merged PRs (30d)
- 1
Description
libsql driver doesnt support shared in memory databases - https://www.sqlite.org/inmemorydb.html
open("file::memory:?cache=shared")
this will open an in memory DB and any connection in the same process, can access the same in memory db. This is very handy in tests.
bug reported here: https://discord.com/channels/933071162680958986/1235911696288317471
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 tracing how the libsql driver handles the URI file::memory:?cache=shared, using SQLite's in-memory database documentation and the linked bug report as context. Add coverage showing that connections opened in the same process share the in-memory database, and verify the behavior with the relevant driver tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, sqlite
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100