core

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMySQLClient added in v1.1.0

func CreateMySQLClient() database.MySQLDB

CreateMySQLClient Create a new MySQL Client, so we can make a connection to a database.

func MigrateDB

func MigrateDB(db *sql.DB, dbName string, data []models.DBMigrationData)

MigrateDB Given a connection string and an array of `MigrationData` scripts, will attempt to run the migrations against your database. If this is the first time you use this tool, it will auto create a `migrations` table on the database first. Migrations are stored in that table, and you can go query the database directly to check the status of a particular migration.

Types

This section is empty.

Jump to

Keyboard shortcuts

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