Skip to content

Read-only in-memory databases don't work for tests #84

@tpoliaw

Description

@tpoliaw

By design, every sqlite connection to :memory: returns a new in memory DB. This means in a connection pool, every connection is using a different DB and later connections do not see the tables created by running the migrations on the first.

It is possible to specify a name and shared cache for the connection but it doesn't seem to be possible for some connections to be read-only while others are read-write.

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions