database

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect() (*sql.DB, error)

Connect returns a database after initializing the connection and pinging the server.

func HandleFirstStart

func HandleFirstStart() error

HandleFirstStart execute operations when you start the server with an empty database.

func Migrate

func Migrate(db *sql.DB) error

Migrate uses the migrations files to migrate database versions.

Types

This section is empty.

Jump to

Keyboard shortcuts

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