godb

package
v0.0.0-...-abbe36b Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ScanRows

func ScanRows(rows *sql.Rows) ([]map[string]interface{}, error)

Types

type DB

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

func Open

func Open(driverName, dataSourceName string) (*DB, error)

func (*DB) Exec

func (db *DB) Exec(query string, args ...Param) (int64, error)

func (*DB) GetDebug

func (db *DB) GetDebug() bool

func (*DB) Query

func (db *DB) Query(query string, args ...Param) (*sql.Rows, error)

func (*DB) SetDebug

func (db *DB) SetDebug(debug bool)

type Param

type Param map[string]interface{}

type RawValue

type RawValue string

Jump to

Keyboard shortcuts

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