Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.TxItem) predicate.TxItem
- func Author(v string) predicate.TxItem
- func AuthorContains(v string) predicate.TxItem
- func AuthorContainsFold(v string) predicate.TxItem
- func AuthorEQ(v string) predicate.TxItem
- func AuthorEqualFold(v string) predicate.TxItem
- func AuthorGT(v string) predicate.TxItem
- func AuthorGTE(v string) predicate.TxItem
- func AuthorHasPrefix(v string) predicate.TxItem
- func AuthorHasSuffix(v string) predicate.TxItem
- func AuthorIn(vs ...string) predicate.TxItem
- func AuthorLT(v string) predicate.TxItem
- func AuthorLTE(v string) predicate.TxItem
- func AuthorNEQ(v string) predicate.TxItem
- func AuthorNotIn(vs ...string) predicate.TxItem
- func BookID(v int64) predicate.TxItem
- func BookIDEQ(v int64) predicate.TxItem
- func BookIDGT(v int64) predicate.TxItem
- func BookIDGTE(v int64) predicate.TxItem
- func BookIDIn(vs ...int64) predicate.TxItem
- func BookIDLT(v int64) predicate.TxItem
- func BookIDLTE(v int64) predicate.TxItem
- func BookIDNEQ(v int64) predicate.TxItem
- func BookIDNotIn(vs ...int64) predicate.TxItem
- func ID(id int64) predicate.TxItem
- func IDEQ(id int64) predicate.TxItem
- func IDGT(id int64) predicate.TxItem
- func IDGTE(id int64) predicate.TxItem
- func IDIn(ids ...int64) predicate.TxItem
- func IDLT(id int64) predicate.TxItem
- func IDLTE(id int64) predicate.TxItem
- func IDNEQ(id int64) predicate.TxItem
- func IDNotIn(ids ...int64) predicate.TxItem
- func ImageURL(v string) predicate.TxItem
- func ImageURLContains(v string) predicate.TxItem
- func ImageURLContainsFold(v string) predicate.TxItem
- func ImageURLEQ(v string) predicate.TxItem
- func ImageURLEqualFold(v string) predicate.TxItem
- func ImageURLGT(v string) predicate.TxItem
- func ImageURLGTE(v string) predicate.TxItem
- func ImageURLHasPrefix(v string) predicate.TxItem
- func ImageURLHasSuffix(v string) predicate.TxItem
- func ImageURLIn(vs ...string) predicate.TxItem
- func ImageURLIsNil() predicate.TxItem
- func ImageURLLT(v string) predicate.TxItem
- func ImageURLLTE(v string) predicate.TxItem
- func ImageURLNEQ(v string) predicate.TxItem
- func ImageURLNotIn(vs ...string) predicate.TxItem
- func ImageURLNotNil() predicate.TxItem
- func Isbn(v string) predicate.TxItem
- func IsbnContains(v string) predicate.TxItem
- func IsbnContainsFold(v string) predicate.TxItem
- func IsbnEQ(v string) predicate.TxItem
- func IsbnEqualFold(v string) predicate.TxItem
- func IsbnGT(v string) predicate.TxItem
- func IsbnGTE(v string) predicate.TxItem
- func IsbnHasPrefix(v string) predicate.TxItem
- func IsbnHasSuffix(v string) predicate.TxItem
- func IsbnIn(vs ...string) predicate.TxItem
- func IsbnLT(v string) predicate.TxItem
- func IsbnLTE(v string) predicate.TxItem
- func IsbnNEQ(v string) predicate.TxItem
- func IsbnNotIn(vs ...string) predicate.TxItem
- func Not(p predicate.TxItem) predicate.TxItem
- func Or(predicates ...predicate.TxItem) predicate.TxItem
- func Price(v float64) predicate.TxItem
- func PriceEQ(v float64) predicate.TxItem
- func PriceGT(v float64) predicate.TxItem
- func PriceGTE(v float64) predicate.TxItem
- func PriceIn(vs ...float64) predicate.TxItem
- func PriceLT(v float64) predicate.TxItem
- func PriceLTE(v float64) predicate.TxItem
- func PriceNEQ(v float64) predicate.TxItem
- func PriceNotIn(vs ...float64) predicate.TxItem
- func PublisherID(v int64) predicate.TxItem
- func PublisherIDEQ(v int64) predicate.TxItem
- func PublisherIDGT(v int64) predicate.TxItem
- func PublisherIDGTE(v int64) predicate.TxItem
- func PublisherIDIn(vs ...int64) predicate.TxItem
- func PublisherIDIsNil() predicate.TxItem
- func PublisherIDLT(v int64) predicate.TxItem
- func PublisherIDLTE(v int64) predicate.TxItem
- func PublisherIDNEQ(v int64) predicate.TxItem
- func PublisherIDNotIn(vs ...int64) predicate.TxItem
- func PublisherIDNotNil() predicate.TxItem
- func Quantity(v int) predicate.TxItem
- func QuantityEQ(v int) predicate.TxItem
- func QuantityGT(v int) predicate.TxItem
- func QuantityGTE(v int) predicate.TxItem
- func QuantityIn(vs ...int) predicate.TxItem
- func QuantityLT(v int) predicate.TxItem
- func QuantityLTE(v int) predicate.TxItem
- func QuantityNEQ(v int) predicate.TxItem
- func QuantityNotIn(vs ...int) predicate.TxItem
- func Title(v string) predicate.TxItem
- func TitleContains(v string) predicate.TxItem
- func TitleContainsFold(v string) predicate.TxItem
- func TitleEQ(v string) predicate.TxItem
- func TitleEqualFold(v string) predicate.TxItem
- func TitleGT(v string) predicate.TxItem
- func TitleGTE(v string) predicate.TxItem
- func TitleHasPrefix(v string) predicate.TxItem
- func TitleHasSuffix(v string) predicate.TxItem
- func TitleIn(vs ...string) predicate.TxItem
- func TitleLT(v string) predicate.TxItem
- func TitleLTE(v string) predicate.TxItem
- func TitleNEQ(v string) predicate.TxItem
- func TitleNotIn(vs ...string) predicate.TxItem
- func TxID(v int64) predicate.TxItem
- func TxIDEQ(v int64) predicate.TxItem
- func TxIDGT(v int64) predicate.TxItem
- func TxIDGTE(v int64) predicate.TxItem
- func TxIDIn(vs ...int64) predicate.TxItem
- func TxIDLT(v int64) predicate.TxItem
- func TxIDLTE(v int64) predicate.TxItem
- func TxIDNEQ(v int64) predicate.TxItem
- func TxIDNotIn(vs ...int64) predicate.TxItem
- func TxTypeEQ(v TxType) predicate.TxItem
- func TxTypeIn(vs ...TxType) predicate.TxItem
- func TxTypeNEQ(v TxType) predicate.TxItem
- func TxTypeNotIn(vs ...TxType) predicate.TxItem
- func TxTypeValidator(tt TxType) error
- func ValidColumn(column string) bool
- type OrderOption
- func ByAuthor(opts ...sql.OrderTermOption) OrderOption
- func ByBookID(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByImageURL(opts ...sql.OrderTermOption) OrderOption
- func ByIsbn(opts ...sql.OrderTermOption) OrderOption
- func ByPrice(opts ...sql.OrderTermOption) OrderOption
- func ByPublisherID(opts ...sql.OrderTermOption) OrderOption
- func ByQuantity(opts ...sql.OrderTermOption) OrderOption
- func ByTitle(opts ...sql.OrderTermOption) OrderOption
- func ByTxID(opts ...sql.OrderTermOption) OrderOption
- func ByTxType(opts ...sql.OrderTermOption) OrderOption
- type TxType
Constants ¶
const ( // Label holds the string label denoting the txitem type in the database. Label = "tx_item" // FieldID holds the string denoting the id field in the database. FieldID = "tx_item_id" // FieldTxType holds the string denoting the tx_type field in the database. FieldTxType = "tx_type" // FieldTxID holds the string denoting the tx_id field in the database. FieldTxID = "tx_id" // FieldBookID holds the string denoting the book_id field in the database. FieldBookID = "book_id" // FieldQuantity holds the string denoting the quantity field in the database. FieldQuantity = "quantity" // FieldPrice holds the string denoting the price field in the database. FieldPrice = "price" // FieldIsbn holds the string denoting the isbn field in the database. FieldIsbn = "isbn" // 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" // FieldPublisherID holds the string denoting the publisher_id field in the database. FieldPublisherID = "publisher_id" // FieldImageURL holds the string denoting the image_url field in the database. FieldImageURL = "image_url" // Table holds the table name of the txitem in the database. Table = "tx_items" )
Variables ¶
var Columns = []string{ FieldID, FieldTxType, FieldTxID, FieldBookID, FieldQuantity, FieldPrice, FieldIsbn, FieldTitle, FieldAuthor, FieldPublisherID, FieldImageURL, }
Columns holds all SQL columns for txitem fields.
var ForeignKeys = []string{
"order_tx_items",
"transaction_tx_items",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "tx_items" table and are not defined as standalone fields in the schema.
Functions ¶
func Author ¶
Author applies equality check predicate on the "author" field. It's identical to AuthorEQ.
func AuthorContains ¶
AuthorContains applies the Contains predicate on the "author" field.
func AuthorContainsFold ¶
AuthorContainsFold applies the ContainsFold predicate on the "author" field.
func AuthorEqualFold ¶
AuthorEqualFold applies the EqualFold predicate on the "author" field.
func AuthorHasPrefix ¶
AuthorHasPrefix applies the HasPrefix predicate on the "author" field.
func AuthorHasSuffix ¶
AuthorHasSuffix applies the HasSuffix predicate on the "author" field.
func AuthorNotIn ¶
AuthorNotIn applies the NotIn predicate on the "author" field.
func BookID ¶
BookID applies equality check predicate on the "book_id" field. It's identical to BookIDEQ.
func BookIDNotIn ¶
BookIDNotIn applies the NotIn predicate on the "book_id" field.
func ImageURL ¶
ImageURL applies equality check predicate on the "image_url" field. It's identical to ImageURLEQ.
func ImageURLContains ¶
ImageURLContains applies the Contains predicate on the "image_url" field.
func ImageURLContainsFold ¶
ImageURLContainsFold applies the ContainsFold predicate on the "image_url" field.
func ImageURLEQ ¶
ImageURLEQ applies the EQ predicate on the "image_url" field.
func ImageURLEqualFold ¶
ImageURLEqualFold applies the EqualFold predicate on the "image_url" field.
func ImageURLGT ¶
ImageURLGT applies the GT predicate on the "image_url" field.
func ImageURLGTE ¶
ImageURLGTE applies the GTE predicate on the "image_url" field.
func ImageURLHasPrefix ¶
ImageURLHasPrefix applies the HasPrefix predicate on the "image_url" field.
func ImageURLHasSuffix ¶
ImageURLHasSuffix applies the HasSuffix predicate on the "image_url" field.
func ImageURLIn ¶
ImageURLIn applies the In predicate on the "image_url" field.
func ImageURLIsNil ¶
ImageURLIsNil applies the IsNil predicate on the "image_url" field.
func ImageURLLT ¶
ImageURLLT applies the LT predicate on the "image_url" field.
func ImageURLLTE ¶
ImageURLLTE applies the LTE predicate on the "image_url" field.
func ImageURLNEQ ¶
ImageURLNEQ applies the NEQ predicate on the "image_url" field.
func ImageURLNotIn ¶
ImageURLNotIn applies the NotIn predicate on the "image_url" field.
func ImageURLNotNil ¶
ImageURLNotNil applies the NotNil predicate on the "image_url" field.
func IsbnContains ¶
IsbnContains applies the Contains predicate on the "isbn" field.
func IsbnContainsFold ¶
IsbnContainsFold applies the ContainsFold predicate on the "isbn" field.
func IsbnEqualFold ¶
IsbnEqualFold applies the EqualFold predicate on the "isbn" field.
func IsbnHasPrefix ¶
IsbnHasPrefix applies the HasPrefix predicate on the "isbn" field.
func IsbnHasSuffix ¶
IsbnHasSuffix applies the HasSuffix predicate on the "isbn" field.
func Price ¶
Price applies equality check predicate on the "price" field. It's identical to PriceEQ.
func PriceNotIn ¶
PriceNotIn applies the NotIn predicate on the "price" field.
func PublisherID ¶
PublisherID applies equality check predicate on the "publisher_id" field. It's identical to PublisherIDEQ.
func PublisherIDEQ ¶
PublisherIDEQ applies the EQ predicate on the "publisher_id" field.
func PublisherIDGT ¶
PublisherIDGT applies the GT predicate on the "publisher_id" field.
func PublisherIDGTE ¶
PublisherIDGTE applies the GTE predicate on the "publisher_id" field.
func PublisherIDIn ¶
PublisherIDIn applies the In predicate on the "publisher_id" field.
func PublisherIDIsNil ¶
PublisherIDIsNil applies the IsNil predicate on the "publisher_id" field.
func PublisherIDLT ¶
PublisherIDLT applies the LT predicate on the "publisher_id" field.
func PublisherIDLTE ¶
PublisherIDLTE applies the LTE predicate on the "publisher_id" field.
func PublisherIDNEQ ¶
PublisherIDNEQ applies the NEQ predicate on the "publisher_id" field.
func PublisherIDNotIn ¶
PublisherIDNotIn applies the NotIn predicate on the "publisher_id" field.
func PublisherIDNotNil ¶
PublisherIDNotNil applies the NotNil predicate on the "publisher_id" field.
func Quantity ¶
Quantity applies equality check predicate on the "quantity" field. It's identical to QuantityEQ.
func QuantityEQ ¶
QuantityEQ applies the EQ predicate on the "quantity" field.
func QuantityGT ¶
QuantityGT applies the GT predicate on the "quantity" field.
func QuantityGTE ¶
QuantityGTE applies the GTE predicate on the "quantity" field.
func QuantityIn ¶
QuantityIn applies the In predicate on the "quantity" field.
func QuantityLT ¶
QuantityLT applies the LT predicate on the "quantity" field.
func QuantityLTE ¶
QuantityLTE applies the LTE predicate on the "quantity" field.
func QuantityNEQ ¶
QuantityNEQ applies the NEQ predicate on the "quantity" field.
func QuantityNotIn ¶
QuantityNotIn applies the NotIn predicate on the "quantity" 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 TxTypeNotIn ¶
TxTypeNotIn applies the NotIn predicate on the "tx_type" field.
func TxTypeValidator ¶
TxTypeValidator is a validator for the "tx_type" field enum values. It is called by the builders before save.
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 TxItem queries.
func ByAuthor ¶
func ByAuthor(opts ...sql.OrderTermOption) OrderOption
ByAuthor orders the results by the author field.
func ByBookID ¶
func ByBookID(opts ...sql.OrderTermOption) OrderOption
ByBookID orders the results by the book_id field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByImageURL ¶
func ByImageURL(opts ...sql.OrderTermOption) OrderOption
ByImageURL orders the results by the image_url field.
func ByIsbn ¶
func ByIsbn(opts ...sql.OrderTermOption) OrderOption
ByIsbn orders the results by the isbn field.
func ByPrice ¶
func ByPrice(opts ...sql.OrderTermOption) OrderOption
ByPrice orders the results by the price field.
func ByPublisherID ¶
func ByPublisherID(opts ...sql.OrderTermOption) OrderOption
ByPublisherID orders the results by the publisher_id field.
func ByQuantity ¶
func ByQuantity(opts ...sql.OrderTermOption) OrderOption
ByQuantity orders the results by the quantity field.
func ByTitle ¶
func ByTitle(opts ...sql.OrderTermOption) OrderOption
ByTitle orders the results by the title field.
func ByTxID ¶
func ByTxID(opts ...sql.OrderTermOption) OrderOption
ByTxID orders the results by the tx_id field.
func ByTxType ¶
func ByTxType(opts ...sql.OrderTermOption) OrderOption
ByTxType orders the results by the tx_type field.