collection

package
v0.0.0-...-f6f9965 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the collection type in the database.
	Label = "collection"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreatedAt holds the string denoting the createdat field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedat holds the string denoting the updatedat field in the database.
	FieldUpdatedat = "updatedat"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// EdgeBooks holds the string denoting the books edge name in mutations.
	EdgeBooks = "books"
	// Table holds the table name of the collection in the database.
	Table = "collections"
	// BooksTable is the table the holds the books relation/edge. The primary key declared below.
	BooksTable = "collection_books"
	// BooksInverseTable is the table name for the Book entity.
	// It exists in this package in order to avoid circular dependency with the "book" package.
	BooksInverseTable = "books"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "createdAt" field.
	DefaultCreatedAt func() time.Time
	// UpdateDefaultCreatedAt holds the default value on update for the "createdAt" field.
	UpdateDefaultCreatedAt func() time.Time
	// DefaultUpdatedat holds the default value on creation for the "updatedat" field.
	DefaultUpdatedat func() time.Time
	// UpdateDefaultUpdatedat holds the default value on update for the "updatedat" field.
	UpdateDefaultUpdatedat func() time.Time
)
View Source
var (
	// BooksPrimaryKey and BooksColumn2 are the table columns denoting the
	// primary key for the books relation (M2M).
	BooksPrimaryKey = []string{"collection_id", "book_id"}
)

Columns holds all SQL columns for collection fields.

Functions

func And

func And(predicates ...predicate.Collection) predicate.Collection

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Collection

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Collection

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Collection

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Collection

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Collection

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Collection

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Collection

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

func CreatedAtNotIn

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

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

func HasBooks

func HasBooks() predicate.Collection

HasBooks applies the HasEdge predicate on the "books" edge.

func HasBooksWith

func HasBooksWith(preds ...predicate.Book) predicate.Collection

HasBooksWith applies the HasEdge predicate on the "books" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.Collection

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Collection

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Collection

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Collection

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Collection

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Collection

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Collection

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Collection

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

func NameContains

func NameContains(v string) predicate.Collection

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

func NameContainsFold

func NameContainsFold(v string) predicate.Collection

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

func NameEQ

func NameEQ(v string) predicate.Collection

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

func NameEqualFold

func NameEqualFold(v string) predicate.Collection

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

func NameGT

func NameGT(v string) predicate.Collection

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

func NameGTE

func NameGTE(v string) predicate.Collection

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Collection

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Collection

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Collection

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

func NameLTE

func NameLTE(v string) predicate.Collection

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

func NameNEQ

func NameNEQ(v string) predicate.Collection

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

func NameNotIn

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

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

Or groups predicates with the OR operator between them.

func Updatedat

func Updatedat(v time.Time) predicate.Collection

Updatedat applies equality check predicate on the "updatedat" field. It's identical to UpdatedatEQ.

func UpdatedatEQ

func UpdatedatEQ(v time.Time) predicate.Collection

UpdatedatEQ applies the EQ predicate on the "updatedat" field.

func UpdatedatGT

func UpdatedatGT(v time.Time) predicate.Collection

UpdatedatGT applies the GT predicate on the "updatedat" field.

func UpdatedatGTE

func UpdatedatGTE(v time.Time) predicate.Collection

UpdatedatGTE applies the GTE predicate on the "updatedat" field.

func UpdatedatIn

func UpdatedatIn(vs ...time.Time) predicate.Collection

UpdatedatIn applies the In predicate on the "updatedat" field.

func UpdatedatLT

func UpdatedatLT(v time.Time) predicate.Collection

UpdatedatLT applies the LT predicate on the "updatedat" field.

func UpdatedatLTE

func UpdatedatLTE(v time.Time) predicate.Collection

UpdatedatLTE applies the LTE predicate on the "updatedat" field.

func UpdatedatNEQ

func UpdatedatNEQ(v time.Time) predicate.Collection

UpdatedatNEQ applies the NEQ predicate on the "updatedat" field.

func UpdatedatNotIn

func UpdatedatNotIn(vs ...time.Time) predicate.Collection

UpdatedatNotIn applies the NotIn predicate on the "updatedat" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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