Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Url) predicate.Url
- func CreatedAt(v time.Time) predicate.Url
- func CreatedAtEQ(v time.Time) predicate.Url
- func CreatedAtGT(v time.Time) predicate.Url
- func CreatedAtGTE(v time.Time) predicate.Url
- func CreatedAtIn(vs ...time.Time) predicate.Url
- func CreatedAtLT(v time.Time) predicate.Url
- func CreatedAtLTE(v time.Time) predicate.Url
- func CreatedAtNEQ(v time.Time) predicate.Url
- func CreatedAtNotIn(vs ...time.Time) predicate.Url
- func CurrentTimes(v int) predicate.Url
- func CurrentTimesEQ(v int) predicate.Url
- func CurrentTimesGT(v int) predicate.Url
- func CurrentTimesGTE(v int) predicate.Url
- func CurrentTimesIn(vs ...int) predicate.Url
- func CurrentTimesLT(v int) predicate.Url
- func CurrentTimesLTE(v int) predicate.Url
- func CurrentTimesNEQ(v int) predicate.Url
- func CurrentTimesNotIn(vs ...int) predicate.Url
- func ExpireAt(v time.Time) predicate.Url
- func ExpireAtEQ(v time.Time) predicate.Url
- func ExpireAtGT(v time.Time) predicate.Url
- func ExpireAtGTE(v time.Time) predicate.Url
- func ExpireAtIn(vs ...time.Time) predicate.Url
- func ExpireAtIsNil() predicate.Url
- func ExpireAtLT(v time.Time) predicate.Url
- func ExpireAtLTE(v time.Time) predicate.Url
- func ExpireAtNEQ(v time.Time) predicate.Url
- func ExpireAtNotIn(vs ...time.Time) predicate.Url
- func ExpireAtNotNil() predicate.Url
- func HasLogs() predicate.Url
- func HasLogsWith(preds ...predicate.VisitLog) predicate.Url
- func ID(id int) predicate.Url
- func IDEQ(id int) predicate.Url
- func IDGT(id int) predicate.Url
- func IDGTE(id int) predicate.Url
- func IDIn(ids ...int) predicate.Url
- func IDLT(id int) predicate.Url
- func IDLTE(id int) predicate.Url
- func IDNEQ(id int) predicate.Url
- func IDNotIn(ids ...int) predicate.Url
- func MaxTimes(v int) predicate.Url
- func MaxTimesEQ(v int) predicate.Url
- func MaxTimesGT(v int) predicate.Url
- func MaxTimesGTE(v int) predicate.Url
- func MaxTimesIn(vs ...int) predicate.Url
- func MaxTimesLT(v int) predicate.Url
- func MaxTimesLTE(v int) predicate.Url
- func MaxTimesNEQ(v int) predicate.Url
- func MaxTimesNotIn(vs ...int) predicate.Url
- func Not(p predicate.Url) predicate.Url
- func Or(predicates ...predicate.Url) predicate.Url
- func Path(v string) predicate.Url
- func PathContains(v string) predicate.Url
- func PathContainsFold(v string) predicate.Url
- func PathEQ(v string) predicate.Url
- func PathEqualFold(v string) predicate.Url
- func PathGT(v string) predicate.Url
- func PathGTE(v string) predicate.Url
- func PathHasPrefix(v string) predicate.Url
- func PathHasSuffix(v string) predicate.Url
- func PathIn(vs ...string) predicate.Url
- func PathLT(v string) predicate.Url
- func PathLTE(v string) predicate.Url
- func PathNEQ(v string) predicate.Url
- func PathNotIn(vs ...string) predicate.Url
- func URL(v string) predicate.Url
- func URLContains(v string) predicate.Url
- func URLContainsFold(v string) predicate.Url
- func URLEQ(v string) predicate.Url
- func URLEqualFold(v string) predicate.Url
- func URLGT(v string) predicate.Url
- func URLGTE(v string) predicate.Url
- func URLHasPrefix(v string) predicate.Url
- func URLHasSuffix(v string) predicate.Url
- func URLIn(vs ...string) predicate.Url
- func URLLT(v string) predicate.Url
- func URLLTE(v string) predicate.Url
- func URLNEQ(v string) predicate.Url
- func URLNotIn(vs ...string) predicate.Url
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the url type in the database. Label = "url" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldURL holds the string denoting the url field in the database. FieldURL = "url" // FieldPath holds the string denoting the path field in the database. FieldPath = "path" // FieldCurrentTimes holds the string denoting the current_times field in the database. FieldCurrentTimes = "current_times" // FieldMaxTimes holds the string denoting the max_times field in the database. FieldMaxTimes = "max_times" // FieldExpireAt holds the string denoting the expire_at field in the database. FieldExpireAt = "expire_at" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // EdgeLogs holds the string denoting the logs edge name in mutations. EdgeLogs = "logs" // Table holds the table name of the url in the database. Table = "url" // LogsTable is the table that holds the logs relation/edge. LogsTable = "log" // LogsInverseTable is the table name for the VisitLog entity. // It exists in this package in order to avoid circular dependency with the "visitlog" package. LogsInverseTable = "log" // LogsColumn is the table column denoting the logs relation/edge. LogsColumn = "url_logs" )
Variables ¶
var ( // URLValidator is a validator for the "url" field. It is called by the builders before save. URLValidator func(string) error // PathValidator is a validator for the "path" field. It is called by the builders before save. PathValidator func(string) error // DefaultCurrentTimes holds the default value on creation for the "current_times" field. DefaultCurrentTimes int // DefaultMaxTimes holds the default value on creation for the "max_times" field. DefaultMaxTimes int // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time )
var Columns = []string{ FieldID, FieldURL, FieldPath, FieldCurrentTimes, FieldMaxTimes, FieldExpireAt, FieldCreatedAt, }
Columns holds all SQL columns for url fields.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CurrentTimes ¶
CurrentTimes applies equality check predicate on the "current_times" field. It's identical to CurrentTimesEQ.
func CurrentTimesEQ ¶
CurrentTimesEQ applies the EQ predicate on the "current_times" field.
func CurrentTimesGT ¶
CurrentTimesGT applies the GT predicate on the "current_times" field.
func CurrentTimesGTE ¶
CurrentTimesGTE applies the GTE predicate on the "current_times" field.
func CurrentTimesIn ¶
CurrentTimesIn applies the In predicate on the "current_times" field.
func CurrentTimesLT ¶
CurrentTimesLT applies the LT predicate on the "current_times" field.
func CurrentTimesLTE ¶
CurrentTimesLTE applies the LTE predicate on the "current_times" field.
func CurrentTimesNEQ ¶
CurrentTimesNEQ applies the NEQ predicate on the "current_times" field.
func CurrentTimesNotIn ¶
CurrentTimesNotIn applies the NotIn predicate on the "current_times" field.
func ExpireAt ¶
ExpireAt applies equality check predicate on the "expire_at" field. It's identical to ExpireAtEQ.
func ExpireAtEQ ¶
ExpireAtEQ applies the EQ predicate on the "expire_at" field.
func ExpireAtGT ¶
ExpireAtGT applies the GT predicate on the "expire_at" field.
func ExpireAtGTE ¶
ExpireAtGTE applies the GTE predicate on the "expire_at" field.
func ExpireAtIn ¶
ExpireAtIn applies the In predicate on the "expire_at" field.
func ExpireAtIsNil ¶
ExpireAtIsNil applies the IsNil predicate on the "expire_at" field.
func ExpireAtLT ¶
ExpireAtLT applies the LT predicate on the "expire_at" field.
func ExpireAtLTE ¶
ExpireAtLTE applies the LTE predicate on the "expire_at" field.
func ExpireAtNEQ ¶
ExpireAtNEQ applies the NEQ predicate on the "expire_at" field.
func ExpireAtNotIn ¶
ExpireAtNotIn applies the NotIn predicate on the "expire_at" field.
func ExpireAtNotNil ¶
ExpireAtNotNil applies the NotNil predicate on the "expire_at" field.
func HasLogsWith ¶
HasLogsWith applies the HasEdge predicate on the "logs" edge with a given conditions (other predicates).
func MaxTimes ¶
MaxTimes applies equality check predicate on the "max_times" field. It's identical to MaxTimesEQ.
func MaxTimesEQ ¶
MaxTimesEQ applies the EQ predicate on the "max_times" field.
func MaxTimesGT ¶
MaxTimesGT applies the GT predicate on the "max_times" field.
func MaxTimesGTE ¶
MaxTimesGTE applies the GTE predicate on the "max_times" field.
func MaxTimesIn ¶
MaxTimesIn applies the In predicate on the "max_times" field.
func MaxTimesLT ¶
MaxTimesLT applies the LT predicate on the "max_times" field.
func MaxTimesLTE ¶
MaxTimesLTE applies the LTE predicate on the "max_times" field.
func MaxTimesNEQ ¶
MaxTimesNEQ applies the NEQ predicate on the "max_times" field.
func MaxTimesNotIn ¶
MaxTimesNotIn applies the NotIn predicate on the "max_times" field.
func PathContains ¶
PathContains applies the Contains predicate on the "path" field.
func PathContainsFold ¶
PathContainsFold applies the ContainsFold predicate on the "path" field.
func PathEqualFold ¶
PathEqualFold applies the EqualFold predicate on the "path" field.
func PathHasPrefix ¶
PathHasPrefix applies the HasPrefix predicate on the "path" field.
func PathHasSuffix ¶
PathHasSuffix applies the HasSuffix predicate on the "path" field.
func URLContains ¶
URLContains applies the Contains predicate on the "url" field.
func URLContainsFold ¶
URLContainsFold applies the ContainsFold predicate on the "url" field.
func URLEqualFold ¶
URLEqualFold applies the EqualFold predicate on the "url" field.
func URLHasPrefix ¶
URLHasPrefix applies the HasPrefix predicate on the "url" field.
func URLHasSuffix ¶
URLHasSuffix applies the HasSuffix predicate on the "url" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.