dateformat

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the dateformat type in the database.
	Label = "date_format"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldMachineName holds the string denoting the machine_name field in the database.
	FieldMachineName = "machine_name"
	// FieldLabel holds the string denoting the label field in the database.
	FieldLabel = "label"
	// FieldPattern holds the string denoting the pattern field in the database.
	FieldPattern = "pattern"
	// 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 dateformat in the database.
	Table = "date_formats"
)

Variables

View Source
var (
	// MachineNameValidator is a validator for the "machine_name" field. It is called by the builders before save.
	MachineNameValidator func(string) error
	// LabelValidator is a validator for the "label" field. It is called by the builders before save.
	LabelValidator func(string) error
	// PatternValidator is a validator for the "pattern" field. It is called by the builders before save.
	PatternValidator func(string) error
)

Columns holds all SQL columns for dateformat fields.

Functions

func And

func And(predicates ...predicate.DateFormat) predicate.DateFormat

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.DateFormat

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.DateFormat

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.DateFormat

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.DateFormat

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.DateFormat

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.DateFormat

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.DateFormat

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

func CreatedAtNotIn

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

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

func ID

func ID(id int) predicate.DateFormat

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.DateFormat

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.DateFormat

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.DateFormat

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.DateFormat

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.DateFormat

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.DateFormat

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.DateFormat

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.DateFormat

IDNotIn applies the NotIn predicate on the ID field.

func LabelContains

func LabelContains(v string) predicate.DateFormat

LabelContains applies the Contains predicate on the "label" field.

func LabelContainsFold

func LabelContainsFold(v string) predicate.DateFormat

LabelContainsFold applies the ContainsFold predicate on the "label" field.

func LabelEQ

func LabelEQ(v string) predicate.DateFormat

LabelEQ applies the EQ predicate on the "label" field.

func LabelEqualFold

func LabelEqualFold(v string) predicate.DateFormat

LabelEqualFold applies the EqualFold predicate on the "label" field.

func LabelGT

func LabelGT(v string) predicate.DateFormat

LabelGT applies the GT predicate on the "label" field.

func LabelGTE

func LabelGTE(v string) predicate.DateFormat

LabelGTE applies the GTE predicate on the "label" field.

func LabelHasPrefix

func LabelHasPrefix(v string) predicate.DateFormat

LabelHasPrefix applies the HasPrefix predicate on the "label" field.

func LabelHasSuffix

func LabelHasSuffix(v string) predicate.DateFormat

LabelHasSuffix applies the HasSuffix predicate on the "label" field.

func LabelIn

func LabelIn(vs ...string) predicate.DateFormat

LabelIn applies the In predicate on the "label" field.

func LabelLT

func LabelLT(v string) predicate.DateFormat

LabelLT applies the LT predicate on the "label" field.

func LabelLTE

func LabelLTE(v string) predicate.DateFormat

LabelLTE applies the LTE predicate on the "label" field.

func LabelNEQ

func LabelNEQ(v string) predicate.DateFormat

LabelNEQ applies the NEQ predicate on the "label" field.

func LabelNotIn

func LabelNotIn(vs ...string) predicate.DateFormat

LabelNotIn applies the NotIn predicate on the "label" field.

func MachineName

func MachineName(v string) predicate.DateFormat

MachineName applies equality check predicate on the "machine_name" field. It's identical to MachineNameEQ.

func MachineNameContains

func MachineNameContains(v string) predicate.DateFormat

MachineNameContains applies the Contains predicate on the "machine_name" field.

func MachineNameContainsFold

func MachineNameContainsFold(v string) predicate.DateFormat

MachineNameContainsFold applies the ContainsFold predicate on the "machine_name" field.

func MachineNameEQ

func MachineNameEQ(v string) predicate.DateFormat

MachineNameEQ applies the EQ predicate on the "machine_name" field.

func MachineNameEqualFold

func MachineNameEqualFold(v string) predicate.DateFormat

MachineNameEqualFold applies the EqualFold predicate on the "machine_name" field.

