sql

package
v0.0.0-...-6725582 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mware

func Mware(name string, sql isql.ReplicaSet) func(app.Tlbx)

Types

type Client

type Client interface {
	Base() isql.ReplicaSet
	Begin() Tx
	ClientCore
}

func Get

func Get(tlbx app.Tlbx, name string) Client

type ClientCore

type ClientCore interface {
	Exec(query string, args ...interface{}) (sql.Result, error)
	Query(rowsFn func(isql.Rows), query string, args ...interface{}) error
	QueryRow(query string, args ...interface{}) isql.Row
}

type Tx

type Tx interface {
	ClientCore
	Rollback()
	Commit()
}

Jump to

Keyboard shortcuts

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