parameter

package
v0.97.8 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the parameter type in the database.
	Label = "parameter"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldFlag holds the string denoting the flag field in the database.
	FieldFlag = "flag"
	// FieldParams holds the string denoting the params field in the database.
	FieldParams = "params"
	// 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"
	// FieldExpiredAt holds the string denoting the expired_at field in the database.
	FieldExpiredAt = "expired_at"
	// Table holds the table name of the parameter in the database.
	Table = "parameter"
)

Variables

View Source
var (
	// FlagValidator is a validator for the "flag" field. It is called by the builders before save.
	FlagValidator func(string) error
	// 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
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
)

Columns holds all SQL columns for parameter fields.

Functions

func And

func And(predicates ...predicate.Parameter) predicate.Parameter

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Parameter

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Parameter

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Parameter

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Parameter

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Parameter

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Parameter

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Parameter

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

func CreatedAtNotIn

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

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

func ExpiredAt

func ExpiredAt(v time.Time) predicate.Parameter

ExpiredAt applies equality check predicate on the "expired_at" field. It's identical to ExpiredAtEQ.

func ExpiredAtEQ

func ExpiredAtEQ(v time.Time) predicate.Parameter

ExpiredAtEQ applies the EQ predicate on the "expired_at" field.

func ExpiredAtGT

func ExpiredAtGT(v time.Time) predicate.Parameter

ExpiredAtGT applies the GT predicate on the "expired_at" field.

func ExpiredAtGTE

func ExpiredAtGTE(v time.Time) predicate.Parameter

ExpiredAtGTE applies the GTE predicate on the "expired_at" field.

func ExpiredAtIn

func ExpiredAtIn(vs ...time.Time) predicate.Parameter

ExpiredAtIn applies the In predicate on the "expired_at" field.

func ExpiredAtLT

func ExpiredAtLT(v time.Time) predicate.Parameter

ExpiredAtLT applies the LT predicate on the "expired_at" field.

func ExpiredAtLTE

func ExpiredAtLTE(v time.Time) predicate.Parameter

ExpiredAtLTE applies the LTE predicate on the "expired_at" field.

func ExpiredAtNEQ

func ExpiredAtNEQ(v time.Time) predicate.Parameter

ExpiredAtNEQ applies the NEQ predicate on the "expired_at" field.

func ExpiredAtNotIn

func ExpiredAtNotIn(vs ...time.Time) predicate.Parameter

ExpiredAtNotIn applies the NotIn predicate on the "expired_at" field.

func Flag

func Flag(v string) predicate.Parameter

Flag applies equality check predicate on the "flag" field. It's identical to FlagEQ.

func FlagContains

func FlagContains(v string) predicate.Parameter

FlagContains applies the Contains predicate on the "flag" field.

func FlagContainsFold

func FlagContainsFold(v string) predicate.Parameter

FlagContainsFold applies the ContainsFold predicate on the "flag" field.

func FlagEQ

func FlagEQ(v string) predicate.Parameter

FlagEQ applies the EQ predicate on the "flag" field.

func FlagEqualFold

func FlagEqualFold(v string) predicate.Parameter

FlagEqualFold applies the EqualFold predicate on the "flag" field.

func FlagGT

func FlagGT(v string) predicate.Parameter

FlagGT applies the GT predicate on the "flag" field.

func FlagGTE

func FlagGTE(v string) predicate.Parameter

FlagGTE applies the GTE predicate on the "flag" field.

func FlagHasPrefix

func FlagHasPrefix(v string) predicate.Parameter

FlagHasPrefix applies the HasPrefix predicate on the "flag" field.

func FlagHasSuffix

func FlagHasSuffix(v string) predicate.Parameter

FlagHasSuffix applies the HasSuffix predicate on the "flag" field.

func FlagIn

func FlagIn(vs ...string) predicate.Parameter

FlagIn applies the In predicate on the "flag" field.

func FlagLT

func FlagLT(v string) predicate.Parameter

FlagLT applies the LT predicate on the "flag" field.

func FlagLTE

func FlagLTE(v string) predicate.Parameter

FlagLTE applies the LTE predicate on the "flag" field.

func FlagNEQ

func FlagNEQ(v string) predicate.Parameter

FlagNEQ applies the NEQ predicate on the "flag" field.

func FlagNotIn

func FlagNotIn(vs ...string) predicate.Parameter

FlagNotIn applies the NotIn predicate on the "flag" field.

func ID

func ID(id int64) predicate.Parameter

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.Parameter

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.Parameter

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.Parameter

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int64) predicate.Parameter

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.Parameter

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.Parameter

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.Parameter

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int64) predicate.Parameter

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Parameter) predicate.Parameter

Or groups predicates with the OR operator between them.

func ParamsIsNil

func ParamsIsNil() predicate.Parameter

ParamsIsNil applies the IsNil predicate on the "params" field.

func ParamsNotNil

func ParamsNotNil() predicate.Parameter

ParamsNotNil applies the NotNil predicate on the "params" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Parameter

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Parameter

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Parameter

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Parameter

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Parameter

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Parameter

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Parameter

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

func UpdatedAtNotIn

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

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 Parameter queries.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByExpiredAt

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

ByExpiredAt orders the results by the expired_at field.

func ByFlag

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

ByFlag orders the results by the flag field.

func ByID

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

ByID orders the results by the id 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