Documentation
¶
Overview ¶
Package database initializes Meta's GORM database connections.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
DB wraps the Meta service database connections.
SQLite uses separate write and read pools: the write pool is limited to one connection for SQLite's single-writer model, while the read pool allows concurrent read queries through WAL mode. Postgres uses the same GORM handle for reads and writes.
func (*DB) IsPostgres ¶
IsPostgres returns true when the database uses Postgres.
Click to show internal directories.
Click to hide internal directories.