txitem

package
v0.0.0-...-4241208 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT, MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
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

Columns holds all SQL columns for txitem fields.

View Source
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 And

func And(predicates ...predicate.TxItem) predicate.TxItem

And groups predicates with the AND operator between them.

func Author

func Author(v string) predicate.TxItem

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

func AuthorContains

func AuthorContains(v string) predicate.TxItem

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

func AuthorContainsFold

func AuthorContainsFold(v string) predicate.TxItem

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

func AuthorEQ

func AuthorEQ(v string) predicate.TxItem

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

func AuthorEqualFold

func AuthorEqualFold(v string) predicate.TxItem

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

func AuthorGT

func AuthorGT(v string) predicate.TxItem

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

func AuthorGTE

func AuthorGTE(v string) predicate.TxItem

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

func AuthorHasPrefix

func AuthorHasPrefix(v string) predicate.TxItem

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

func AuthorHasSuffix

func AuthorHasSuffix(v string) predicate.TxItem

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

func AuthorIn

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

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

func AuthorLT

func AuthorLT(v string) predicate.TxItem

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

func AuthorLTE

func AuthorLTE(v string) predicate.TxItem

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

func AuthorNEQ

func AuthorNEQ(v string) predicate.TxItem

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

func AuthorNotIn

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

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

func BookID

func BookID(v int64) predicate.TxItem

BookID applies equality check predicate on the "book_id" field. It's identical to BookIDEQ.

func BookIDEQ

func BookIDEQ(v int64) predicate.TxItem

BookIDEQ applies the EQ predicate on the "book_id" field.

func BookIDGT

func BookIDGT(v int64) predicate.TxItem

BookIDGT applies the GT predicate on the "book_id" field.

func BookIDGTE

func BookIDGTE(v int64) predicate.TxItem

BookIDGTE applies the GTE predicate on the "book_id" field.

func BookIDIn

func BookIDIn(vs ...int64) predicate.TxItem

BookIDIn applies the In predicate on the "book_id" field.

func BookIDLT

func BookIDLT(v int64) predicate.TxItem

BookIDLT applies the LT predicate on the "book_id" field.

func BookIDLTE

func BookIDLTE(v int64) predicate.TxItem

BookIDLTE applies the LTE predicate on the "book_id" field.

func BookIDNEQ

func BookIDNEQ(v int64) predicate.TxItem

BookIDNEQ applies the NEQ predicate on the "book_id" field.

func BookIDNotIn

func BookIDNotIn(vs ...int64) predicate.TxItem

BookIDNotIn applies the NotIn predicate on the "book_id" field.

func ID

func ID(id int64) predicate.TxItem

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.TxItem

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.TxItem

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.TxItem

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int64) predicate.TxItem

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.TxItem

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.TxItem

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.TxItem

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int64) predicate.TxItem

IDNotIn applies the NotIn predicate on the ID field.

func ImageURL

func ImageURL(v string) predicate.TxItem

ImageURL applies equality check predicate on the "image_url" field. It's identical to ImageURLEQ.

func ImageURLContains

func ImageURLContains(v string) predicate.TxItem

ImageURLContains applies the Contains predicate on the "image_url" field.

func ImageURLContainsFold

func ImageURLContainsFold(v string) predicate.TxItem

ImageURLContainsFold applies the ContainsFold predicate on the "image_url" field.

func ImageURLEQ

func ImageURLEQ(v string) predicate.TxItem

ImageURLEQ applies the EQ predicate on the "image_url" field.

func ImageURLEqualFold

func ImageURLEqualFold(v string) predicate.TxItem

ImageURLEqualFold applies the EqualFold predicate on the "image_url" field.

func ImageURLGT

func ImageURLGT(v string) predicate.TxItem

ImageURLGT applies the GT predicate on the "image_url" field.

func ImageURLGTE

func ImageURLGTE(v string) predicate.TxItem

ImageURLGTE applies the GTE predicate on the "image_url" field.

func ImageURLHasPrefix

func ImageURLHasPrefix(v string) predicate.TxItem

ImageURLHasPrefix applies the HasPrefix predicate on the "image_url" field.

func ImageURLHasSuffix

func ImageURLHasSuffix(v string) predicate.TxItem

ImageURLHasSuffix applies the HasSuffix predicate on the "image_url" field.

func ImageURLIn

func ImageURLIn(vs ...string) predicate.TxItem

ImageURLIn applies the In predicate on the "image_url" field.

func ImageURLIsNil

func ImageURLIsNil() predicate.TxItem

ImageURLIsNil applies the IsNil predicate on the "image_url" field.

func ImageURLLT

func ImageURLLT(v string) predicate.TxItem

ImageURLLT applies the LT predicate on the "image_url" field.

func ImageURLLTE

func ImageURLLTE(v string) predicate.TxItem

ImageURLLTE applies the LTE predicate on the "image_url" field.

func ImageURLNEQ

func ImageURLNEQ(v string) predicate.TxItem

ImageURLNEQ applies the NEQ predicate on the "image_url" field.

func ImageURLNotIn

