Documentation ¶
Index ¶
- func CreateStreamTableSchema(ctx context.Context, tableName string, entity *types.Entity, ...) (string, 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 OnlineBatchTableName(revisionID int) string
- func OnlineStreamTableName(groupID int) string
- func Purge(ctx context.Context, db *sqlx.DB, revisionID int, backend types.BackendType) error
- func SqlxPrapareStreamTable(ctx context.Context, db *sqlx.DB, opt online.PrepareStreamTableOpt, ...) error
- type PushCondition
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateStreamTableSchema ¶
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
func OnlineBatchTableName ¶
func OnlineStreamTableName ¶
func SqlxPrapareStreamTable ¶
func SqlxPrapareStreamTable(ctx context.Context, db *sqlx.DB, opt online.PrepareStreamTableOpt, backend types.BackendType) error
Types ¶
type PushCondition ¶
type PushCondition struct { Inserts string InsertPlaceholders string InsertValues []interface{} UpdateValues []interface{} UpdatePlaceholders string }
func BuildPushCondition ¶
func BuildPushCondition(opt online.PushOpt, backend types.BackendType) *PushCondition
Click to show internal directories.
Click to hide internal directories.