database

package
v0.11.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec added in v0.11.3

func Exec(ctx context.Context, db DB, query string, args []interface{}) (sql.Result, error)

func GetTable

func GetTable(m any) string

func GetTableSingular

func GetTableSingular(m any) string

Types

type DB added in v0.7.1

type DB interface {
	sqlx.QueryerContext
	sqlx.ExecerContext
}

type Read added in v0.10.2

type Read func(func(tx *sqlx.Tx) error) error

func NewRead added in v0.11.3

func NewRead(ctx context.Context, db DB) Read

type Tabler

type Tabler interface {
	Table() string
}

type Update added in v0.10.2

type Update func(func(tx *sqlx.Tx) error) error

func NewUpdate added in v0.11.3

func NewUpdate(ctx context.Context, db DB) Update

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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