dbm

package
v0.0.0-...-4b97b8a Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package dbm is a database management package. It allows us to interact with sql database via using sqlx.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Migrate

func Migrate(c *cfg.DB) error

Migrate runs the migrations scripts in scripts folder

Types

type DBM

type DBM struct {
	DB *sqlx.DB
}

DBM is the database management struct

func Init

func Init(c *cfg.DB) (*DBM, error)

Init creates a connection to our database via sqlx

Jump to

Keyboard shortcuts

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