sequel

package
v0.0.0-...-dc1fca4 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IterateQuery

func IterateQuery(con Con, q string, opt *IterateOpt) (*sql.Rows, error)

func ScanJSON

func ScanJSON(i interface{}) *jsonScanner

to be used with rows.Scan(scanJSON(&u.Tags))

func ScanUUID

func ScanUUID(s *string) *uuidScanner

Types

type Con

type Con interface {
	QueryRow(query string, args ...interface{}) *sql.Row
	Query(query string, args ...interface{}) (*sql.Rows, error)
	Prepare(query string) (*sql.Stmt, error)
	Exec(query string, args ...interface{}) (sql.Result, error)
}

type IterateOpt

type IterateOpt struct {
	ExtraSQL string
	Args     []interface{}
}

func NewIterateOpt

func NewIterateOpt(q string, args ...interface{}) *IterateOpt

type QueryResult

type QueryResult struct {
	Columns []string
	Rows    [][]interface{}
}

func QueryGeneric

func QueryGeneric(con Con, q string, args ...interface{}) (*QueryResult, error)

type UUID

type UUID string

func (*UUID) Scan

func (u *UUID) Scan(src interface{}) error

func (UUID) Value

func (u UUID) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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