database

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 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)
}

type Row

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

type SqlHandler

type SqlHandler interface {
	Exec(string, ...interface{}) (Result, error)
	Query(string, ...interface{}) (Row, error)
	Transaction(func() (interface{}, error)) (interface{}, error)
	MultiExec(string) error
	Close() error
}

Jump to

Keyboard shortcuts

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