savedfilter

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the savedfilter type in the database.
	Label = "saved_filter"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldAql holds the string denoting the aql field in the database.
	FieldAql = "aql"
	// FieldProduct holds the string denoting the product field in the database.
	FieldProduct = "product"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldIsFavorite holds the string denoting the is_favorite field in the database.
	FieldIsFavorite = "is_favorite"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// Table holds the table name of the savedfilter in the database.
	Table = "saved_filters"
)

Variables

View Source
var (
	// DefaultIsFavorite holds the default value on creation for the "is_favorite" field.
	DefaultIsFavorite bool
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
)

Columns holds all SQL columns for savedfilter fields.

Functions

func And

func And(predicates ...predicate.SavedFilter) predicate.SavedFilter

And groups predicates with the AND operator between them.

func Aql

Aql applies equality check predicate on the "aql" field. It's identical to AqlEQ.

func AqlContains

func AqlContains(v string) predicate.SavedFilter

AqlContains applies the Contains predicate on the "aql" field.

func AqlContainsFold

func AqlContainsFold(v string) predicate.SavedFilter

AqlContainsFold applies the ContainsFold predicate on the "aql" field.

func AqlEQ

func AqlEQ(v string) predicate.SavedFilter

AqlEQ applies the EQ predicate on the "aql" field.

func AqlEqualFold

func AqlEqualFold(v string) predicate.SavedFilter

AqlEqualFold applies the EqualFold predicate on the "aql" field.

func AqlGT

func AqlGT(v string) predicate.SavedFilter

AqlGT applies the GT predicate on the "aql" field.

func AqlGTE

func AqlGTE(v string) predicate.SavedFilter

AqlGTE applies the GTE predicate on the "aql" field.

func AqlHasPrefix

func AqlHasPrefix(v string) predicate.SavedFilter

AqlHasPrefix applies the HasPrefix predicate on the "aql" field.

func AqlHasSuffix

func AqlHasSuffix(v string) predicate.SavedFilter

AqlHasSuffix applies the HasSuffix predicate on the "aql" field.

func AqlIn

func AqlIn(vs ...string) predicate.SavedFilter

AqlIn applies the In predicate on the "aql" field.

func AqlLT

func AqlLT(v string) predicate.SavedFilter

AqlLT applies the LT predicate on the "aql" field.

func AqlLTE

func AqlLTE(v string) predicate.SavedFilter

AqlLTE applies the LTE predicate on the "aql" field.

func AqlNEQ

func AqlNEQ(v string) predicate.SavedFilter

AqlNEQ applies the NEQ predicate on the "aql" field.

func AqlNotIn

func AqlNotIn(vs ...string) predicate.SavedFilter

AqlNotIn applies the NotIn predicate on the "aql" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.SavedFilter

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.SavedFilter

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.SavedFilter

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.SavedFilter

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.SavedFilter

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.SavedFilter

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.SavedFilter

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.SavedFilter

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.SavedFilter

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func Description

func Description(v string) predicate.SavedFilter

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.SavedFilter

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.SavedFilter

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.SavedFilter

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.SavedFilter

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.SavedFilter

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.SavedFilter

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.SavedFilter

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.SavedFilter

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.SavedFilter

DescriptionIn applies the In predicate on the "description" field.

func DescriptionIsNil

func DescriptionIsNil() predicate.SavedFilter

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.SavedFilter

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.SavedFilter

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.SavedFilter

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.SavedFilter

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DescriptionNotNil

func DescriptionNotNil() predicate.SavedFilter

DescriptionNotNil applies the NotNil predicate on the "description" field.

func ID

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.SavedFilter

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.SavedFilter

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.SavedFilter

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.SavedFilter

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.SavedFilter

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.SavedFilter

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.SavedFilter

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.SavedFilter

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.SavedFilter

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.SavedFilter

IDNotIn applies the NotIn predicate on the ID field.

func IsFavorite

func IsFavorite(v bool) predicate.SavedFilter

IsFavorite applies equality check predicate on the "is_favorite" field. It's identical to IsFavoriteEQ.

func IsFavoriteEQ

func IsFavoriteEQ(v bool) predicate.SavedFilter

