Documentation ¶
Index ¶
- type DBPool
- func (p *DBPool) Close() error
- func (p *DBPool) Delete(query string, args ...interface{}) error
- func (p *DBPool) Insert(query string, args ...interface{}) (int64, error)
- func (p *DBPool) Query(query string, args ...interface{}) (*sql.Rows, error)
- func (p *DBPool) Update(query string, args ...interface{}) error
- type SqliteDB
- func (db *SqliteDB) Begin() (*sql.Tx, error)
- func (db *SqliteDB) Close() error
- func (db *SqliteDB) Delete(query string, args ...interface{}) (sql.Result, error)
- func (db *SqliteDB) Exec(query string, args ...interface{}) (sql.Result, error)
- func (db *SqliteDB) Insert(query string, args ...interface{}) (sql.Result, error)
- func (db *SqliteDB) Open() error
- func (db *SqliteDB) Prepare(query string) (*sql.Stmt, error)
- func (db *SqliteDB) Query(query string, args ...interface{}) (*sql.Rows, error)
- func (db *SqliteDB) QueryRow(query string, args ...interface{}) (*sql.Row, error)
- func (db *SqliteDB) Update(query string, args ...interface{}) (sql.Result, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SqliteDB ¶
SqliteDB represents the SQLite database
func NewSqliteDB ¶
func NewSqliteDB() *SqliteDB
NewSqliteDB initializes a new instance of the SqliteDB struct
Click to show internal directories.
Click to hide internal directories.