Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Link) predicate.Link
- func CreatedAt(v time.Time) predicate.Link
- func CreatedAtEQ(v time.Time) predicate.Link
- func CreatedAtGT(v time.Time) predicate.Link
- func CreatedAtGTE(v time.Time) predicate.Link
- func CreatedAtIn(vs ...time.Time) predicate.Link
- func CreatedAtLT(v time.Time) predicate.Link
- func CreatedAtLTE(v time.Time) predicate.Link
- func CreatedAtNEQ(v time.Time) predicate.Link
- func CreatedAtNotIn(vs ...time.Time) predicate.Link
- func Describe(v string) predicate.Link
- func DescribeContains(v string) predicate.Link
- func DescribeContainsFold(v string) predicate.Link
- func DescribeEQ(v string) predicate.Link
- func DescribeEqualFold(v string) predicate.Link
- func DescribeGT(v string) predicate.Link
- func DescribeGTE(v string) predicate.Link
- func DescribeHasPrefix(v string) predicate.Link
- func DescribeHasSuffix(v string) predicate.Link
- func DescribeIn(vs ...string) predicate.Link
- func DescribeIsNil() predicate.Link
- func DescribeLT(v string) predicate.Link
- func DescribeLTE(v string) predicate.Link
- func DescribeNEQ(v string) predicate.Link
- func DescribeNotIn(vs ...string) predicate.Link
- func DescribeNotNil() predicate.Link
- func Hash(v string) predicate.Link
- func HashContains(v string) predicate.Link
- func HashContainsFold(v string) predicate.Link
- func HashEQ(v string) predicate.Link
- func HashEqualFold(v string) predicate.Link
- func HashGT(v string) predicate.Link
- func HashGTE(v string) predicate.Link
- func HashHasPrefix(v string) predicate.Link
- func HashHasSuffix(v string) predicate.Link
- func HashIn(vs ...string) predicate.Link
- func HashLT(v string) predicate.Link
- func HashLTE(v string) predicate.Link
- func HashNEQ(v string) predicate.Link
- func HashNotIn(vs ...string) predicate.Link
- func ID(id uuid.UUID) predicate.Link
- func IDEQ(id uuid.UUID) predicate.Link
- func IDGT(id uuid.UUID) predicate.Link
- func IDGTE(id uuid.UUID) predicate.Link
- func IDIn(ids ...uuid.UUID) predicate.Link
- func IDLT(id uuid.UUID) predicate.Link
- func IDLTE(id uuid.UUID) predicate.Link
- func IDNEQ(id uuid.UUID) predicate.Link
- func IDNotIn(ids ...uuid.UUID) predicate.Link
- func Not(p predicate.Link) predicate.Link
- func Or(predicates ...predicate.Link) predicate.Link
- func URL(v string) predicate.Link
- func URLContains(v string) predicate.Link
- func URLContainsFold(v string) predicate.Link
- func URLEQ(v string) predicate.Link
- func URLEqualFold(v string) predicate.Link
- func URLGT(v string) predicate.Link
- func URLGTE(v string) predicate.Link
- func URLHasPrefix(v string) predicate.Link
- func URLHasSuffix(v string) predicate.Link
- func URLIn(vs ...string) predicate.Link
- func URLLT(v string) predicate.Link
- func URLLTE(v string) predicate.Link
- func URLNEQ(v string) predicate.Link
- func URLNotIn(vs ...string) predicate.Link
- func UpdatedAt(v time.Time) predicate.Link
- func UpdatedAtEQ(v time.Time) predicate.Link
- func UpdatedAtGT(v time.Time) predicate.Link
- func UpdatedAtGTE(v time.Time) predicate.Link
- func UpdatedAtIn(vs ...time.Time) predicate.Link
- func UpdatedAtLT(v time.Time) predicate.Link
- func UpdatedAtLTE(v time.Time) predicate.Link
- func UpdatedAtNEQ(v time.Time) predicate.Link
- func UpdatedAtNotIn(vs ...time.Time) predicate.Link
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDescribe(opts ...sql.OrderTermOption) OrderOption
- func ByHash(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByURL(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
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" // FieldURL holds the string denoting the url field in the database. FieldURL = "url" // FieldHash holds the string denoting the hash field in the database. FieldHash = "hash" // FieldDescribe holds the string denoting the describe field in the database. FieldDescribe = "describe" // FieldJSON holds the string denoting the json field in the database. FieldJSON = "json" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // Table holds the table name of the link in the database. Table = "links" )
Variables ¶
var ( // URLValidator is a validator for the "url" field. It is called by the builders before save. URLValidator func(string) error // HashValidator is a validator for the "hash" field. It is called by the builders before save. HashValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldURL, FieldHash, FieldDescribe, FieldJSON, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for link 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 Describe ¶
Describe applies equality check predicate on the "describe" field. It's identical to DescribeEQ.
func DescribeContains ¶
DescribeContains applies the Contains predicate on the "describe" field.
func DescribeContainsFold ¶
DescribeContainsFold applies the ContainsFold predicate on the "describe" field.
func DescribeEQ ¶
DescribeEQ applies the EQ predicate on the "describe" field.
func DescribeEqualFold ¶
DescribeEqualFold applies the EqualFold predicate on the "describe" field.
func DescribeGT ¶
DescribeGT applies the GT predicate on the "describe" field.
func DescribeGTE ¶
DescribeGTE applies the GTE predicate on the "describe" field.
func DescribeHasPrefix ¶
DescribeHasPrefix applies the HasPrefix predicate on the "describe" field.
func DescribeHasSuffix ¶
DescribeHasSuffix applies the HasSuffix predicate on the "describe" field.
func DescribeIn ¶
DescribeIn applies the In predicate on the "describe" field.
func DescribeIsNil ¶
DescribeIsNil applies the IsNil predicate on the "describe" field.
func DescribeLT ¶
DescribeLT applies the LT predicate on the "describe" field.
func DescribeLTE ¶
DescribeLTE applies the LTE predicate on the "describe" field.
func DescribeNEQ ¶
DescribeNEQ applies the NEQ predicate on the "describe" field.
func DescribeNotIn ¶
DescribeNotIn applies the NotIn predicate on the "describe" field.
func DescribeNotNil ¶
DescribeNotNil applies the NotNil predicate on the "describe" field.
func HashContains ¶
HashContains applies the Contains predicate on the "hash" field.
func HashContainsFold ¶
HashContainsFold applies the ContainsFold predicate on the "hash" field.
func HashEqualFold ¶
HashEqualFold applies the EqualFold predicate on the "hash" field.
func HashHasPrefix ¶
HashHasPrefix applies the HasPrefix predicate on the "hash" field.
func HashHasSuffix ¶
HashHasSuffix applies the HasSuffix predicate on the "hash" 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 UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" 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 Link queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDescribe ¶
func ByDescribe(opts ...sql.OrderTermOption) OrderOption
ByDescribe orders the results by the describe field.
func ByHash ¶
func ByHash(opts ...sql.OrderTermOption) OrderOption
ByHash orders the results by the hash field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByURL ¶
func ByURL(opts ...sql.OrderTermOption) OrderOption
ByURL orders the results by the url field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.