func ImageURLNotIn(vs ...string) predicate.TxItem

ImageURLNotIn applies the NotIn predicate on the "image_url" field.

func ImageURLNotNil

func ImageURLNotNil() predicate.TxItem

ImageURLNotNil applies the NotNil predicate on the "image_url" field.

func Isbn

func Isbn(v string) predicate.TxItem

Isbn applies equality check predicate on the "isbn" field. It's identical to IsbnEQ.

func IsbnContains

func IsbnContains(v string) predicate.TxItem

IsbnContains applies the Contains predicate on the "isbn" field.

func IsbnContainsFold

func IsbnContainsFold(v string) predicate.TxItem

IsbnContainsFold applies the ContainsFold predicate on the "isbn" field.

func IsbnEQ

func IsbnEQ(v string) predicate.TxItem

IsbnEQ applies the EQ predicate on the "isbn" field.

func IsbnEqualFold

func IsbnEqualFold(v string) predicate.TxItem

IsbnEqualFold applies the EqualFold predicate on the "isbn" field.

func IsbnGT

func IsbnGT(v string) predicate.TxItem

IsbnGT applies the GT predicate on the "isbn" field.

func IsbnGTE

func IsbnGTE(v string) predicate.TxItem

IsbnGTE applies the GTE predicate on the "isbn" field.

func IsbnHasPrefix

func IsbnHasPrefix(v string) predicate.TxItem

IsbnHasPrefix applies the HasPrefix predicate on the "isbn" field.

func IsbnHasSuffix

func IsbnHasSuffix(v string) predicate.TxItem

IsbnHasSuffix applies the HasSuffix predicate on the "isbn" field.

func IsbnIn

func IsbnIn(vs ...string) predicate.TxItem

IsbnIn applies the In predicate on the "isbn" field.

func IsbnLT

func IsbnLT(v string) predicate.TxItem

IsbnLT applies the LT predicate on the "isbn" field.

func IsbnLTE

func IsbnLTE(v string) predicate.TxItem

IsbnLTE applies the LTE predicate on the "isbn" field.

func IsbnNEQ

func IsbnNEQ(v string) predicate.TxItem

IsbnNEQ applies the NEQ predicate on the "isbn" field.

func IsbnNotIn

func IsbnNotIn(vs ...string) predicate.TxItem

IsbnNotIn applies the NotIn predicate on the "isbn" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.TxItem) predicate.TxItem

Or groups predicates with the OR operator between them.

func Price

func Price(v float64) predicate.TxItem

Price applies equality check predicate on the "price" field. It's identical to PriceEQ.

func PriceEQ

func PriceEQ(v float64) predicate.TxItem

PriceEQ applies the EQ predicate on the "price" field.

func PriceGT

func PriceGT(v float64) predicate.TxItem

PriceGT applies the GT predicate on the "price" field.

func PriceGTE

func PriceGTE(v float64) predicate.TxItem

PriceGTE applies the GTE predicate on the "price" field.

func PriceIn

func PriceIn(vs ...float64) predicate.TxItem

PriceIn applies the In predicate on the "price" field.

func PriceLT

func PriceLT(v float64) predicate.TxItem

PriceLT applies the LT predicate on the "price" field.

func PriceLTE

func PriceLTE(v float64) predicate.TxItem

PriceLTE applies the LTE predicate on the "price" field.

func PriceNEQ

func PriceNEQ(v float64) predicate.TxItem

PriceNEQ applies the NEQ predicate on the "price" field.

func PriceNotIn

func PriceNotIn(vs ...float64) predicate.TxItem

PriceNotIn applies the NotIn predicate on the "price" field.

func PublisherID

func PublisherID(v int64) predicate.TxItem

PublisherID applies equality check predicate on the "publisher_id" field. It's identical to PublisherIDEQ.

func PublisherIDEQ

func PublisherIDEQ(v int64) predicate.TxItem

PublisherIDEQ applies the EQ predicate on the "publisher_id" field.

func PublisherIDGT

func PublisherIDGT(v int64) predicate.TxItem

PublisherIDGT applies the GT predicate on the "publisher_id" field.

func PublisherIDGTE

func PublisherIDGTE(v int64) predicate.TxItem

PublisherIDGTE applies the GTE predicate on the "publisher_id" field.

func PublisherIDIn

func PublisherIDIn(vs ...int64) predicate.TxItem

PublisherIDIn applies the In predicate on the "publisher_id" field.

func PublisherIDIsNil

func PublisherIDIsNil() predicate.TxItem

PublisherIDIsNil applies the IsNil predicate on the "publisher_id" field.

func PublisherIDLT

func PublisherIDLT(v int64) predicate.TxItem

PublisherIDLT applies the LT predicate on the "publisher_id" field.

func PublisherIDLTE

func PublisherIDLTE(v int64) predicate.TxItem

PublisherIDLTE applies the LTE predicate on the "publisher_id" field.

func PublisherIDNEQ

func PublisherIDNEQ(v int64) predicate.TxItem

PublisherIDNEQ applies the NEQ predicate on the "publisher_id" field.

