Documentation
¶
Overview ¶
Package dbentity provides common database entities and filters for task storage implementations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetTasksFilter ¶
type GetTasksFilter struct {
IDs []uuid.UUID
TaskType *entity.TaskType
Status *entity.TaskStatus
Statuses []entity.TaskStatus
UpdatedAtTimeAgo *time.Duration
}
GetTasksFilter defines filtering criteria for task queries.
func (*GetTasksFilter) BindMysqlWhereExpr ¶
func (f *GetTasksFilter) BindMysqlWhereExpr() (mysql.BoolExpression, error)
BindMysqlWhereExpr converts the filter to a MySQL WHERE expression using go-jet.
func (*GetTasksFilter) BindPgWhereExpr ¶
func (f *GetTasksFilter) BindPgWhereExpr() (postgres.BoolExpression, error)
BindPgWhereExpr converts the filter to a PostgreSQL WHERE expression using go-jet.
func (*GetTasksFilter) BindSqliteWhereExpr ¶ added in v0.0.5
func (f *GetTasksFilter) BindSqliteWhereExpr() (sqlite.BoolExpression, error)
BindSqliteWhereExpr converts the filter to a SQLite WHERE expression using go-jet.
Click to show internal directories.
Click to hide internal directories.