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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址