Documentation
¶
Index ¶
- func IsPragmaEmpty(rows map[string]string) bool
- type DB
- func (db *DB) Exec(query string, args ...any) error
- func (db *DB) HealthCheck() error
- func (db *DB) PragmaOf(name string) (map[string]string, error)
- func (db *DB) Raw() *sqlx.DB
- func (db *DB) RegisterTables(tables ...tables.Table) *DB
- func (db *DB) ReplaceTables(tables ...tables.Table) *DB
- func (db *DB) Select(columns interface{}, query string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsPragmaEmpty ¶
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
Uses *sqlx.DB under the hood
func (*DB) HealthCheck ¶
func (*DB) RegisterTables ¶
Adds the tables into internal memory for use
func (*DB) ReplaceTables ¶
Replace the internal memory tables
Source Files
¶
Click to show internal directories.
Click to hide internal directories.