sql

package
v0.0.0-...-c52fe67 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	ModelContext(c context.Context, model ...interface{}) *orm.Query
	ExecContext(c context.Context, query interface{}, params ...interface{}) (orm.Result, error)
	ExecOneContext(c context.Context, query interface{}, params ...interface{}) (orm.Result, error)
	QueryContext(c context.Context, model, query interface{}, params ...interface{}) (orm.Result, error)
	QueryOneContext(c context.Context, model, query interface{}, params ...interface{}) (orm.Result, error)

	GetConnection() *pg.DB
}

type TransactionBeginner

type TransactionBeginner interface {
	Begin() (TransactionHandler, error)
}

type TransactionHandler

type TransactionHandler interface {
	Handler
	Commit() error
	Rollback() error
}

Jump to

Keyboard shortcuts

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