Documentation
¶
Index ¶
- Constants
- Variables
- func Alias(v string) predicate.Link
- func AliasContains(v string) predicate.Link
- func AliasContainsFold(v string) predicate.Link
- func AliasEQ(v string) predicate.Link
- func AliasEqualFold(v string) predicate.Link
- func AliasGT(v string) predicate.Link
- func AliasGTE(v string) predicate.Link
- func AliasHasPrefix(v string) predicate.Link
- func AliasHasSuffix(v string) predicate.Link
- func AliasIn(vs ...string) predicate.Link
- func AliasLT(v string) predicate.Link
- func AliasLTE(v string) predicate.Link
- func AliasNEQ(v string) predicate.Link
- func AliasNotIn(vs ...string) predicate.Link
- func And(predicates ...predicate.Link) predicate.Link
- func Clicks(v int) predicate.Link
- func ClicksEQ(v int) predicate.Link
- func ClicksGT(v int) predicate.Link
- func ClicksGTE(v int) predicate.Link
- func ClicksIn(vs ...int) predicate.Link
- func ClicksLT(v int) predicate.Link
- func ClicksLTE(v int) predicate.Link
- func ClicksNEQ(v int) predicate.Link
- func ClicksNotIn(vs ...int) predicate.Link
- func ExpirationTime(v time.Time) predicate.Link
- func ExpirationTimeEQ(v time.Time) predicate.Link
- func ExpirationTimeGT(v time.Time) predicate.Link
- func ExpirationTimeGTE(v time.Time) predicate.Link
- func ExpirationTimeIn(vs ...time.Time) predicate.Link
- func ExpirationTimeIsNil() predicate.Link
- func ExpirationTimeLT(v time.Time) predicate.Link
- func ExpirationTimeLTE(v time.Time) predicate.Link
- func ExpirationTimeNEQ(v time.Time) predicate.Link
- func ExpirationTimeNotIn(vs ...time.Time) predicate.Link
- func ExpirationTimeNotNil() predicate.Link
- func HasFile() predicate.Link
- func HasFileWith(preds ...predicate.File) predicate.Link
- func ID(id int) predicate.Link
- func IDEQ(id int) predicate.Link
- func IDGT(id int) predicate.Link
- func IDGTE(id int) predicate.Link
- func IDIn(ids ...int) predicate.Link
- func IDLT(id int) predicate.Link
- func IDLTE(id int) predicate.Link
- func IDNEQ(id int) predicate.Link
- func IDNotIn(ids ...int) predicate.Link
- func Not(p predicate.Link) predicate.Link
- func Or(predicates ...predicate.Link) predicate.Link
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the link type in the database. Label = "link" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldAlias holds the string denoting the alias field in the database. FieldAlias = "alias" // FieldExpirationTime holds the string denoting the expirationtime field in the database. FieldExpirationTime = "expiration_time" // FieldClicks holds the string denoting the clicks field in the database. FieldClicks = "clicks" // EdgeFile holds the string denoting the file edge name in mutations. EdgeFile = "file" // Table holds the table name of the link in the database. Table = "links" // FileTable is the table that holds the file relation/edge. FileTable = "links" // FileInverseTable is the table name for the File entity. // It exists in this package in order to avoid circular dependency with the "file" package. FileInverseTable = "files" // FileColumn is the table column denoting the file relation/edge. FileColumn = "file_links" )
Variables ¶
var ( // AliasValidator is a validator for the "Alias" field. It is called by the builders before save. AliasValidator func(string) error // DefaultClicks holds the default value on creation for the "Clicks" field. DefaultClicks int // ClicksValidator is a validator for the "Clicks" field. It is called by the builders before save. ClicksValidator func(int) error )
var Columns = []string{ FieldID, FieldAlias, FieldExpirationTime, FieldClicks, }
Columns holds all SQL columns for link fields.
var ForeignKeys = []string{
"file_links",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "links" table and are not defined as standalone fields in the schema.
Functions ¶
func Alias ¶
Alias applies equality check predicate on the "Alias" field. It's identical to AliasEQ.
func AliasContains ¶
AliasContains applies the Contains predicate on the "Alias" field.
func AliasContainsFold ¶
AliasContainsFold applies the ContainsFold predicate on the "Alias" field.
func AliasEqualFold ¶
AliasEqualFold applies the EqualFold predicate on the "Alias" field.
func AliasHasPrefix ¶
AliasHasPrefix applies the HasPrefix predicate on the "Alias" field.
func AliasHasSuffix ¶
AliasHasSuffix applies the HasSuffix predicate on the "Alias" field.
func AliasNotIn ¶
AliasNotIn applies the NotIn predicate on the "Alias" field.
func Clicks ¶
Clicks applies equality check predicate on the "Clicks" field. It's identical to ClicksEQ.
func ClicksNotIn ¶
ClicksNotIn applies the NotIn predicate on the "Clicks" field.
func ExpirationTime ¶
ExpirationTime applies equality check predicate on the "ExpirationTime" field. It's identical to ExpirationTimeEQ.
func ExpirationTimeEQ ¶
ExpirationTimeEQ applies the EQ predicate on the "ExpirationTime" field.
func ExpirationTimeGT ¶
ExpirationTimeGT applies the GT predicate on the "ExpirationTime" field.
func ExpirationTimeGTE ¶
ExpirationTimeGTE applies the GTE predicate on the "ExpirationTime" field.
func ExpirationTimeIn ¶
ExpirationTimeIn applies the In predicate on the "ExpirationTime" field.
func ExpirationTimeIsNil ¶
ExpirationTimeIsNil applies the IsNil predicate on the "ExpirationTime" field.
func ExpirationTimeLT ¶
ExpirationTimeLT applies the LT predicate on the "ExpirationTime" field.
func ExpirationTimeLTE ¶
ExpirationTimeLTE applies the LTE predicate on the "ExpirationTime" field.
func ExpirationTimeNEQ ¶
ExpirationTimeNEQ applies the NEQ predicate on the "ExpirationTime" field.
func ExpirationTimeNotIn ¶
ExpirationTimeNotIn applies the NotIn predicate on the "ExpirationTime" field.
func ExpirationTimeNotNil ¶
ExpirationTimeNotNil applies the NotNil predicate on the "ExpirationTime" field.
func HasFileWith ¶
HasFileWith applies the HasEdge predicate on the "file" edge with a given conditions (other predicates).
func ValidColumn ¶ added in v0.4.3
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.