func PublisherIDNotIn

func PublisherIDNotIn(vs ...int64) predicate.TxItem

PublisherIDNotIn applies the NotIn predicate on the "publisher_id" field.

func PublisherIDNotNil

func PublisherIDNotNil() predicate.TxItem

PublisherIDNotNil applies the NotNil predicate on the "publisher_id" field.

func Quantity

func Quantity(v int) predicate.TxItem

Quantity applies equality check predicate on the "quantity" field. It's identical to QuantityEQ.

func QuantityEQ

func QuantityEQ(v int) predicate.TxItem

QuantityEQ applies the EQ predicate on the "quantity" field.

func QuantityGT

func QuantityGT(v int) predicate.TxItem

QuantityGT applies the GT predicate on the "quantity" field.

func QuantityGTE

func QuantityGTE(v int) predicate.TxItem

QuantityGTE applies the GTE predicate on the "quantity" field.

func QuantityIn

func QuantityIn(vs ...int) predicate.TxItem

QuantityIn applies the In predicate on the "quantity" field.

func QuantityLT

func QuantityLT(v int) predicate.TxItem

QuantityLT applies the LT predicate on the "quantity" field.

func QuantityLTE

func QuantityLTE(v int) predicate.TxItem

QuantityLTE applies the LTE predicate on the "quantity" field.

func QuantityNEQ

func QuantityNEQ(v int) predicate.TxItem

QuantityNEQ applies the NEQ predicate on the "quantity" field.

func QuantityNotIn

func QuantityNotIn(vs ...int) predicate.TxItem

QuantityNotIn applies the NotIn predicate on the "quantity" field.

func Title

func Title(v string) predicate.TxItem

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

func TitleContains

func TitleContains(v string) predicate.TxItem

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

func TitleContainsFold

func TitleContainsFold(v string) predicate.TxItem

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

func TitleEQ

func TitleEQ(v string) predicate.TxItem

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

func TitleEqualFold

func TitleEqualFold(v string) predicate.TxItem

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

func TitleGT

func TitleGT(v string) predicate.TxItem

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

func TitleGTE

func TitleGTE(v string) predicate.TxItem

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

func TitleHasPrefix

func TitleHasPrefix(v string) predicate.TxItem

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

func TitleHasSuffix

func TitleHasSuffix(v string) predicate.TxItem

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

func TitleIn

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

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

func TitleLT

func TitleLT(v string) predicate.TxItem

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

func TitleLTE

func TitleLTE(v string) predicate.TxItem

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

func TitleNEQ

func TitleNEQ(v string) predicate.TxItem

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

func TitleNotIn

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

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

func TxID

func TxID(v int64) predicate.TxItem

TxID applies equality check predicate on the "tx_id" field. It's identical to TxIDEQ.

func TxIDEQ

func TxIDEQ(v int64) predicate.TxItem

TxIDEQ applies the EQ predicate on the "tx_id" field.

func TxIDGT

func TxIDGT(v int64) predicate.TxItem

TxIDGT applies the GT predicate on the "tx_id" field.

func TxIDGTE

func TxIDGTE(v int64) predicate.TxItem

TxIDGTE applies the GTE predicate on the "tx_id" field.

func TxIDIn

func TxIDIn(vs ...int64) predicate.TxItem

TxIDIn applies the In predicate on the "tx_id" field.

func TxIDLT

func TxIDLT(v int64) predicate.TxItem

TxIDLT applies the LT predicate on the "tx_id" field.

func TxIDLTE

func TxIDLTE(v int64) predicate.TxItem

TxIDLTE applies the LTE predicate on the "tx_id" field.

func TxIDNEQ

func TxIDNEQ(v int64) predicate.TxItem

TxIDNEQ applies the NEQ predicate on the "tx_id" field.

func TxIDNotIn

func TxIDNotIn(vs ...int64) predicate.TxItem

TxIDNotIn applies the NotIn predicate on the "tx_id" field.

func TxTypeEQ

func TxTypeEQ(v TxType) predicate.TxItem

TxTypeEQ applies the EQ predicate on the "tx_type" field.

func TxTypeIn

func TxTypeIn(vs ...TxType) predicate.TxItem

TxTypeIn applies the In predicate on the "tx_type" field.

func TxTypeNEQ

func TxTypeNEQ(v TxType) predicate.TxItem

TxTypeNEQ applies the NEQ predicate on the "tx_type" field.

func TxTypeNotIn

func TxTypeNotIn(vs ...TxType) predicate.TxItem

TxTypeNotIn applies the NotIn predicate on the "tx_type" field.

func TxTypeValidator

func TxTypeValidator(tt TxType) error

TxTypeValidator is a validator for the "tx_type" field enum values. It is called by the builders before save.

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

type TxType

type TxType string

TxType defines the type for the "tx_type" enum field.

const (
	TxTypeBuy  TxType = "buy"
	TxTypeSell TxType = "sell"
)

TxType values.

func (TxType) String

func (tt TxType) String() string

Jump to

Keyboard shortcuts

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