Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Book) predicate.Book
- func Description(v string) predicate.Book
- func DescriptionContains(v string) predicate.Book
- func DescriptionContainsFold(v string) predicate.Book
- func DescriptionEQ(v string) predicate.Book
- func DescriptionEqualFold(v string) predicate.Book
- func DescriptionGT(v string) predicate.Book
- func DescriptionGTE(v string) predicate.Book
- func DescriptionHasPrefix(v string) predicate.Book
- func DescriptionHasSuffix(v string) predicate.Book
- func DescriptionIn(vs ...string) predicate.Book
- func DescriptionLT(v string) predicate.Book
- func DescriptionLTE(v string) predicate.Book
- func DescriptionNEQ(v string) predicate.Book
- func DescriptionNotIn(vs ...string) predicate.Book
- func GoodreadsID(v string) predicate.Book
- func GoodreadsIDContains(v string) predicate.Book
- func GoodreadsIDContainsFold(v string) predicate.Book
- func GoodreadsIDEQ(v string) predicate.Book
- func GoodreadsIDEqualFold(v string) predicate.Book
- func GoodreadsIDGT(v string) predicate.Book
- func GoodreadsIDGTE(v string) predicate.Book
- func GoodreadsIDHasPrefix(v string) predicate.Book
- func GoodreadsIDHasSuffix(v string) predicate.Book
- func GoodreadsIDIn(vs ...string) predicate.Book
- func GoodreadsIDLT(v string) predicate.Book
- func GoodreadsIDLTE(v string) predicate.Book
- func GoodreadsIDNEQ(v string) predicate.Book
- func GoodreadsIDNotIn(vs ...string) predicate.Book
- func GoogleVolumeID(v string) predicate.Book
- func GoogleVolumeIDContains(v string) predicate.Book
- func GoogleVolumeIDContainsFold(v string) predicate.Book
- func GoogleVolumeIDEQ(v string) predicate.Book
- func GoogleVolumeIDEqualFold(v string) predicate.Book
- func GoogleVolumeIDGT(v string) predicate.Book
- func GoogleVolumeIDGTE(v string) predicate.Book
- func GoogleVolumeIDHasPrefix(v string) predicate.Book
- func GoogleVolumeIDHasSuffix(v string) predicate.Book
- func GoogleVolumeIDIn(vs ...string) predicate.Book
- func GoogleVolumeIDLT(v string) predicate.Book
- func GoogleVolumeIDLTE(v string) predicate.Book
- func GoogleVolumeIDNEQ(v string) predicate.Book
- func GoogleVolumeIDNotIn(vs ...string) predicate.Book
- func HasBookAuthor() predicate.Book
- func HasBookAuthorWith(preds ...predicate.BookAuthor) predicate.Book
- func ID(id uuid.UUID) predicate.Book
- func IDEQ(id uuid.UUID) predicate.Book
- func IDGT(id uuid.UUID) predicate.Book
- func IDGTE(id uuid.UUID) predicate.Book
- func IDIn(ids ...uuid.UUID) predicate.Book
- func IDLT(id uuid.UUID) predicate.Book
- func IDLTE(id uuid.UUID) predicate.Book
- func IDNEQ(id uuid.UUID) predicate.Book
- func IDNotIn(ids ...uuid.UUID) predicate.Book
- func Isbn10(v string) predicate.Book
- func Isbn10Contains(v string) predicate.Book
- func Isbn10ContainsFold(v string) predicate.Book
- func Isbn10EQ(v string) predicate.Book
- func Isbn10EqualFold(v string) predicate.Book
- func Isbn10GT(v string) predicate.Book
- func Isbn10GTE(v string) predicate.Book
- func Isbn10HasPrefix(v string) predicate.Book
- func Isbn10HasSuffix(v string) predicate.Book
- func Isbn10In(vs ...string) predicate.Book
- func Isbn10LT(v string) predicate.Book
- func Isbn10LTE(v string) predicate.Book
- func Isbn10NEQ(v string) predicate.Book
- func Isbn10NotIn(vs ...string) predicate.Book
- func Isbn13(v string) predicate.Book
- func Isbn13Contains(v string) predicate.Book
- func Isbn13ContainsFold(v string) predicate.Book
- func Isbn13EQ(v string) predicate.Book
- func Isbn13EqualFold(v string) predicate.Book
- func Isbn13GT(v string) predicate.Book
- func Isbn13GTE(v string) predicate.Book
- func Isbn13HasPrefix(v string) predicate.Book
- func Isbn13HasSuffix(v string) predicate.Book
- func Isbn13In(vs ...string) predicate.Book
- func Isbn13LT(v string) predicate.Book
- func Isbn13LTE(v string) predicate.Book
- func Isbn13NEQ(v string) predicate.Book
- func Isbn13NotIn(vs ...string) predicate.Book
- func Not(p predicate.Book) predicate.Book
- func Or(predicates ...predicate.Book) predicate.Book
- func Title(v string) predicate.Book
- func TitleContains(v string) predicate.Book
- func TitleContainsFold(v string) predicate.Book
- func TitleEQ(v string) predicate.Book
- func TitleEqualFold(v string) predicate.Book
- func TitleGT(v string) predicate.Book
- func TitleGTE(v string) predicate.Book
- func TitleHasPrefix(v string) predicate.Book
- func TitleHasSuffix(v string) predicate.Book
- func TitleIn(vs ...string) predicate.Book
- func TitleLT(v string) predicate.Book
- func TitleLTE(v string) predicate.Book
- func TitleNEQ(v string) predicate.Book
- func TitleNotIn(vs ...string) predicate.Book
- func ValidColumn(column string) bool
- type OrderOption
- func ByBookAuthor(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByBookAuthorCount(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByGoodreadsID(opts ...sql.OrderTermOption) OrderOption
- func ByGoogleVolumeID(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIsbn10(opts ...sql.OrderTermOption) OrderOption
- func ByIsbn13(opts ...sql.OrderTermOption) OrderOption
- func ByTitle(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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"} )
var Columns = []string{ FieldID, FieldTitle, FieldDescription, FieldGoodreadsID, FieldGoogleVolumeID, FieldIsbn10, FieldIsbn13, }
Columns holds all SQL columns for book fields.
Functions ¶
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func GoodreadsID ¶
GoodreadsID applies equality check predicate on the "goodreads_id" field. It's identical to GoodreadsIDEQ.
func GoodreadsIDContains ¶
GoodreadsIDContains applies the Contains predicate on the "goodreads_id" field.
func GoodreadsIDContainsFold ¶
GoodreadsIDContainsFold applies the ContainsFold predicate on the "goodreads_id" field.
func GoodreadsIDEQ ¶
GoodreadsIDEQ applies the EQ predicate on the "goodreads_id" field.
func GoodreadsIDEqualFold ¶
GoodreadsIDEqualFold applies the EqualFold predicate on the "goodreads_id" field.
func GoodreadsIDGT ¶
GoodreadsIDGT applies the GT predicate on the "goodreads_id" field.
func GoodreadsIDGTE ¶
GoodreadsIDGTE applies the GTE predicate on the "goodreads_id" field.
func GoodreadsIDHasPrefix ¶
GoodreadsIDHasPrefix applies the HasPrefix predicate on the "goodreads_id" field.
func GoodreadsIDHasSuffix ¶
GoodreadsIDHasSuffix applies the HasSuffix predicate on the "goodreads_id" field.
func GoodreadsIDIn ¶
GoodreadsIDIn applies the In predicate on the "goodreads_id" field.
func GoodreadsIDLT ¶
GoodreadsIDLT applies the LT predicate on the "goodreads_id" field.
func GoodreadsIDLTE ¶
GoodreadsIDLTE applies the LTE predicate on the "goodreads_id" field.
func GoodreadsIDNEQ ¶
GoodreadsIDNEQ applies the NEQ predicate on the "goodreads_id" field.
func GoodreadsIDNotIn ¶
GoodreadsIDNotIn applies the NotIn predicate on the "goodreads_id" field.
func GoogleVolumeID ¶
GoogleVolumeID applies equality check predicate on the "google_volume_id" field. It's identical to GoogleVolumeIDEQ.
func GoogleVolumeIDContains ¶
GoogleVolumeIDContains applies the Contains predicate on the "google_volume_id" field.
func GoogleVolumeIDContainsFold ¶
GoogleVolumeIDContainsFold applies the ContainsFold predicate on the "google_volume_id" field.
func GoogleVolumeIDEQ ¶
GoogleVolumeIDEQ applies the EQ predicate on the "google_volume_id" field.
func GoogleVolumeIDEqualFold ¶
GoogleVolumeIDEqualFold applies the EqualFold predicate on the "google_volume_id" field.
func GoogleVolumeIDGT ¶
GoogleVolumeIDGT applies the GT predicate on the "google_volume_id" field.
func GoogleVolumeIDGTE ¶
GoogleVolumeIDGTE applies the GTE predicate on the "google_volume_id" field.
func GoogleVolumeIDHasPrefix ¶
GoogleVolumeIDHasPrefix applies the HasPrefix predicate on the "google_volume_id" field.
func GoogleVolumeIDHasSuffix ¶
GoogleVolumeIDHasSuffix applies the HasSuffix predicate on the "google_volume_id" field.
func GoogleVolumeIDIn ¶
GoogleVolumeIDIn applies the In predicate on the "google_volume_id" field.
func GoogleVolumeIDLT ¶
GoogleVolumeIDLT applies the LT predicate on the "google_volume_id" field.
func GoogleVolumeIDLTE ¶
GoogleVolumeIDLTE applies the LTE predicate on the "google_volume_id" field.
func GoogleVolumeIDNEQ ¶
GoogleVolumeIDNEQ applies the NEQ predicate on the "google_volume_id" field.
func GoogleVolumeIDNotIn ¶
GoogleVolumeIDNotIn applies the NotIn predicate on the "google_volume_id" field.
func HasBookAuthor ¶
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 Isbn10 ¶
Isbn10 applies equality check predicate on the "isbn_10" field. It's identical to Isbn10EQ.
func Isbn10Contains ¶
Isbn10Contains applies the Contains predicate on the "isbn_10" field.
func Isbn10ContainsFold ¶
Isbn10ContainsFold applies the ContainsFold predicate on the "isbn_10" field.
func Isbn10EqualFold ¶
Isbn10EqualFold applies the EqualFold predicate on the "isbn_10" field.
func Isbn10HasPrefix ¶
Isbn10HasPrefix applies the HasPrefix predicate on the "isbn_10" field.
func Isbn10HasSuffix ¶
Isbn10HasSuffix applies the HasSuffix predicate on the "isbn_10" field.
func Isbn10NotIn ¶
Isbn10NotIn applies the NotIn predicate on the "isbn_10" field.
func Isbn13 ¶
Isbn13 applies equality check predicate on the "isbn_13" field. It's identical to Isbn13EQ.
func Isbn13Contains ¶
Isbn13Contains applies the Contains predicate on the "isbn_13" field.
func Isbn13ContainsFold ¶
Isbn13ContainsFold applies the ContainsFold predicate on the "isbn_13" field.
func Isbn13EqualFold ¶
Isbn13EqualFold applies the EqualFold predicate on the "isbn_13" field.
func Isbn13HasPrefix ¶
Isbn13HasPrefix applies the HasPrefix predicate on the "isbn_13" field.
func Isbn13HasSuffix ¶
Isbn13HasSuffix applies the HasSuffix predicate on the "isbn_13" field.
func Isbn13NotIn ¶
Isbn13NotIn applies the NotIn predicate on the "isbn_13" field.
func Title ¶
Title applies equality check predicate on the "title" field. It's identical to TitleEQ.
func TitleContains ¶
TitleContains applies the Contains predicate on the "title" field.
func TitleContainsFold ¶
TitleContainsFold applies the ContainsFold predicate on the "title" field.
func TitleEqualFold ¶
TitleEqualFold applies the EqualFold predicate on the "title" field.
func TitleHasPrefix ¶
TitleHasPrefix applies the HasPrefix predicate on the "title" field.
func TitleHasSuffix ¶
TitleHasSuffix applies the HasSuffix predicate on the "title" field.
func TitleNotIn ¶
TitleNotIn applies the NotIn predicate on the "title" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.