book

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: GPL-3.0 Imports: 2 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"
	// FieldTitle holds the string denoting the title field in the database.
	FieldTitle = "title"
	// FieldAuthor holds the string denoting the author field in the database.
	FieldAuthor = "author"
	// FieldSummary holds the string denoting the summary field in the database.
	FieldSummary = "summary"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldCategory holds the string denoting the category field in the database.
	FieldCategory = "category"
	// FieldImageLink holds the string denoting the image_link field in the database.
	FieldImageLink = "image_link"
	// FieldFeatured holds the string denoting the featured field in the database.
	FieldFeatured = "featured"
	// Table holds the table name of the book in the database.
	Table = "books"
)

Variables

View Source
var (
	// TitleValidator is a validator for the "title" field. It is called by the builders before save.
	TitleValidator func(string) error
	// AuthorValidator is a validator for the "author" field. It is called by the builders before save.
	AuthorValidator func(string) error
	// SummaryValidator is a validator for the "summary" field. It is called by the builders before save.
	SummaryValidator func(string) error
	// DescriptionValidator is a validator for the "description" field. It is called by the builders before save.
	DescriptionValidator func(string) error
	// CategoryValidator is a validator for the "category" field. It is called by the builders before save.
	CategoryValidator func(string) error
	// ImageLinkValidator is a validator for the "image_link" field. It is called by the builders before save.
	ImageLinkValidator func(string) error
	// DefaultFeatured holds the default value on creation for the "featured" field.
	DefaultFeatured bool
	// IDValidator is a validator for the "id" field. It is called by the builders before save.
	IDValidator func(string) error
)

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 Category

func Category(v string) predicate.Book

Category applies equality check predicate on the "category" field. It's identical to CategoryEQ.

func CategoryContains

func CategoryContains(v string) predicate.Book

CategoryContains applies the Contains predicate on the "category" field.

func CategoryContainsFold

func CategoryContainsFold(v string) predicate.Book

CategoryContainsFold applies the ContainsFold predicate on the "category" field.

func CategoryEQ

func CategoryEQ(v string) predicate.Book

CategoryEQ applies the EQ predicate on the "category" field.

func CategoryEqualFold

func CategoryEqualFold(v string) predicate.Book

CategoryEqualFold applies the EqualFold predicate on the "category" field.

func CategoryGT

func CategoryGT(v string) predicate.Book

CategoryGT applies the GT predicate on the "category" field.

func CategoryGTE

func CategoryGTE(v string) predicate.Book

CategoryGTE applies the GTE predicate on the "category" field.

func CategoryHasPrefix

func CategoryHasPrefix(v string) predicate.Book

CategoryHasPrefix applies the HasPrefix predicate on the "category" field.

func CategoryHasSuffix

func CategoryHasSuffix(v string) predicate.Book

CategoryHasSuffix applies the HasSuffix predicate on the "category" field.

func CategoryIn

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

CategoryIn applies the In predicate on the "category" field.

func CategoryLT

func CategoryLT(v string) predicate.Book

CategoryLT applies the LT predicate on the "category" field.

func CategoryLTE

func CategoryLTE(v string) predicate.Book

CategoryLTE applies the LTE predicate on the "category" field.

func CategoryNEQ

func CategoryNEQ(v string) predicate.Book

CategoryNEQ applies the NEQ predicate on the "category" field.

func CategoryNotIn

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

CategoryNotIn applies the NotIn predicate on the "category" 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 Featured(v bool) predicate.Book

Featured applies equality check predicate on the "featured" field. It's identical to FeaturedEQ.

func FeaturedEQ

func FeaturedEQ(v bool) predicate.Book

FeaturedEQ applies the EQ predicate on the "featured" field.

func FeaturedNEQ

func FeaturedNEQ(v bool) predicate.Book

FeaturedNEQ applies the NEQ predicate on the "featured" field.

func ID

func ID(id string) predicate.Book

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.Book

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.Book

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.Book

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Book

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Book

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Book

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Book

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Book

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func ImageLink(v string) predicate.Book

ImageLink applies equality check predicate on the "image_link" field. It's identical to ImageLinkEQ.

func ImageLinkContains

func ImageLinkContains(v string) predicate.Book

