Versions in this module Expand all Collapse all v1 v1.0.1 Mar 17, 2016 v1.0.0 Feb 3, 2016 Changes in this version + const BigInt + const BigRat + const Blob + const Bool + const Complex128 + const Complex64 + const Duration + const Float32 + const Float64 + const Int16 + const Int32 + const Int64 + const Int8 + const String + const Time + const Uint16 + const Uint32 + const Uint64 + const Uint8 + func Marshal(v interface{}) ([]interface{}, error) + func MustMarshal(v interface{}) []interface + func RegisterDriver() + func RegisterMemDriver() + func Unmarshal(v interface{}, data []interface{}) (err error) + type ColumnInfo struct + Constraint string + Default string + Name string + NotNull bool + Type Type + type DB struct + func OpenFile(name string, opt *Options) (db *DB, err error) + func OpenMem() (db *DB, err error) + func (db *DB) Close() error + func (db *DB) Execute(ctx *TCtx, l List, arg ...interface{}) (rs []Recordset, index int, err error) + func (db *DB) Flush() (err error) + func (db *DB) Info() (r *DbInfo, err error) + func (db *DB) Name() string + func (db *DB) NewHTTPFS(query string) (*HTTPFS, error) + func (db *DB) Run(ctx *TCtx, ql string, arg ...interface{}) (rs []Recordset, index int, err error) + type DbInfo struct + Indices []IndexInfo + Name string + Tables []TableInfo + type HTTPFS struct + func (f *HTTPFS) Open(name string) (http.File, error) + type HTTPFile struct + func (f *HTTPFile) Close() error + func (f *HTTPFile) IsDir() bool + func (f *HTTPFile) ModTime() time.Time + func (f *HTTPFile) Mode() os.FileMode + func (f *HTTPFile) Name() string + func (f *HTTPFile) Read(b []byte) (int, error) + func (f *HTTPFile) Readdir(count int) ([]os.FileInfo, error) + func (f *HTTPFile) Seek(offset int64, whence int) (int64, error) + func (f *HTTPFile) Size() int64 + func (f *HTTPFile) Stat() (os.FileInfo, error) + func (f *HTTPFile) Sys() interface{} + type IndexInfo struct + Column string + ExpressionList []string + Name string + Table string + Unique bool + type List struct + func Compile(src string) (List, error) + func MustCompile(src string) List + func MustSchema(v interface{}, name string, opt *SchemaOptions) List + func Schema(v interface{}, name string, opt *SchemaOptions) (List, error) + func (l List) IsExplainStmt() bool + func (l List) String() string + type Options struct + CanCreate bool + OSFile lldb.OSFile + TempFile func(dir, prefix string) (f lldb.OSFile, err error) + type Recordset interface + Do func(names bool, f func(data []interface{}) (more bool, err error)) error + Fields func() (names []string, err error) + FirstRow func() (row []interface{}, err error) + Rows func(limit, offset int) (rows [][]interface{}, err error) + type SchemaOptions struct + KeepPrefix bool + NoIfNotExists bool + NoTransaction bool + type StructField struct + Index int + IsID bool + IsPtr bool + MarshalType reflect.Type + Name string + ReflectType reflect.Type + Tags map[string]string + Type Type + UnmarshalType reflect.Type + ZeroPtr reflect.Value + type StructIndex struct + ColumnName string + Name string + Unique bool + type StructInfo struct + Fields []*StructField + HasID bool + Indices []*StructIndex + IsPtr bool + func MustStructSchema(v interface{}) *StructInfo + func StructSchema(v interface{}) (*StructInfo, error) + type TCtx struct + LastInsertID int64 + RowsAffected int64 + func NewRWCtx() *TCtx + type TableInfo struct + Columns []ColumnInfo + Name string + type Type int + func (t Type) String() string