IsFavoriteEQ applies the EQ predicate on the "is_favorite" field.

func IsFavoriteIsNil

func IsFavoriteIsNil() predicate.SavedFilter

IsFavoriteIsNil applies the IsNil predicate on the "is_favorite" field.

func IsFavoriteNEQ

func IsFavoriteNEQ(v bool) predicate.SavedFilter

IsFavoriteNEQ applies the NEQ predicate on the "is_favorite" field.

func IsFavoriteNotNil

func IsFavoriteNotNil() predicate.SavedFilter

IsFavoriteNotNil applies the NotNil predicate on the "is_favorite" field.

func Name

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.SavedFilter

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.SavedFilter

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.SavedFilter

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.SavedFilter

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.SavedFilter

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.SavedFilter

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.SavedFilter

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.SavedFilter

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.SavedFilter

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.SavedFilter

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.SavedFilter

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.SavedFilter

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.SavedFilter

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.SavedFilter) predicate.SavedFilter

Or groups predicates with the OR operator between them.

func Product

func Product(v string) predicate.SavedFilter

Product applies equality check predicate on the "product" field. It's identical to ProductEQ.

func ProductContains

func ProductContains(v string) predicate.SavedFilter

ProductContains applies the Contains predicate on the "product" field.

func ProductContainsFold

func ProductContainsFold(v string) predicate.SavedFilter

ProductContainsFold applies the ContainsFold predicate on the "product" field.

func ProductEQ

func ProductEQ(v string) predicate.SavedFilter

ProductEQ applies the EQ predicate on the "product" field.

func ProductEqualFold

func ProductEqualFold(v string) predicate.SavedFilter

ProductEqualFold applies the EqualFold predicate on the "product" field.

func ProductGT

func ProductGT(v string) predicate.SavedFilter

ProductGT applies the GT predicate on the "product" field.

func ProductGTE

func ProductGTE(v string) predicate.SavedFilter

ProductGTE applies the GTE predicate on the "product" field.

func ProductHasPrefix

func ProductHasPrefix(v string) predicate.SavedFilter

ProductHasPrefix applies the HasPrefix predicate on the "product" field.

func ProductHasSuffix

func ProductHasSuffix(v string) predicate.SavedFilter

ProductHasSuffix applies the HasSuffix predicate on the "product" field.

func ProductIn

func ProductIn(vs ...string) predicate.SavedFilter

ProductIn applies the In predicate on the "product" field.

func ProductIsNil

func ProductIsNil() predicate.SavedFilter

ProductIsNil applies the IsNil predicate on the "product" field.

func ProductLT

func ProductLT(v string) predicate.SavedFilter

ProductLT applies the LT predicate on the "product" field.

func ProductLTE

func ProductLTE(v string) predicate.SavedFilter

ProductLTE applies the LTE predicate on the "product" field.

func ProductNEQ

func ProductNEQ(v string) predicate.SavedFilter

ProductNEQ applies the NEQ predicate on the "product" field.

func ProductNotIn

func ProductNotIn(vs ...string) predicate.SavedFilter

ProductNotIn applies the NotIn predicate on the "product" field.

func ProductNotNil

func ProductNotNil() predicate.SavedFilter

ProductNotNil applies the NotNil predicate on the "product" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.SavedFilter

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.SavedFilter

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.SavedFilter

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.SavedFilter

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.SavedFilter

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.SavedFilter

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.SavedFilter

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.SavedFilter

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.SavedFilter

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the SavedFilter queries.

func ByAql

func ByAql(opts ...sql.OrderTermOption) OrderOption

ByAql orders the results by the aql field.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByDescription

func ByDescription(opts ...sql.OrderTermOption) OrderOption

ByDescription orders the results by the description field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByIsFavorite

func ByIsFavorite(opts ...sql.OrderTermOption) OrderOption

ByIsFavorite orders the results by the is_favorite field.

func ByName

func ByName(opts ...sql.OrderTermOption) OrderOption

ByName orders the results by the name field.

func ByProduct

func ByProduct(opts ...sql.OrderTermOption) OrderOption

ByProduct orders the results by the product field.

func ByUpdatedAt

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

Jump to

Keyboard shortcuts

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