sqlite

package module
v0.0.0-...-a94a0ae Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

README

sqlite wrapper whith some useful functions

it uses modernc.org/sqlite CGo-free port of SQLite

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ERESULT

type ERESULT struct {
	RowAffected  int64
	LastInsertID int64
}

type ROWS

type ROWS struct {
	// contains filtered or unexported fields
}

func (*ROWS) Close

func (r *ROWS) Close()

func (*ROWS) Next

func (r *ROWS) Next() bool

func (*ROWS) Scan

func (r *ROWS) Scan(val ...interface{})

type SQLITE

type SQLITE struct {
	SQL  db.Driver
	Conn driver.Conn
}

func (*SQLITE) Close

func (sql *SQLITE) Close()

func (*SQLITE) Connect

func (sql *SQLITE) Connect(fname string) error

func (*SQLITE) EXEC

func (sql *SQLITE) EXEC(q string) ERESULT

func (*SQLITE) Insert

func (sql *SQLITE) Insert(tbs string, feilds string, val ...interface{}) ERESULT

func (*SQLITE) Query

func (sql *SQLITE) Query(q string) ROWS

func (*SQLITE) Update

func (sql *SQLITE) Update(tbs string, where string, feilds string, val ...interface{}) ERESULT

Jump to

Keyboard shortcuts

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