dbentity

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2025 License: MIT Imports: 13 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL