Skip to content

Mechanism to make memory DB created by sqlite-utils memory available to other commands #643

@simonw

Description

@simonw

For an experimental feature for https://github.com/simonw/sqlite-utils-ask I found myself wanting to invoke the existing sqlite-utils memory command and then do something else with the memory database it created.

I can do this with a sqlite_utils.Database(memory_name="x") but I need to ensure the variable doesn't go out of scope or it will be dropped by the sqlite3 library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions