book

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 book type in the database.
	Label = "book"
	// 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"
	// FieldAuthor holds the string denoting the author field in the database.
	FieldAuthor = "author"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldTitle holds the string denoting the title field in the database.
	FieldTitle = "title"
	// EdgeCollection holds the string denoting the collection edge name in mutations.
	EdgeCollection = "collection"
	// Table holds the table name of the book in the database.
	Table = "books"
	// CollectionTable is the table the holds the collection relation/edge. The primary key declared below.
	CollectionTable = "collection_books"
	// CollectionInverseTable is the table name for the Collection entity.
	// It exists in this package in order to avoid circular dependency with the "collection" package.
	CollectionInverseTable = "collections"
)

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 (
	// CollectionPrimaryKey and CollectionColumn2 are the table columns denoting the
	// primary key for the collection relation (M2M).
	CollectionPrimaryKey = []string{"collection_id", "book_id"}
)

Columns holds all SQL columns for book fields.

Functions

func And

func And(predicates ...predicate.Book) predicate.Book

And groups predicates with the AND operator between them.

func Author

func Author(v string) predicate.Book

Author applies equality check predicate on the "author" field. It's identical to AuthorEQ.

func AuthorContains

func AuthorContains(v string) predicate.Book

AuthorContains applies the Contains predicate on the "author" field.

func AuthorContainsFold

func AuthorContainsFold(v string) predicate.Book

AuthorContainsFold applies the ContainsFold predicate on the "author" field.

func AuthorEQ

func AuthorEQ(v string) predicate.Book

AuthorEQ applies the EQ predicate on the "author" field.

func AuthorEqualFold

func AuthorEqualFold(v string) predicate.Book

AuthorEqualFold applies the EqualFold predicate on the "author" field.

func AuthorGT

func AuthorGT(v string) predicate.Book

AuthorGT applies the GT predicate on the "author" field.

func AuthorGTE

func AuthorGTE(v string) predicate.Book

AuthorGTE applies the GTE predicate on the "author" field.

func AuthorHasPrefix

func AuthorHasPrefix(v string) predicate.Book

AuthorHasPrefix applies the HasPrefix predicate on the "author" field.

func AuthorHasSuffix

func AuthorHasSuffix(v string) predicate.Book

AuthorHasSuffix applies the HasSuffix predicate on the "author" field.

func AuthorIn

func AuthorIn(vs ...string) predicate.Book

AuthorIn applies the In predicate on the "author" field.

func AuthorLT

func AuthorLT(v string) predicate.Book

AuthorLT applies the LT predicate on the "author" field.

func AuthorLTE

func AuthorLTE(v string) predicate.Book

AuthorLTE applies the LTE predicate on the "author" field.

func AuthorNEQ

func AuthorNEQ(v string) predicate.Book

AuthorNEQ applies the NEQ predicate on the "author" field.

func AuthorNotIn

func AuthorNotIn(vs ...string) predicate.Book

AuthorNotIn applies the NotIn predicate on the "author" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Book

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Book

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Book

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Book

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Book

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Book

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Book

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

func CreatedAtNotIn

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

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

func Description

func Description(v string) predicate.Book

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

func DescriptionContains

func DescriptionContains(v string) predicate.Book

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

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Book

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

func DescriptionEQ

func DescriptionEQ(v string) predicate.Book

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

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Book

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

func DescriptionGT

func DescriptionGT(v string) predicate.Book

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

func DescriptionGTE

func DescriptionGTE(v string) predicate.Book

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

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Book

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

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Book

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

func DescriptionIn

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

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

func DescriptionLT

func DescriptionLT(v string) predicate.Book

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

func DescriptionLTE

func DescriptionLTE(v string) predicate.Book

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

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Book

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

func DescriptionNotIn

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

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

func HasCollection

func HasCollection() predicate.Book

HasCollection applies the HasEdge predicate on the "collection" edge.

func HasCollectionWith

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

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

func ID

func ID(id int) predicate.Book

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Book

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Book

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Book

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Book

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Book

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Book

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

Or groups predicates with the OR operator between them.

func Title

func Title(v string) predicate.Book

Title applies equality check predicate on the "title" field. It's identical to TitleEQ.

func TitleContains

func TitleContains(v string) predicate.Book

TitleContains applies the Contains predicate on the "title" field.

func TitleContainsFold

func TitleContainsFold(v string) predicate.Book

TitleContainsFold applies the ContainsFold predicate on the "title" field.

func TitleEQ

func TitleEQ(v string) predicate.Book

TitleEQ applies the EQ predicate on the "title" field.

func TitleEqualFold

func TitleEqualFold(v string) predicate.Book

TitleEqualFold applies the EqualFold predicate on the "title" field.

func TitleGT

func TitleGT(v string) predicate.Book

TitleGT applies the GT predicate on the "title" field.

func TitleGTE

func TitleGTE(v string) predicate.Book

TitleGTE applies the GTE predicate on the "title" field.

func TitleHasPrefix

func TitleHasPrefix(v string) predicate.Book

TitleHasPrefix applies the HasPrefix predicate on the "title" field.

func TitleHasSuffix

func TitleHasSuffix(v string) predicate.Book

TitleHasSuffix applies the HasSuffix predicate on the "title" field.

func TitleIn

func TitleIn(vs ...string) predicate.Book

TitleIn applies the In predicate on the "title" field.

func TitleLT

func TitleLT(v string) predicate.Book

TitleLT applies the LT predicate on the "title" field.

func TitleLTE

func TitleLTE(v string) predicate.Book

TitleLTE applies the LTE predicate on the "title" field.

func TitleNEQ

func TitleNEQ(v string) predicate.Book

TitleNEQ applies the NEQ predicate on the "title" field.

func TitleNotIn

func TitleNotIn(vs ...string) predicate.Book

TitleNotIn applies the NotIn predicate on the "title" field.

func Updatedat

func Updatedat(v time.Time) predicate.Book

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

func UpdatedatEQ

func UpdatedatEQ(v time.Time) predicate.Book

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

func UpdatedatGT

func UpdatedatGT(v time.Time) predicate.Book

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

func UpdatedatGTE

func UpdatedatGTE(v time.Time) predicate.Book

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

func UpdatedatIn

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

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

func UpdatedatLT

func UpdatedatLT(v time.Time) predicate.Book

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

func UpdatedatLTE

func UpdatedatLTE(v time.Time) predicate.Book

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

func UpdatedatNEQ

func UpdatedatNEQ(v time.Time) predicate.Book

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

func UpdatedatNotIn

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

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