sqlite

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigSQLite

type ConfigSQLite struct {
	DB DB `yaml:"sqlite"`
}

type DB

type DB struct {
	Init string `yaml:"init"`
	File string `yaml:"file"`
}

type SQLite

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

func MustNew

func MustNew(cfg *ConfigSQLite) *SQLite

func (*SQLite) Down

func (db *SQLite) Down() error

func (*SQLite) Exec

func (db *SQLite) Exec(query string, args ...interface{}) (r sql.Result, err error)

func (*SQLite) Query

func (db *SQLite) Query(query string, args ...interface{}) (r *sql.Rows, err error)

func (*SQLite) Up

func (db *SQLite) Up() error

Jump to

Keyboard shortcuts

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