book

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 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"
	// FieldTitle holds the string denoting the title field in the database.
	FieldTitle = "title"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldGoodreadsID holds the string denoting the goodreads_id field in the database.
	FieldGoodreadsID = "goodreads_id"
	// FieldGoogleVolumeID holds the string denoting the google_volume_id field in the database.
	FieldGoogleVolumeID = "google_volume_id"
	// FieldIsbn10 holds the string denoting the isbn_10 field in the database.
	FieldIsbn10 = "isbn_10"
	// FieldIsbn13 holds the string denoting the isbn_13 field in the database.
	FieldIsbn13 = "isbn_13"
	// EdgeBookAuthor holds the string denoting the book_author edge name in mutations.
	EdgeBookAuthor = "book_author"
	// Table holds the table name of the book in the database.
	Table = "books"
	// BookAuthorTable is the table that holds the book_author relation/edge. The primary key declared below.
	BookAuthorTable = "book_author_books"
	// BookAuthorInverseTable is the table name for the BookAuthor entity.
	// It exists in this package in order to avoid circular dependency with the "bookauthor" package.
	BookAuthorInverseTable = "book_authors"
)

Variables

View Source
var (
	// BookAuthorPrimaryKey and BookAuthorColumn2 are the table columns denoting the
	// primary key for the book_author relation (M2M).
	BookAuthorPrimaryKey = []string{"book_author_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 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 GoodreadsID

func GoodreadsID(v string) predicate.Book

GoodreadsID applies equality check predicate on the "goodreads_id" field. It's identical to GoodreadsIDEQ.

func GoodreadsIDContains

func GoodreadsIDContains(v string) predicate.Book

GoodreadsIDContains applies the Contains predicate on the "goodreads_id" field.

func GoodreadsIDContainsFold

func GoodreadsIDContainsFold(v string) predicate.Book

GoodreadsIDContainsFold applies the ContainsFold predicate on the "goodreads_id" field.

func GoodreadsIDEQ

func GoodreadsIDEQ(v string) predicate.Book

GoodreadsIDEQ applies the EQ predicate on the "goodreads_id" field.

func GoodreadsIDEqualFold

func GoodreadsIDEqualFold(v string) predicate.Book

GoodreadsIDEqualFold applies the EqualFold predicate on the "goodreads_id" field.

func GoodreadsIDGT

func GoodreadsIDGT(v string) predicate.Book

GoodreadsIDGT applies the GT predicate on the "goodreads_id" field.

func GoodreadsIDGTE

func GoodreadsIDGTE(v string) predicate.Book

GoodreadsIDGTE applies the GTE predicate on the "goodreads_id" field.

func GoodreadsIDHasPrefix

func GoodreadsIDHasPrefix(v string) predicate.Book

GoodreadsIDHasPrefix applies the HasPrefix predicate on the "goodreads_id" field.

func GoodreadsIDHasSuffix

func GoodreadsIDHasSuffix(v string) predicate.Book

GoodreadsIDHasSuffix applies the HasSuffix predicate on the "goodreads_id" field.

func GoodreadsIDIn

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

GoodreadsIDIn applies the In predicate on the "goodreads_id" field.

func GoodreadsIDLT

func GoodreadsIDLT(v string) predicate.Book

GoodreadsIDLT applies the LT predicate on the "goodreads_id" field.

func GoodreadsIDLTE

func GoodreadsIDLTE(v string) predicate.Book

GoodreadsIDLTE applies the LTE predicate on the "goodreads_id" field.

func GoodreadsIDNEQ

func GoodreadsIDNEQ(v string) predicate.Book

GoodreadsIDNEQ applies the NEQ predicate on the "goodreads_id" field.

func GoodreadsIDNotIn

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

GoodreadsIDNotIn applies the NotIn predicate on the "goodreads_id" field.

func GoogleVolumeID

func GoogleVolumeID(v string) predicate.Book

GoogleVolumeID applies equality check predicate on the "google_volume_id" field. It's identical to GoogleVolumeIDEQ.

func GoogleVolumeIDContains

func GoogleVolumeIDContains(v string) predicate.Book

GoogleVolumeIDContains applies the Contains predicate on the "google_volume_id" field.

func GoogleVolumeIDContainsFold

func GoogleVolumeIDContainsFold(v string) predicate.Book

GoogleVolumeIDContainsFold applies the ContainsFold predicate on the "google_volume_id" field.

func GoogleVolumeIDEQ

func GoogleVolumeIDEQ(v string) predicate.Book

GoogleVolumeIDEQ applies the EQ predicate on the "google_volume_id" field.

func GoogleVolumeIDEqualFold

func GoogleVolumeIDEqualFold(v string) predicate.Book

GoogleVolumeIDEqualFold applies the EqualFold predicate on the "google_volume_id" field.

func GoogleVolumeIDGT

func GoogleVolumeIDGT(v string) predicate.Book

GoogleVolumeIDGT applies the GT predicate on the "google_volume_id" field.

func GoogleVolumeIDGTE

func GoogleVolumeIDGTE(v string) predicate.Book

GoogleVolumeIDGTE applies the GTE predicate on the "google_volume_id" field.

func GoogleVolumeIDHasPrefix

func GoogleVolumeIDHasPrefix(v string) predicate.Book

GoogleVolumeIDHasPrefix applies the HasPrefix predicate on the "google_volume_id" field.

func GoogleVolumeIDHasSuffix

func GoogleVolumeIDHasSuffix(v string) predicate.Book

GoogleVolumeIDHasSuffix applies the HasSuffix predicate on the "google_volume_id" field.

func GoogleVolumeIDIn

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

GoogleVolumeIDIn applies the In predicate on the "google_volume_id" field.

func GoogleVolumeIDLT

func GoogleVolumeIDLT(v string) predicate.Book

GoogleVolumeIDLT applies the LT predicate on the "google_volume_id" field.

func GoogleVolumeIDLTE

func GoogleVolumeIDLTE(v string) predicate.Book

GoogleVolumeIDLTE applies the LTE predicate on the "google_volume_id" field.

func GoogleVolumeIDNEQ

func GoogleVolumeIDNEQ(v string) predicate.Book

GoogleVolumeIDNEQ applies the NEQ predicate on the "google_volume_id" field.

func GoogleVolumeIDNotIn

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

GoogleVolumeIDNotIn applies the NotIn predicate on the "google_volume_id" field.

func HasBookAuthor

func HasBookAuthor() predicate.Book

HasBookAuthor applies the HasEdge predicate on the "book_author" edge.

func HasBookAuthorWith

func HasBookAuthorWith(preds ...predicate.BookAuthor) predicate.Book

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

func ID

func ID(id uuid.UUID) predicate.Book

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Book

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Book

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Book

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Book

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Book

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Book

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Isbn10

func Isbn10(v string) predicate.Book

Isbn10 applies equality check predicate on the "isbn_10" field. It's identical to Isbn10EQ.

func Isbn10Contains

func Isbn10Contains(v string) predicate.Book

Isbn10Contains applies the Contains predicate on the "isbn_10" field.

func Isbn10ContainsFold

func Isbn10ContainsFold(v string) predicate.Book

Isbn10ContainsFold applies the ContainsFold predicate on the "isbn_10" field.

func Isbn10EQ

func Isbn10EQ(v string) predicate.Book

Isbn10EQ applies the EQ predicate on the "isbn_10" field.

func Isbn10EqualFold

func Isbn10EqualFold(v string) predicate.Book

Isbn10EqualFold applies the EqualFold predicate on the "isbn_10" field.

func Isbn10GT

func Isbn10GT(v string) predicate.Book

Isbn10GT applies the GT predicate on the "isbn_10" field.

func Isbn10GTE

func Isbn10GTE(v string) predicate.Book

Isbn10GTE applies the GTE predicate on the "isbn_10" field.

func Isbn10HasPrefix

func Isbn10HasPrefix(v string) predicate.Book

Isbn10HasPrefix applies the HasPrefix predicate on the "isbn_10" field.

func Isbn10HasSuffix

func Isbn10HasSuffix(v string) predicate.Book

Isbn10HasSuffix applies the HasSuffix predicate on the "isbn_10" field.

func Isbn10In

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

Isbn10In applies the In predicate on the "isbn_10" field.

func Isbn10LT

func Isbn10LT(v string) predicate.Book

Isbn10LT applies the LT predicate on the "isbn_10" field.

func Isbn10LTE

func Isbn10LTE(v string) predicate.Book

Isbn10LTE applies the LTE predicate on the "isbn_10" field.

func Isbn10NEQ

func Isbn10NEQ(v string) predicate.Book

Isbn10NEQ applies the NEQ predicate on the "isbn_10" field.

func Isbn10NotIn

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

Isbn10NotIn applies the NotIn predicate on the "isbn_10" field.

func Isbn13

func Isbn13(v string) predicate.Book

Isbn13 applies equality check predicate on the "isbn_13" field. It's identical to Isbn13EQ.

func Isbn13Contains

func Isbn13Contains(v string) predicate.Book

Isbn13Contains applies the Contains predicate on the "isbn_13" field.

func Isbn13ContainsFold

func Isbn13ContainsFold(v string) predicate.Book

Isbn13ContainsFold applies the ContainsFold predicate on the "isbn_13" field.

func Isbn13EQ

func Isbn13EQ(v string) predicate.Book

Isbn13EQ applies the EQ predicate on the "isbn_13" field.

func Isbn13EqualFold

func Isbn13EqualFold(v string) predicate.Book

Isbn13EqualFold applies the EqualFold predicate on the "isbn_13" field.

func Isbn13GT

func Isbn13GT(v string) predicate.Book

Isbn13GT applies the GT predicate on the "isbn_13" field.

func Isbn13GTE

func Isbn13GTE(v string) predicate.Book

Isbn13GTE applies the GTE predicate on the "isbn_13" field.

func Isbn13HasPrefix

func Isbn13HasPrefix(v string) predicate.Book

Isbn13HasPrefix applies the HasPrefix predicate on the "isbn_13" field.

func Isbn13HasSuffix

func Isbn13HasSuffix(v string) predicate.Book

Isbn13HasSuffix applies the HasSuffix predicate on the "isbn_13" field.

func Isbn13In

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

Isbn13In applies the In predicate on the "isbn_13" field.

func Isbn13LT

func Isbn13LT(v string) predicate.Book

Isbn13LT applies the LT predicate on the "isbn_13" field.

func Isbn13LTE

func Isbn13LTE(v string) predicate.Book

Isbn13LTE applies the LTE predicate on the "isbn_13" field.

func Isbn13NEQ

func Isbn13NEQ(v string) predicate.Book

Isbn13NEQ applies the NEQ predicate on the "isbn_13" field.

func Isbn13NotIn

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

Isbn13NotIn applies the NotIn predicate on the "isbn_13" 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 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 ByBookAuthor

func ByBookAuthor(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByBookAuthor orders the results by book_author terms.

func ByBookAuthorCount

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

ByBookAuthorCount orders the results by book_author count.

func ByDescription

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

ByDescription orders the results by the description field.

func ByGoodreadsID

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

ByGoodreadsID orders the results by the goodreads_id field.

func ByGoogleVolumeID

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

ByGoogleVolumeID orders the results by the google_volume_id field.

func ByID

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

ByID orders the results by the id field.

func ByIsbn10

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

ByIsbn10 orders the results by the isbn_10 field.

func ByIsbn13

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

ByIsbn13 orders the results by the isbn_13 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