db

package
v0.0.0-...-97aba97 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ENV string
	DB  *sqlx.DB
)

ENV holds the environment we are using and exposes the global DB reference

Functions

func ConnectDB

func ConnectDB()

ConnectDB instantiates a mysql connection

func MakeTables

func MakeTables()

MakeTables will start mysql db migration

func SetEnvironment

func SetEnvironment()

SetEnvironment reads the loaded .env file and sets the environment

Types

This section is empty.

Jump to

Keyboard shortcuts

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