flexsqlite

package module
v0.0.0-...-0ee2be2 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	rdbms.Connection
	// contains filtered or unexported fields
}

Connection implementation of dbflex.IConnection

func (*Connection) Close

func (c *Connection) Close()

Close database connection

func (*Connection) Connect

func (c *Connection) Connect() error

Connect to database instance

func (*Connection) DropTable

func (c *Connection) DropTable(name string) error

DropTable - delete table

func (*Connection) EnsureTable

func (c *Connection) EnsureTable(name string, keys []string, obj interface{}) error

EnsureTable ensure existence and structures of the table

func (*Connection) NewQuery

func (c *Connection) NewQuery() dbflex.IQuery

NewQuery generates new query object to perform query action

func (*Connection) State

func (c *Connection) State() string

type Cursor

type Cursor struct {
	rdbms.Cursor
}

Cursor represent cursor object. Inherits Cursor object of rdbms drivers and implementation of dbflex.ICursor

func (*Cursor) Serialize

func (c *Cursor) Serialize(dest interface{}) error

type ExecType

type ExecType int

ExecType to identify type of exec

const (
	ExecQuery ExecType = iota
	ExecNonQuery
	ExecQueryRow
)

type Query

type Query struct {
	rdbms.Query
	// contains filtered or unexported fields
}

Query implementaion of dbflex.IQuery

func (*Query) Cursor

func (q *Query) Cursor(in toolkit.M) dbflex.ICursor

Cursor produces a cursor from query

func (*Query) Execute

func (q *Query) Execute(in toolkit.M) (interface{}, error)

Execute will executes non-select command of a query

Jump to

Keyboard shortcuts

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