database

package
v0.0.0-...-90015ba Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, dsn string) (*sqlx.DB, error)

New returns DB

func StatementBuilder

func StatementBuilder() sq.StatementBuilderType

func WithTx

func WithTx(ctx context.Context, db *sqlx.DB, il sql.IsolationLevel, fn func(context.Context, *sqlx.Tx) error) error

Types

type GetContexter

type GetContexter interface {
	GetContext(context.Context, interface{}, string, ...interface{}) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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