Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Module("db", fx.Provide( NewPgxPool, NewDb, ), fx.Invoke(RegisterDBPoolHooks), )
Module is the fx module for the database.
Functions ¶
func NewPgxPool ¶
func NewPgxPool(cfg *config.ServerConfig) (*pgxpool.Pool, error)
NewPgxPool creates a new postgres pool.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.