tursodatabase / tursodatabase/libsql

Docs for `Builder` should include example on how to construct an in-memory DB

Open
#1,307 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
17.2k
Forks
531
Avg merge
1h 12m
Merged PRs (30d)
1

Description

Recently upgraded from 0.2 to 0.3. Had to dig through the code to figure out that Builder::new_local(":memory:") is what replaces the deprecated Database::open_in_memory() because it's not immediately obvious that :memory: is a valid path

Edit: I realize now that it's a sqlite thing but itd be nice to confirm that the option is supported

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 by locating the documentation for Builder::new_local and the deprecated Database::open_in_memory() API. Add an example showing how to construct an in-memory database with ":memory:", and make clear that this option is supported; verify the example against the relevant documentation or API usage.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, sqlite
Domain
databases, documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.