internal

package
v0.0.32 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoGetterFound   = errors.New("No getter found")
	ErrNoDeleterFound  = errors.New("No deleter found")
	ErrNoSelecterFound = errors.New("No getter found")
	ErrNoUpdaterFound  = errors.New("No updater found")
	ErrNoInserterFound = errors.New("No inserter found")
)

Functions

This section is empty.

Types

type DatabaseTransactions

type DatabaseTransactions struct {
	*sqlx.Tx
}

func (*DatabaseTransactions) Count

func (database_transaction *DatabaseTransactions) Count(
	qx object_model.Queryx) (
	int,
	error)

func (*DatabaseTransactions) Delete

func (database_transaction *DatabaseTransactions) Delete(
	o interface{}) error

func (*DatabaseTransactions) Get

func (database_transaction *DatabaseTransactions) Get(
	o interface{},
	qx object_model.Queryx) error

func (*DatabaseTransactions) Insert

func (database_transaction *DatabaseTransactions) Insert(
	o interface{}) error

func (*DatabaseTransactions) Selectx

func (database_transaction *DatabaseTransactions) Selectx(
	transactionObject interface{},
	query object_model.Queryx,
	options ...object_model.SelectOptions) error

func (*DatabaseTransactions) Update

func (database_transaction *DatabaseTransactions) Update(
	o interface{}) error

type Deleter

type Deleter interface {
	Delete(*sqlx.Tx) error
}

type Getter

type Getter interface {
	Get(
		*sqlx.Tx,
		object_model.Queries,
		...interface{}) error
}

type Inserter

type Inserter interface {
	Insert(
		*sqlx.Tx) error
}

type Selecter

type Selecter interface {
	Select(
		*sqlx.Tx,
		object_model.Queries,
		...interface{}) error
}

type Updater

type Updater interface {
	Update(
		*sqlx.Tx) error
}

Jump to

Keyboard shortcuts

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