db

package
v0.0.0-...-d10edbe Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2025 License: MIT Imports: 10 Imported by: 0

README

Contents

Database migration files. These could be SQL files or migration scripts using tools like golang-migrate.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForceMigration

func ForceMigration(conf *common.RDBConfig)

ForceMigration applies the database migration based on the update scripts in migrations folder If migration fails it resolves the dirty flag in the database before shuttin down the application

func InitDB

func InitDB(conf *common.RDBConfig) (*sqlx.DB, error)

InitDB sets up the database connection pool

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL