Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Lease) predicate.Lease
- func ExpiresAt(v time.Time) predicate.Lease
- func ExpiresAtEQ(v time.Time) predicate.Lease
- func ExpiresAtGT(v time.Time) predicate.Lease
- func ExpiresAtGTE(v time.Time) predicate.Lease
- func ExpiresAtIn(vs ...time.Time) predicate.Lease
- func ExpiresAtLT(v time.Time) predicate.Lease
- func ExpiresAtLTE(v time.Time) predicate.Lease
- func ExpiresAtNEQ(v time.Time) predicate.Lease
- func ExpiresAtNotIn(vs ...time.Time) predicate.Lease
- func ID(id int) predicate.Lease
- func IDEQ(id int) predicate.Lease
- func IDGT(id int) predicate.Lease
- func IDGTE(id int) predicate.Lease
- func IDIn(ids ...int) predicate.Lease
- func IDLT(id int) predicate.Lease
- func IDLTE(id int) predicate.Lease
- func IDNEQ(id int) predicate.Lease
- func IDNotIn(ids ...int) predicate.Lease
- func Name(v string) predicate.Lease
- func NameContains(v string) predicate.Lease
- func NameContainsFold(v string) predicate.Lease
- func NameEQ(v string) predicate.Lease
- func NameEqualFold(v string) predicate.Lease
- func NameGT(v string) predicate.Lease
- func NameGTE(v string) predicate.Lease
- func NameHasPrefix(v string) predicate.Lease
- func NameHasSuffix(v string) predicate.Lease
- func NameIn(vs ...string) predicate.Lease
- func NameLT(v string) predicate.Lease
- func NameLTE(v string) predicate.Lease
- func NameNEQ(v string) predicate.Lease
- func NameNotIn(vs ...string) predicate.Lease
- func Not(p predicate.Lease) predicate.Lease
- func Or(predicates ...predicate.Lease) predicate.Lease
- func Token(v string) predicate.Lease
- func TokenContains(v string) predicate.Lease
- func TokenContainsFold(v string) predicate.Lease
- func TokenEQ(v string) predicate.Lease
- func TokenEqualFold(v string) predicate.Lease
- func TokenGT(v string) predicate.Lease
- func TokenGTE(v string) predicate.Lease
- func TokenHasPrefix(v string) predicate.Lease
- func TokenHasSuffix(v string) predicate.Lease
- func TokenIn(vs ...string) predicate.Lease
- func TokenLT(v string) predicate.Lease
- func TokenLTE(v string) predicate.Lease
- func TokenNEQ(v string) predicate.Lease
- func TokenNotIn(vs ...string) predicate.Lease
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the lease type in the database. Label = "lease" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldToken holds the string denoting the token field in the database. FieldToken = "token" // FieldExpiresAt holds the string denoting the expires_at field in the database. FieldExpiresAt = "expires_at" // Table holds the table name of the lease in the database. Table = "connectionforge_leases" )
Variables ¶
var Columns = []string{ FieldID, FieldName, FieldToken, FieldExpiresAt, }
Columns holds all SQL columns for lease fields.
var ( // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error )
Functions ¶
func ExpiresAt ¶
ExpiresAt applies equality check predicate on the "expires_at" field. It's identical to ExpiresAtEQ.
func ExpiresAtEQ ¶
ExpiresAtEQ applies the EQ predicate on the "expires_at" field.
func ExpiresAtGT ¶
ExpiresAtGT applies the GT predicate on the "expires_at" field.
func ExpiresAtGTE ¶
ExpiresAtGTE applies the GTE predicate on the "expires_at" field.
func ExpiresAtIn ¶
ExpiresAtIn applies the In predicate on the "expires_at" field.
func ExpiresAtLT ¶
ExpiresAtLT applies the LT predicate on the "expires_at" field.
func ExpiresAtLTE ¶
ExpiresAtLTE applies the LTE predicate on the "expires_at" field.
func ExpiresAtNEQ ¶
ExpiresAtNEQ applies the NEQ predicate on the "expires_at" field.
func ExpiresAtNotIn ¶
ExpiresAtNotIn applies the NotIn predicate on the "expires_at" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func Token ¶
Token applies equality check predicate on the "token" field. It's identical to TokenEQ.
func TokenContains ¶
TokenContains applies the Contains predicate on the "token" field.
func TokenContainsFold ¶
TokenContainsFold applies the ContainsFold predicate on the "token" field.
func TokenEqualFold ¶
TokenEqualFold applies the EqualFold predicate on the "token" field.
func TokenHasPrefix ¶
TokenHasPrefix applies the HasPrefix predicate on the "token" field.
func TokenHasSuffix ¶
TokenHasSuffix applies the HasSuffix predicate on the "token" field.
func TokenNotIn ¶
TokenNotIn applies the NotIn predicate on the "token" 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 Lease queries.
func ByExpiresAt ¶
func ByExpiresAt(opts ...sql.OrderTermOption) OrderOption
ByExpiresAt orders the results by the expires_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByToken ¶
func ByToken(opts ...sql.OrderTermOption) OrderOption
ByToken orders the results by the token field.