apache / apache/arrow-adbc

Detect SQLITE database locked

Open
#3,895 5 comments 0 reactions 0 assignees View on GitHub
Type: question
Dominant language
C#
Stars
627
Forks
217
Avg merge
17h
Merged PRs (30d)
57

Description

### What would you like help with?

Hi,

Is there an explicit error code that would allow me to detect when a SQLITE update/insert fails because the database is locked? Currently I'm checking if the `message` field from `AdbcError` ends with `database is locked`, but that feels brittle.

Thanks.

Contributor guide

Open the contributing guide

Research direction

Start by tracing how SQLite reports a locked database and how that failure is exposed through AdbcError; the issue names no source files or tests. The work is complete when callers can reliably identify the locked-database condition without matching the message text, with coverage for the resulting error behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, sqlite
Domain
database
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.