database

package
v0.0.0-...-71b7c7e Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	// contains filtered or unexported fields
}

func NewDB

func NewDB(db, connect string) (*DB, error)

func (*DB) Close

func (db *DB) Close()

func (*DB) Exec

func (db *DB) Exec(execute string, args ...any) (int64, error)

func (*DB) Fetch

func (db *DB) Fetch(query string, args ...any) []any

func (*DB) Foreach

func (db *DB) Foreach(query string, args ...any) *Rows

func (*DB) GetData

func (db *DB) GetData(query string, args ...any) [][]any

type Rows

type Rows struct {
	// contains filtered or unexported fields
}

func (*Rows) Next

func (r *Rows) Next() bool

func (*Rows) Scan

func (r *Rows) Scan(dest ...any) error

func (*Rows) SliceScan

func (r *Rows) SliceScan() ([]interface{}, error)

Jump to

Keyboard shortcuts

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