Documentation ¶ Overview ¶ Package db wraps. Index ¶ func DB() *sqlx.DB func DownMigrate(migrationsDir string) error func Init() Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func DB ¶ func DB() *sqlx.DB DB returns a pointer to the configured database abstraction for this pkg. func DownMigrate ¶ func DownMigrate(migrationsDir string) error DownMigrate down-migrates all migration files in migrationsDir. func Init ¶ func Init() Init configures the current pkg using env vars (via initialize). While using init would be nice, Init allows us to be more explicit in different environments and helps to enforce one-time initialization. Types ¶ This section is empty. Source Files ¶ View all Source files db.go Click to show internal directories. Click to hide internal directories.