Let the SQLite busy timeout be set, as DATABASE_CONNECTION_TIMEOUT sets it in Drivine for TypeScript

Open Beginner friendly
#463 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
82/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
python, sqlite
Domain
database

Research direction

Start with the SQLite connection builder and the SQLite section of docs/02-connecting.md; compare how the TypeScript version reads DATABASE_CONNECTION_TIMEOUT. Add support for the environment variable and builder setting with a 30-second default, then document the option. Done when both configuration paths set the timeout and the docs describe the default.

Written by the indexing model from the issue text.

Description

enhancement

Drivine for TypeScript lets you set how long a SQLite connection waits for the file's write lock, with DATABASE_CONNECTION_TIMEOUT. drivine-python fixes it at 30 seconds, and its connection builder can't set it.

Fix: read the same setting, from the environment variable and the builder, with 30 seconds as the default. Document it in docs/02-connecting.md's SQLite section.

Found while moving the README's SQLite section into the docs (#460). This is outside the compiler, so it's a normal fix.

Dominant language
Python
Stars
2
Forks
0
Avg merge
3h 40m
Merged PRs (30d)
219

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from liberation-data/drivine-python

All issues in liberation-data/drivine-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.