Versions in this module Expand all Collapse all v1 v1.0.1 Oct 1, 2024 Changes in this version + func Entities[T tables.Table](db *DB, table *[]T, query string) error + func SingleEntity[T tables.Table](db *DB, table *T, query string) error v1.0.0 Oct 1, 2024 Changes in this version + const COUNTDOWN + const INSTANT_ENV + const MIGRATE_ENV + var EmptyErr = errors.New("Result is empty") + func GetEntities[T tables.Table](db *DB, table *[]T, query string) error + func GetSingleEntity[T tables.Table](db *DB, table *T, query string) error + func IsPragmaEmpty(rows pragma) bool + type DB struct + Tables []tables.Table + func NewDB(db *sqlx.DB) *DB + func (db *DB) ApplyMigrations(migrations []string, altered bool) error + func (db *DB) ApplyMigrationsNow(migrations []string, altered bool) error + func (db *DB) Exec(query string, args ...any) error + func (db *DB) Fields(query string, table tables.Table, fields ...string) (fields, error) + func (db *DB) GenMigrations() error + func (db *DB) Handle() *sqlx.DB + func (db *DB) InsertEntity(table tables.Table) error + func (db *DB) PragmaOf(table tables.Table) (pragma, error) + func (db *DB) Select(dest interface{}, query string) error