Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.System) predicate.System
- func Approved(v bool) predicate.System
- func ApprovedEQ(v bool) predicate.System
- func ApprovedNEQ(v bool) predicate.System
- func ID(id int) predicate.System
- func IDEQ(id int) predicate.System
- func IDGT(id int) predicate.System
- func IDGTE(id int) predicate.System
- func IDIn(ids ...int) predicate.System
- func IDLT(id int) predicate.System
- func IDLTE(id int) predicate.System
- func IDNEQ(id int) predicate.System
- func IDNotIn(ids ...int) predicate.System
- func LastLogin(v int64) predicate.System
- func LastLoginEQ(v int64) predicate.System
- func LastLoginGT(v int64) predicate.System
- func LastLoginGTE(v int64) predicate.System
- func LastLoginIn(vs ...int64) predicate.System
- func LastLoginLT(v int64) predicate.System
- func LastLoginLTE(v int64) predicate.System
- func LastLoginNEQ(v int64) predicate.System
- func LastLoginNotIn(vs ...int64) predicate.System
- func Not(p predicate.System) predicate.System
- func Or(predicates ...predicate.System) predicate.System
- func PublicKey(v []byte) predicate.System
- func PublicKeyEQ(v []byte) predicate.System
- func PublicKeyGT(v []byte) predicate.System
- func PublicKeyGTE(v []byte) predicate.System
- func PublicKeyIn(vs ...[]byte) predicate.System
- func PublicKeyLT(v []byte) predicate.System
- func PublicKeyLTE(v []byte) predicate.System
- func PublicKeyNEQ(v []byte) predicate.System
- func PublicKeyNotIn(vs ...[]byte) predicate.System
- func SystemID(v uuid.UUID) predicate.System
- func SystemIDEQ(v uuid.UUID) predicate.System
- func SystemIDGT(v uuid.UUID) predicate.System
- func SystemIDGTE(v uuid.UUID) predicate.System
- func SystemIDIn(vs ...uuid.UUID) predicate.System
- func SystemIDLT(v uuid.UUID) predicate.System
- func SystemIDLTE(v uuid.UUID) predicate.System
- func SystemIDNEQ(v uuid.UUID) predicate.System
- func SystemIDNotIn(vs ...uuid.UUID) predicate.System
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the system type in the database. Label = "system" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldSystemID holds the string denoting the system_id field in the database. FieldSystemID = "system_id" // FieldPublicKey holds the string denoting the public_key field in the database. FieldPublicKey = "public_key" // FieldApproved holds the string denoting the approved field in the database. FieldApproved = "approved" // FieldLastLogin holds the string denoting the last_login field in the database. FieldLastLogin = "last_login" // Table holds the table name of the system in the database. Table = "systems" )
Variables ¶
var Columns = []string{ FieldID, FieldSystemID, FieldPublicKey, FieldApproved, FieldLastLogin, }
Columns holds all SQL columns for system fields.
Functions ¶
func Approved ¶
Approved applies equality check predicate on the "approved" field. It's identical to ApprovedEQ.
func ApprovedEQ ¶
ApprovedEQ applies the EQ predicate on the "approved" field.
func ApprovedNEQ ¶
ApprovedNEQ applies the NEQ predicate on the "approved" field.
func LastLogin ¶
LastLogin applies equality check predicate on the "last_login" field. It's identical to LastLoginEQ.
func LastLoginEQ ¶
LastLoginEQ applies the EQ predicate on the "last_login" field.
func LastLoginGT ¶
LastLoginGT applies the GT predicate on the "last_login" field.
func LastLoginGTE ¶
LastLoginGTE applies the GTE predicate on the "last_login" field.
func LastLoginIn ¶
LastLoginIn applies the In predicate on the "last_login" field.
func LastLoginLT ¶
LastLoginLT applies the LT predicate on the "last_login" field.
func LastLoginLTE ¶
LastLoginLTE applies the LTE predicate on the "last_login" field.
func LastLoginNEQ ¶
LastLoginNEQ applies the NEQ predicate on the "last_login" field.
func LastLoginNotIn ¶
LastLoginNotIn applies the NotIn predicate on the "last_login" field.
func PublicKey ¶
PublicKey applies equality check predicate on the "public_key" field. It's identical to PublicKeyEQ.
func PublicKeyEQ ¶
PublicKeyEQ applies the EQ predicate on the "public_key" field.
func PublicKeyGT ¶
PublicKeyGT applies the GT predicate on the "public_key" field.
func PublicKeyGTE ¶
PublicKeyGTE applies the GTE predicate on the "public_key" field.
func PublicKeyIn ¶
PublicKeyIn applies the In predicate on the "public_key" field.
func PublicKeyLT ¶
PublicKeyLT applies the LT predicate on the "public_key" field.
func PublicKeyLTE ¶
PublicKeyLTE applies the LTE predicate on the "public_key" field.
func PublicKeyNEQ ¶
PublicKeyNEQ applies the NEQ predicate on the "public_key" field.
func PublicKeyNotIn ¶
PublicKeyNotIn applies the NotIn predicate on the "public_key" field.
func SystemID ¶
SystemID applies equality check predicate on the "system_id" field. It's identical to SystemIDEQ.
func SystemIDEQ ¶
SystemIDEQ applies the EQ predicate on the "system_id" field.
func SystemIDGT ¶
SystemIDGT applies the GT predicate on the "system_id" field.
func SystemIDGTE ¶
SystemIDGTE applies the GTE predicate on the "system_id" field.
func SystemIDIn ¶
SystemIDIn applies the In predicate on the "system_id" field.
func SystemIDLT ¶
SystemIDLT applies the LT predicate on the "system_id" field.
func SystemIDLTE ¶
SystemIDLTE applies the LTE predicate on the "system_id" field.
func SystemIDNEQ ¶
SystemIDNEQ applies the NEQ predicate on the "system_id" field.
func SystemIDNotIn ¶
SystemIDNotIn applies the NotIn predicate on the "system_id" 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 System queries.
func ByApproved ¶
func ByApproved(opts ...sql.OrderTermOption) OrderOption
ByApproved orders the results by the approved field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLastLogin ¶
func ByLastLogin(opts ...sql.OrderTermOption) OrderOption
ByLastLogin orders the results by the last_login field.
func BySystemID ¶
func BySystemID(opts ...sql.OrderTermOption) OrderOption
BySystemID orders the results by the system_id field.