sqlite

package
v1.0.35 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoundValue

func BoundValue(v reflect.Value) (interface{}, error)

BoundValue returns a bound value from an arbitary value, which needs to be a scalar (not a map or slice) or a time.Time, []byte

func BoundValues

func BoundValues(v []interface{}) ([]sql.Value, error)

BoundValues decodes a set of values into a form which can be accepted by Exec or Query, which supports int64, float64, string, bool, []byte, and time.Time returns any errors

func New

func New(location ...*time.Location) (SQConnection, error)

Create an in-memory database and optionally set the timezone

func NewRows

func NewRows(r *driver.SQLiteRows) sqlite.SQRows

func Open

func Open(path string, location *time.Location) (SQConnection, error)

Open a database and set the timezone

func UnboundValue

func UnboundValue(v interface{}, t reflect.Type) (reflect.Value, error)

Unbound value returns a value of type t from an arbitary value which needs to be uint, int, float, string, bool, []byte, or time.Time if v is nil then zero value is assigned

func Version

func Version() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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