Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RDBConnection ¶
type RDBConnection interface { DbExec(ctx context.Context, sql string, args ...any) error DbQuery(ctx context.Context, sql string, args ...any) (RDBRows, error) DbQueryRow(ctx context.Context, sql string, args ...any) RDBRow DbExecM(ctx context.Context, sql string, argMap map[string]any) error DbQueryM(ctx context.Context, sql string, argMap map[string]any) (RDBRows, error) DbQueryRowM(ctx context.Context, sql string, argMap map[string]any) RDBRow HErr(err error) error }
type RDBConnectionWithHelpers ¶
type RDBConnectionWithHelpers interface { RDBConnection HfList(ctx context.Context, ops RDBListOptions) (int64, error) HfGenerateSort(rNames []string, allowed map[string]string) []string HfGet(ctx context.Context, ops RDBGetOptions) error HfCreate(ctx context.Context, ops RDBCreateOptions) error HfUpdate(ctx context.Context, ops RDBUpdateOptions) error HfGetCUFields(obj any) (map[string]any, map[string]bool) HfOptionalWhere(conds []string) string HfDelete(ctx context.Context, ops RDBDeleteOptions) error }
type RDBContextTransaction ¶
type RDBCreateOptions ¶ added in v1.1.2
type RDBDeleteOptions ¶ added in v1.1.2
type RDBFull ¶
type RDBFull interface { RDBConnectionWithHelpers RDBContextTransaction }
type RDBGetOptions ¶ added in v1.1.2
type RDBListOptions ¶ added in v1.1.2
type RDBMin ¶
type RDBMin interface { RDBConnection RDBContextTransaction }
Click to show internal directories.
Click to hide internal directories.