db

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunMigrations

func RunMigrations(dbConn *sqlx.DB, env string) error

RunMigrations applies up migrations to the DB.

func Setup

func Setup(
	env string,
) (*sqlx.DB, error)

Setup connects to the DB, sets PRAGMAs, and runs migrations.

func SetupTestDB

func SetupTestDB() (*sqlx.DB, error)

SetupTestDB creates an in-memory SQLite DB and runs migrations.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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