db

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package db provides database functionality for quad-ops.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

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

Connect establishes a connection to the database.

func Down

func Down(cfg config.Settings) error

Down rolls back all database migrations.

func GetConnectionString

func GetConnectionString(cfg config.Settings) string

GetConnectionString returns the database connection string.

func Up

func Up(cfg config.Settings) error

Up runs database migrations to latest version.

Types

This section is empty.

Jump to

Keyboard shortcuts

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