Versions in this module Expand all Collapse all v1 v1.0.0 Jul 11, 2023 Changes in this version + func NewReader(i any) (r io.Reader, err error) + type CountType uint8 + func (ct CountType) String() (str string) + type DB struct + func New(address, role, secret string, duration time.Duration) (db *DB, err error) + func (db *DB) Debug() *DB + func (db *DB) Exec() (err error) + func (db *DB) GetCount() (count int) + func (db *DB) GetDBResponse() (dbResponse *DBResponse) + func (db *DB) GetRange() (start, end int) + func (db *DB) Input(input any) *DB + func (db *DB) IsSuccess() (success bool) + func (db *DB) Limit(limit int) *DB + func (db *DB) NewDelete() *DB + func (db *DB) NewInsert() *DB + func (db *DB) NewSelect() *DB + func (db *DB) NewUpdate() *DB + func (db *DB) NewUpsert() *DB + func (db *DB) Offset(offset int) *DB + func (db *DB) Output(output any) *DB + func (db *DB) RPC(funcName string) *DB + func (db *DB) Select(col ...string) *DB + func (db *DB) SetHeader(key, value string) *DB + func (db *DB) SetQuery(key, value string) *DB + func (db *DB) SetRole(role string) *DB + func (db *DB) Table(tableName string) *DB + func (db *DB) Where(field string, ft FilterType, value string) *DB + func (db *DB) WhereIn(field string, values []string) *DB + func (db *DB) WithCount(ct CountType) *DB + type DBResponse struct + Code string + Details string + HTTPStatusCode int + Hint string + Message string + func (dbResponse *DBResponse) HasCode() (b bool) + func (dbResponse *DBResponse) String() (str string) + type FilterType uint8 + const CountTypeEstimated + const CountTypeExact + const CountTypePlanned + const Equal + const GreaterThan + const GreaterThanEqual + const LessThan + const LessThanEqual + const NotEqual + func (ft FilterType) String() (str string)