Documentation
¶
Index ¶
- Constants
- type DB
- func (me *DB) Close() error
- func (me *DB) Entry(table string) *Entry
- func (me *DB) Insert(query string, params ...any) int64
- func (me *DB) Query(table string) *Query
- func (me *DB) Read(query string, params ...any) []map[string]any
- func (me *DB) Record(table string) *Record
- func (me *DB) Write(query string, params ...any) int64
- type Entry
- type Query
- func (me *Query) All(args ...any) []map[string]any
- func (me *Query) Build() *Query
- func (me *Query) Delete(values ...any) *Query
- func (me *Query) Exec() int64
- func (me *Query) Insert(values ...any) *Query
- func (me *Query) One() map[string]any
- func (me *Query) Params() []any
- func (me *Query) Query() string
- func (me *Query) Select(fields ...string) *Query
- func (me *Query) Set(values ...any) *Query
- func (me *Query) Update(values ...any) *Query
- func (me *Query) Where(values ...any) *Query
- type Record
Constants ¶
View Source
const ( DriverPostgres string = "postgres" DriverMySQL string = "mysql" DriverSqlite3 string = "sqlite3" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.