Documentation ¶
Index ¶
- func BuildPushQuery(params PushQueryParams, queryTemplate string) (string, error)
- func CreateTable(ctx context.Context, dbOpt dbutil.DBOpt, opt online.CreateTableOpt) error
- func Get(ctx context.Context, db *sqlx.DB, opt online.GetOpt, backend types.BackendType) (dbutil.RowMap, error)
- func Import(ctx context.Context, db *sqlx.DB, opt online.ImportOpt, ...) error
- func MultiGet(ctx context.Context, db *sqlx.DB, opt online.MultiGetOpt, ...) (map[string]dbutil.RowMap, error)
- func Purge(ctx context.Context, db *sqlx.DB, revisionID int, backend types.BackendType) error
- func PurgeTx(ctx context.Context, tx *sqlx.Tx, tableName string, backend types.BackendType) error
- type PushQueryParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildPushQuery ¶ added in v0.1.0
func BuildPushQuery(params PushQueryParams, queryTemplate string) (string, error)
func CreateTable ¶ added in v0.1.0
func MultiGet ¶
func MultiGet(ctx context.Context, db *sqlx.DB, opt online.MultiGetOpt, backend types.BackendType) (map[string]dbutil.RowMap, error)
response: map[entity_key]map[feature_name]feature_value
Types ¶
type PushQueryParams ¶ added in v0.1.0
type PushQueryParams struct { TableName string EntityName string Fields string InsertPlaceholders string UpdatePlaceholders string InsertValues []interface{} UpdateValues []interface{} Backend types.BackendType }
func BuildPushQueryParams ¶ added in v0.1.0
func BuildPushQueryParams(opt online.PushOpt, backend types.BackendType) PushQueryParams
Click to show internal directories.
Click to hide internal directories.