ImageLinkContains applies the Contains predicate on the "image_link" field.

func ImageLinkContainsFold

func ImageLinkContainsFold(v string) predicate.Book

ImageLinkContainsFold applies the ContainsFold predicate on the "image_link" field.

func ImageLinkEQ

func ImageLinkEQ(v string) predicate.Book

ImageLinkEQ applies the EQ predicate on the "image_link" field.

func ImageLinkEqualFold

func ImageLinkEqualFold(v string) predicate.Book

ImageLinkEqualFold applies the EqualFold predicate on the "image_link" field.

func ImageLinkGT

func ImageLinkGT(v string) predicate.Book

ImageLinkGT applies the GT predicate on the "image_link" field.

func ImageLinkGTE

func ImageLinkGTE(v string) predicate.Book

ImageLinkGTE applies the GTE predicate on the "image_link" field.

func ImageLinkHasPrefix

func ImageLinkHasPrefix(v string) predicate.Book

ImageLinkHasPrefix applies the HasPrefix predicate on the "image_link" field.

func ImageLinkHasSuffix

func ImageLinkHasSuffix(v string) predicate.Book

ImageLinkHasSuffix applies the HasSuffix predicate on the "image_link" field.

func ImageLinkIn

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

ImageLinkIn applies the In predicate on the "image_link" field.

func ImageLinkLT

func ImageLinkLT(v string) predicate.Book

ImageLinkLT applies the LT predicate on the "image_link" field.

func ImageLinkLTE

func ImageLinkLTE(v string) predicate.Book

ImageLinkLTE applies the LTE predicate on the "image_link" field.

func ImageLinkNEQ

func ImageLinkNEQ(v string) predicate.Book

ImageLinkNEQ applies the NEQ predicate on the "image_link" field.

func ImageLinkNotIn

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

ImageLinkNotIn applies the NotIn predicate on the "image_link" 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 Summary

func Summary(v string) predicate.Book

Summary applies equality check predicate on the "summary" field. It's identical to SummaryEQ.

func SummaryContains

func SummaryContains(v string) predicate.Book

SummaryContains applies the Contains predicate on the "summary" field.

func SummaryContainsFold

func SummaryContainsFold(v string) predicate.Book

SummaryContainsFold applies the ContainsFold predicate on the "summary" field.

func SummaryEQ

func SummaryEQ(v string) predicate.Book

SummaryEQ applies the EQ predicate on the "summary" field.

func SummaryEqualFold

func SummaryEqualFold(v string) predicate.Book

SummaryEqualFold applies the EqualFold predicate on the "summary" field.

func SummaryGT

func SummaryGT(v string) predicate.Book

SummaryGT applies the GT predicate on the "summary" field.

func SummaryGTE

func SummaryGTE(v string) predicate.Book

SummaryGTE applies the GTE predicate on the "summary" field.

func SummaryHasPrefix

func SummaryHasPrefix(v string) predicate.Book

SummaryHasPrefix applies the HasPrefix predicate on the "summary" field.

func SummaryHasSuffix

func SummaryHasSuffix(v string) predicate.Book

SummaryHasSuffix applies the HasSuffix predicate on the "summary" field.

func SummaryIn

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

SummaryIn applies the In predicate on the "summary" field.

func SummaryLT

func SummaryLT(v string) predicate.Book

SummaryLT applies the LT predicate on the "summary" field.

func SummaryLTE

func SummaryLTE(v string) predicate.Book

SummaryLTE applies the LTE predicate on the "summary" field.

func SummaryNEQ

func SummaryNEQ(v string) predicate.Book

SummaryNEQ applies the NEQ predicate on the "summary" field.

func SummaryNotIn

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

SummaryNotIn applies the NotIn predicate on the "summary" field.

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

func ByAuthor

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

ByAuthor orders the results by the author field.

func ByCategory

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

ByCategory orders the results by the category field.

func ByDescription

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

ByDescription orders the results by the description field.

func ByFeatured

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

ByFeatured orders the results by the featured field.

func ByID

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

ByID orders the results by the id field.

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

ByImageLink orders the results by the image_link field.

func BySummary

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

BySummary orders the results by the summary field.

func ByTitle

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

ByTitle orders the results by the title field.

Jump to

Keyboard shortcuts

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