Skip to content

Read/Write Locks Database #5

@archiewood

Description

@archiewood

To Reproduce

  1. Open a Read/Write connection using SQLTools to a duckdb
  2. (Don't run any queries)
  3. Attempt to access the duckdb from another client

Expected result

Another client should be able to access the duckdb

(Assuming no read/write queries are currently running)

Actual result

A .wal file is generated for the db, suggesting there are changes to the DB that are yet to be commited

IO Error: Could not set lock on file "../../needful_things.duckdb": Resource temporarily unavailable

Extra Context

See #4

This is somewhat by design from duckdb, but we should be able to close the readwrite connection after a query has finished / when there are no queries running.

I think core SQLTools is doing something unexpected here on connection which

Workarounds

  1. Either: Running any query from duckdb SQLTools seems to clear the .wal and close the connection
  2. Or: Manually close the connection from the duckdb sidebar

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions