Skip to content

Foreign key support in SQLite #167

@foldu

Description

@foldu

If you want to use foreign keys in SQLite you need to enable them with PRAGMA FOREIGN KEYS = ON; on every new connection (see Section 2 of https://sqlite.org/foreignkeys.html).
It would be nice if sqlx's Pool had support for automatically doing this when it establishes a new connection.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions