infrastructure

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SqliteHandler

type SqliteHandler struct {
	Conn *sql.DB
}

SqliteHandler structure

func NewSqliteHandler

func NewSqliteHandler(dbfilename string) *SqliteHandler

NewSqliteHandler get a new sqlite handler

func (*SqliteHandler) Execute

func (handler *SqliteHandler) Execute(statement string)

Execute statement

func (*SqliteHandler) Query

func (handler *SqliteHandler) Query(statement string) interfaces.Row

Query expression

type SqliteRow

type SqliteRow struct {
	Rows *sql.Rows
}

SqliteRow structure

func (SqliteRow) Next

func (r SqliteRow) Next() bool

Next record

func (SqliteRow) Scan

func (r SqliteRow) Scan(dest ...interface{})

Scan a row

Jump to

Keyboard shortcuts

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