delaneyj / toolbelt

A set of utilities used in every go project
MIT License
12 stars 3 forks source link

Add foreign key constraints to all write connections #6

Closed lllama closed 1 month ago

lllama commented 1 month ago

Uses the PrepareConn PoolOption (https://pkg.go.dev/zombiezen.com/go/sqlite/sqlitex#PoolOptions) to set PRAGMA foreign_keys=on for each write connection.