Documentation ¶
Index ¶
- Constants
- type OptionsSt
- type St
- func (d *St) DbExec(ctx context.Context, sql string, args ...any) error
- func (d *St) DbExecM(ctx context.Context, sql string, argMap map[string]any) error
- func (d *St) DbQuery(ctx context.Context, sql string, args ...any) (db.RDBRows, error)
- func (d *St) DbQueryM(ctx context.Context, sql string, argMap map[string]any) (db.RDBRows, error)
- func (d *St) DbQueryRow(ctx context.Context, sql string, args ...any) db.RDBRow
- func (d *St) DbQueryRowM(ctx context.Context, sql string, argMap map[string]any) db.RDBRow
- func (d *St) HErr(err error) error
- func (d *St) HfCreate(ctx context.Context, ops db.RDBCreateOptions) error
- func (d *St) HfDelete(ctx context.Context, ops db.RDBDeleteOptions) error
- func (d *St) HfGenerateSort(rNames []string, allowed map[string]string) []string
- func (d *St) HfGet(ctx context.Context, ops db.RDBGetOptions) error
- func (d *St) HfGetCUFields(obj any) (map[string]any, map[string]bool)
- func (d *St) HfList(ctx context.Context, ops db.RDBListOptions) (int64, error)
- func (d *St) HfOptionalWhere(conds []string) string
- func (d *St) HfUpdate(ctx context.Context, ops db.RDBUpdateOptions) error
- func (d *St) RenewContextTransaction(ctx context.Context) error
- func (d *St) TransactionAddAsyncCallback(ctx context.Context, f func())
- func (d *St) TransactionFn(ctx context.Context, f func(context.Context) error) error
Constants ¶
View Source
const (
ErrPrefix = "pg-error"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type St ¶
func (*St) DbQueryRow ¶
func (*St) DbQueryRowM ¶
func (*St) HfGenerateSort ¶
func (*St) HfOptionalWhere ¶ added in v1.0.20
func (*St) RenewContextTransaction ¶
func (*St) TransactionAddAsyncCallback ¶ added in v1.1.41
Click to show internal directories.
Click to hide internal directories.