func MachineNameGT

func MachineNameGT(v string) predicate.DateFormat

MachineNameGT applies the GT predicate on the "machine_name" field.

func MachineNameGTE

func MachineNameGTE(v string) predicate.DateFormat

MachineNameGTE applies the GTE predicate on the "machine_name" field.

func MachineNameHasPrefix

func MachineNameHasPrefix(v string) predicate.DateFormat

MachineNameHasPrefix applies the HasPrefix predicate on the "machine_name" field.

func MachineNameHasSuffix

func MachineNameHasSuffix(v string) predicate.DateFormat

MachineNameHasSuffix applies the HasSuffix predicate on the "machine_name" field.

func MachineNameIn

func MachineNameIn(vs ...string) predicate.DateFormat

MachineNameIn applies the In predicate on the "machine_name" field.

func MachineNameLT

func MachineNameLT(v string) predicate.DateFormat

MachineNameLT applies the LT predicate on the "machine_name" field.

func MachineNameLTE

func MachineNameLTE(v string) predicate.DateFormat

MachineNameLTE applies the LTE predicate on the "machine_name" field.

func MachineNameNEQ

func MachineNameNEQ(v string) predicate.DateFormat

MachineNameNEQ applies the NEQ predicate on the "machine_name" field.

func MachineNameNotIn

func MachineNameNotIn(vs ...string) predicate.DateFormat

MachineNameNotIn applies the NotIn predicate on the "machine_name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.DateFormat) predicate.DateFormat

Or groups predicates with the OR operator between them.

func Pattern

func Pattern(v string) predicate.DateFormat

Pattern applies equality check predicate on the "pattern" field. It's identical to PatternEQ.

func PatternContains

func PatternContains(v string) predicate.DateFormat

PatternContains applies the Contains predicate on the "pattern" field.

func PatternContainsFold

func PatternContainsFold(v string) predicate.DateFormat

PatternContainsFold applies the ContainsFold predicate on the "pattern" field.

func PatternEQ

func PatternEQ(v string) predicate.DateFormat

PatternEQ applies the EQ predicate on the "pattern" field.

func PatternEqualFold

func PatternEqualFold(v string) predicate.DateFormat

PatternEqualFold applies the EqualFold predicate on the "pattern" field.

func PatternGT

func PatternGT(v string) predicate.DateFormat

PatternGT applies the GT predicate on the "pattern" field.

func PatternGTE

func PatternGTE(v string) predicate.DateFormat

PatternGTE applies the GTE predicate on the "pattern" field.

func PatternHasPrefix

func PatternHasPrefix(v string) predicate.DateFormat

PatternHasPrefix applies the HasPrefix predicate on the "pattern" field.

func PatternHasSuffix

func PatternHasSuffix(v string) predicate.DateFormat

PatternHasSuffix applies the HasSuffix predicate on the "pattern" field.

func PatternIn

func PatternIn(vs ...string) predicate.DateFormat

PatternIn applies the In predicate on the "pattern" field.

func PatternLT

func PatternLT(v string) predicate.DateFormat

PatternLT applies the LT predicate on the "pattern" field.

func PatternLTE

func PatternLTE(v string) predicate.DateFormat

PatternLTE applies the LTE predicate on the "pattern" field.

func PatternNEQ

func PatternNEQ(v string) predicate.DateFormat

PatternNEQ applies the NEQ predicate on the "pattern" field.

func PatternNotIn

func PatternNotIn(vs ...string) predicate.DateFormat

PatternNotIn applies the NotIn predicate on the "pattern" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.DateFormat

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.DateFormat

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.DateFormat

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.DateFormat

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.DateFormat

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.DateFormat

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.DateFormat

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

func UpdatedAtNotIn

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

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

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByID

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

ByID orders the results by the id field.

func ByLabel

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

ByLabel orders the results by the label field.

func ByMachineName

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

ByMachineName orders the results by the machine_name field.

func ByPattern

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

ByPattern orders the results by the pattern 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