Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.User) predicate.User
- func HasSentences() predicate.User
- func HasSentencesWith(preds ...predicate.Sentence) predicate.User
- func ID(id uuid.UUID) predicate.User
- func IDEQ(id uuid.UUID) predicate.User
- func IDGT(id uuid.UUID) predicate.User
- func IDGTE(id uuid.UUID) predicate.User
- func IDIn(ids ...uuid.UUID) predicate.User
- func IDLT(id uuid.UUID) predicate.User
- func IDLTE(id uuid.UUID) predicate.User
- func IDNEQ(id uuid.UUID) predicate.User
- func IDNotIn(ids ...uuid.UUID) predicate.User
- func IPAddress(v string) predicate.User
- func IPAddressContains(v string) predicate.User
- func IPAddressContainsFold(v string) predicate.User
- func IPAddressEQ(v string) predicate.User
- func IPAddressEqualFold(v string) predicate.User
- func IPAddressGT(v string) predicate.User
- func IPAddressGTE(v string) predicate.User
- func IPAddressHasPrefix(v string) predicate.User
- func IPAddressHasSuffix(v string) predicate.User
- func IPAddressIn(vs ...string) predicate.User
- func IPAddressLT(v string) predicate.User
- func IPAddressLTE(v string) predicate.User
- func IPAddressNEQ(v string) predicate.User
- func IPAddressNotIn(vs ...string) predicate.User
- func Not(p predicate.User) predicate.User
- func Or(predicates ...predicate.User) predicate.User
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the user type in the database. Label = "user" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldIPAddress holds the string denoting the ip_address field in the database. FieldIPAddress = "ip_address" // EdgeSentences holds the string denoting the sentences edge name in mutations. EdgeSentences = "sentences" // Table holds the table name of the user in the database. Table = "users" // SentencesTable is the table that holds the sentences relation/edge. The primary key declared below. SentencesTable = "user_sentences" // SentencesInverseTable is the table name for the Sentence entity. // It exists in this package in order to avoid circular dependency with the "sentence" package. SentencesInverseTable = "sentences" )
Variables ¶
var ( // IPAddressValidator is a validator for the "ip_address" field. It is called by the builders before save. IPAddressValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldIPAddress, }
Columns holds all SQL columns for user fields.
var ( // SentencesPrimaryKey and SentencesColumn2 are the table columns denoting the // primary key for the sentences relation (M2M). SentencesPrimaryKey = []string{"user_id", "sentence_id"} )
Functions ¶
func HasSentences ¶
HasSentences applies the HasEdge predicate on the "sentences" edge.
func HasSentencesWith ¶
HasSentencesWith applies the HasEdge predicate on the "sentences" edge with a given conditions (other predicates).
func IPAddress ¶
IPAddress applies equality check predicate on the "ip_address" field. It's identical to IPAddressEQ.
func IPAddressContains ¶
IPAddressContains applies the Contains predicate on the "ip_address" field.
func IPAddressContainsFold ¶
IPAddressContainsFold applies the ContainsFold predicate on the "ip_address" field.
func IPAddressEQ ¶
IPAddressEQ applies the EQ predicate on the "ip_address" field.
func IPAddressEqualFold ¶
IPAddressEqualFold applies the EqualFold predicate on the "ip_address" field.
func IPAddressGT ¶
IPAddressGT applies the GT predicate on the "ip_address" field.
func IPAddressGTE ¶
IPAddressGTE applies the GTE predicate on the "ip_address" field.
func IPAddressHasPrefix ¶
IPAddressHasPrefix applies the HasPrefix predicate on the "ip_address" field.
func IPAddressHasSuffix ¶
IPAddressHasSuffix applies the HasSuffix predicate on the "ip_address" field.
func IPAddressIn ¶
IPAddressIn applies the In predicate on the "ip_address" field.
func IPAddressLT ¶
IPAddressLT applies the LT predicate on the "ip_address" field.
func IPAddressLTE ¶
IPAddressLTE applies the LTE predicate on the "ip_address" field.
func IPAddressNEQ ¶
IPAddressNEQ applies the NEQ predicate on the "ip_address" field.
func IPAddressNotIn ¶
IPAddressNotIn applies the NotIn predicate on the "ip_address" 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 User queries.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIPAddress ¶
func ByIPAddress(opts ...sql.OrderTermOption) OrderOption
ByIPAddress orders the results by the ip_address field.
func BySentences ¶
func BySentences(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
BySentences orders the results by sentences terms.
func BySentencesCount ¶
func BySentencesCount(opts ...sql.OrderTermOption) OrderOption
BySentencesCount orders the results by sentences count.