database

package
v0.0.0-...-2307dbf Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseDefaultDb

func CloseDefaultDb()

Closes the default database connection pool

func DefaultDb

func DefaultDb() *sql.DB

Returns a connection pool object using the defualt connection uri

func RevertMigrations

func RevertMigrations() error

Revert all migrations under migrations file path NOTE: This function is used only while testing to cleanup database

func RunMigrations

func RunMigrations() error

Apply all migrations under migrations file path

Types

This section is empty.

Jump to

Keyboard shortcuts

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