sqlite

package
v1.2.13 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2020 License: LGPL-2.1 Imports: 5 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Column

type Column struct {
	Name    string
	Type    string
	Default string
	Index   bool
	Unique  bool
}

type Sqlite

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

func InitializeDatabase

func InitializeDatabase(path string) (*Sqlite, error)

func (*Sqlite) Exec

func (s *Sqlite) Exec(query string, args ...interface{}) (ret sql.Result, err error)

func (*Sqlite) InitializeTable

func (s *Sqlite) InitializeTable(t Table) error

func (*Sqlite) Prepare

func (s *Sqlite) Prepare(query string) (stmt *sql.Stmt, err error)

func (*Sqlite) Query

func (s *Sqlite) Query(query string, args ...interface{}) (rows *sql.Rows, err error)

type Table

type Table struct {
	Name    string
	Columns []Column
}

Jump to

Keyboard shortcuts

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