Categorygithub.com/rickbassham/database
modulepackage
1.0.2
Repository: https://github.com/rickbassham/database.git
Documentation: pkg.go.dev

# README

database

Wrapper around sqlx

# Packages

No description provided by the author

# Functions

New creates a new wrapper around a sqlx.DB.

# Variables

ErrUnregisteredStatement is returned when there is an attempt to execute a statement that was not previously registered.

# Structs

Database is our wrapper around sqlx which enforces correctness of queries.

# Interfaces

DB represents the functions needed to access the db.
Middleware represents something you want to run on every query.
Tx represents the functions needed to operate in a transaction.