rdb

package
v0.0.0-...-70faa52 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result interface {
	LastInsertID() (int64, error)
	RowsAffected() (int64, error)
}

Result contains meta data of a query that was executed

type Row

type Row interface {
	Scan(...interface{}) error
	StructScan(interface{}) error
}

Row contains the data from a query

type Rows

type Rows interface {
	Scan(...interface{}) error
	StructScan(interface{}) error
	Next() bool
	Close() error
}

Rows contains the data from a query

type SQLHandler

type SQLHandler interface {
	Begin() (TxHandler, error)
	// contains filtered or unexported methods
}

SQLHandler knows how to run queries against itself

type TxHandler

type TxHandler interface {
	Commit() error
	Rollback() error
	// contains filtered or unexported methods
}

TxHandler is a SQLHandler in a transaction context

Jump to

Keyboard shortcuts

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