Documentation ¶ Index ¶ type DBRepo func NewDBRepo(db *sql.DB, timeout time.Duration, retries int) *DBRepo func (r *DBRepo) Exec(query string, args ...any) (taken time.Duration, err error) func (r *DBRepo) Query(query string, args ...any) (values []map[string]any, taken time.Duration, err error) type Queryer Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type DBRepo ¶ type DBRepo struct { // contains filtered or unexported fields } func NewDBRepo ¶ func NewDBRepo(db *sql.DB, timeout time.Duration, retries int) *DBRepo func (*DBRepo) Exec ¶ func (r *DBRepo) Exec(query string, args ...any) (taken time.Duration, err error) func (*DBRepo) Query ¶ func (r *DBRepo) Query(query string, args ...any) (values []map[string]any, taken time.Duration, err error) type Queryer ¶ type Queryer interface { Query(query string, args ...any) ([]map[string]any, time.Duration, error) Exec(query string, args ...any) (time.Duration, error) } Source Files ¶ View all Source files repo.go Click to show internal directories. Click to hide internal directories.