setup

package
v0.0.0-...-4d10510 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the setup type in the database.
	Label = "setup"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldSetUpAt holds the string denoting the set_up_at field in the database.
	FieldSetUpAt = "set_up_at"
	// Table holds the table name of the setup in the database.
	Table = "setups"
)

Variables

View Source
var (
	// DefaultSetUpAt holds the default value on creation for the "set_up_at" field.
	DefaultSetUpAt func() time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)
View Source
var Columns = []string{
	FieldID,
	FieldSetUpAt,
}

Columns holds all SQL columns for setup fields.

Functions

func And

func And(predicates ...predicate.Setup) predicate.Setup

And groups predicates with the AND operator between them.

func ID

func ID(id uuid.UUID) predicate.Setup

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Setup

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Setup

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Setup

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Setup

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Setup

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Setup

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Setup

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Setup

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.Setup) predicate.Setup

Or groups predicates with the OR operator between them.

func SetUpAt

func SetUpAt(v time.Time) predicate.Setup

SetUpAt applies equality check predicate on the "set_up_at" field. It's identical to SetUpAtEQ.

func SetUpAtEQ

func SetUpAtEQ(v time.Time) predicate.Setup

SetUpAtEQ applies the EQ predicate on the "set_up_at" field.

func SetUpAtGT

func SetUpAtGT(v time.Time) predicate.Setup

SetUpAtGT applies the GT predicate on the "set_up_at" field.

func SetUpAtGTE

func SetUpAtGTE(v time.Time) predicate.Setup

SetUpAtGTE applies the GTE predicate on the "set_up_at" field.

func SetUpAtIn

func SetUpAtIn(vs ...time.Time) predicate.Setup

SetUpAtIn applies the In predicate on the "set_up_at" field.

func SetUpAtLT

func SetUpAtLT(v time.Time) predicate.Setup

SetUpAtLT applies the LT predicate on the "set_up_at" field.

func SetUpAtLTE

func SetUpAtLTE(v time.Time) predicate.Setup

SetUpAtLTE applies the LTE predicate on the "set_up_at" field.

func SetUpAtNEQ

func SetUpAtNEQ(v time.Time) predicate.Setup

SetUpAtNEQ applies the NEQ predicate on the "set_up_at" field.

func SetUpAtNotIn

func SetUpAtNotIn(vs ...time.Time) predicate.Setup

SetUpAtNotIn applies the NotIn predicate on the "set_up_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 Setup queries.

func ByID

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

ByID orders the results by the id field.

func BySetUpAt

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

BySetUpAt orders the results by the set_up_at field.

Jump to

Keyboard shortcuts

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