Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Links) predicate.Links
- func CreatedAt(v time.Time) predicate.Links
- func CreatedAtEQ(v time.Time) predicate.Links
- func CreatedAtGT(v time.Time) predicate.Links
- func CreatedAtGTE(v time.Time) predicate.Links
- func CreatedAtIn(vs ...time.Time) predicate.Links
- func CreatedAtLT(v time.Time) predicate.Links
- func CreatedAtLTE(v time.Time) predicate.Links
- func CreatedAtNEQ(v time.Time) predicate.Links
- func CreatedAtNotIn(vs ...time.Time) predicate.Links
- func Deleted(v bool) predicate.Links
- func DeletedEQ(v bool) predicate.Links
- func DeletedNEQ(v bool) predicate.Links
- func Description(v string) predicate.Links
- func DescriptionContains(v string) predicate.Links
- func DescriptionContainsFold(v string) predicate.Links
- func DescriptionEQ(v string) predicate.Links
- func DescriptionEqualFold(v string) predicate.Links
- func DescriptionGT(v string) predicate.Links
- func DescriptionGTE(v string) predicate.Links
- func DescriptionHasPrefix(v string) predicate.Links
- func DescriptionHasSuffix(v string) predicate.Links
- func DescriptionIn(vs ...string) predicate.Links
- func DescriptionIsNil() predicate.Links
- func DescriptionLT(v string) predicate.Links
- func DescriptionLTE(v string) predicate.Links
- func DescriptionNEQ(v string) predicate.Links
- func DescriptionNotIn(vs ...string) predicate.Links
- func DescriptionNotNil() predicate.Links
- func HasUser() predicate.Links
- func HasUserWith(preds ...predicate.Users) predicate.Links
- func ID(id uuid.UUID) predicate.Links
- func IDEQ(id uuid.UUID) predicate.Links
- func IDGT(id uuid.UUID) predicate.Links
- func IDGTE(id uuid.UUID) predicate.Links
- func IDIn(ids ...uuid.UUID) predicate.Links
- func IDLT(id uuid.UUID) predicate.Links
- func IDLTE(id uuid.UUID) predicate.Links
- func IDNEQ(id uuid.UUID) predicate.Links
- func IDNotIn(ids ...uuid.UUID) predicate.Links
- func Image(v string) predicate.Links
- func ImageContains(v string) predicate.Links
- func ImageContainsFold(v string) predicate.Links
- func ImageEQ(v string) predicate.Links
- func ImageEqualFold(v string) predicate.Links
- func ImageGT(v string) predicate.Links
- func ImageGTE(v string) predicate.Links
- func ImageHasPrefix(v string) predicate.Links
- func ImageHasSuffix(v string) predicate.Links
- func ImageIn(vs ...string) predicate.Links
- func ImageIsNil() predicate.Links
- func ImageLT(v string) predicate.Links
- func ImageLTE(v string) predicate.Links
- func ImageNEQ(v string) predicate.Links
- func ImageNotIn(vs ...string) predicate.Links
- func ImageNotNil() predicate.Links
- func Not(p predicate.Links) predicate.Links
- func Or(predicates ...predicate.Links) predicate.Links
- func Order(v int) predicate.Links
- func OrderEQ(v int) predicate.Links
- func OrderGT(v int) predicate.Links
- func OrderGTE(v int) predicate.Links
- func OrderIn(vs ...int) predicate.Links
- func OrderLT(v int) predicate.Links
- func OrderLTE(v int) predicate.Links
- func OrderNEQ(v int) predicate.Links
- func OrderNotIn(vs ...int) predicate.Links
- func Title(v string) predicate.Links
- func TitleContains(v string) predicate.Links
- func TitleContainsFold(v string) predicate.Links
- func TitleEQ(v string) predicate.Links
- func TitleEqualFold(v string) predicate.Links
- func TitleGT(v string) predicate.Links
- func TitleGTE(v string) predicate.Links
- func TitleHasPrefix(v string) predicate.Links
- func TitleHasSuffix(v string) predicate.Links
- func TitleIn(vs ...string) predicate.Links
- func TitleLT(v string) predicate.Links
- func TitleLTE(v string) predicate.Links
- func TitleNEQ(v string) predicate.Links
- func TitleNotIn(vs ...string) predicate.Links
- func URL(v string) predicate.Links
- func URLContains(v string) predicate.Links
- func URLContainsFold(v string) predicate.Links
- func URLEQ(v string) predicate.Links
- func URLEqualFold(v string) predicate.Links
- func URLGT(v string) predicate.Links
- func URLGTE(v string) predicate.Links
- func URLHasPrefix(v string) predicate.Links
- func URLHasSuffix(v string) predicate.Links
- func URLIn(vs ...string) predicate.Links
- func URLLT(v string) predicate.Links
- func URLLTE(v string) predicate.Links
- func URLNEQ(v string) predicate.Links
- func URLNotIn(vs ...string) predicate.Links
- func UpdatedAt(v time.Time) predicate.Links
- func UpdatedAtEQ(v time.Time) predicate.Links
- func UpdatedAtGT(v time.Time) predicate.Links
- func UpdatedAtGTE(v time.Time) predicate.Links
- func UpdatedAtIn(vs ...time.Time) predicate.Links
- func UpdatedAtLT(v time.Time) predicate.Links
- func UpdatedAtLTE(v time.Time) predicate.Links
- func UpdatedAtNEQ(v time.Time) predicate.Links
- func UpdatedAtNotIn(vs ...time.Time) predicate.Links
- func UserID(v uuid.UUID) predicate.Links
- func UserIDEQ(v uuid.UUID) predicate.Links
- func UserIDIn(vs ...uuid.UUID) predicate.Links
- func UserIDNEQ(v uuid.UUID) predicate.Links
- func UserIDNotIn(vs ...uuid.UUID) predicate.Links
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeleted(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByImage(opts ...sql.OrderTermOption) OrderOption
- func ByOrder(opts ...sql.OrderTermOption) OrderOption
- func ByTitle(opts ...sql.OrderTermOption) OrderOption
- func ByURL(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByUserID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the links type in the database. Label = "links" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // FieldURL holds the string denoting the url field in the database. FieldURL = "url" // FieldTitle holds the string denoting the title field in the database. FieldTitle = "title" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldImage holds the string denoting the image field in the database. FieldImage = "image" // FieldOrder holds the string denoting the order field in the database. FieldOrder = "order" // FieldDeleted holds the string denoting the deleted field in the database. FieldDeleted = "deleted" // 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" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the links in the database. Table = "links" // UserTable is the table that holds the user relation/edge. UserTable = "links" // UserInverseTable is the table name for the Users entity. // It exists in this package in order to avoid circular dependency with the "users" package. UserInverseTable = "users" // UserColumn is the table column denoting the user relation/edge. UserColumn = "user_id" )
Variables ¶
var ( // URLValidator is a validator for the "url" field. It is called by the builders before save. URLValidator func(string) error // TitleValidator is a validator for the "title" field. It is called by the builders before save. TitleValidator func(string) error // ImageValidator is a validator for the "image" field. It is called by the builders before save. ImageValidator func(string) error // DefaultOrder holds the default value on creation for the "order" field. DefaultOrder int // DefaultDeleted holds the default value on creation for the "deleted" field. DefaultDeleted bool // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldUserID, FieldURL, FieldTitle, FieldDescription, FieldImage, FieldOrder, FieldDeleted, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for links 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 Deleted ¶
Deleted applies equality check predicate on the "deleted" field. It's identical to DeletedEQ.
func DeletedNEQ ¶
DeletedNEQ applies the NEQ predicate on the "deleted" field.
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func Image ¶
Image applies equality check predicate on the "image" field. It's identical to ImageEQ.
func ImageContains ¶
ImageContains applies the Contains predicate on the "image" field.
func ImageContainsFold ¶
ImageContainsFold applies the ContainsFold predicate on the "image" field.
func ImageEqualFold ¶
ImageEqualFold applies the EqualFold predicate on the "image" field.
func ImageHasPrefix ¶
ImageHasPrefix applies the HasPrefix predicate on the "image" field.
func ImageHasSuffix ¶
ImageHasSuffix applies the HasSuffix predicate on the "image" field.
func ImageIsNil ¶
ImageIsNil applies the IsNil predicate on the "image" field.
func ImageNotIn ¶
ImageNotIn applies the NotIn predicate on the "image" field.
func ImageNotNil ¶
ImageNotNil applies the NotNil predicate on the "image" field.
func Order ¶
Order applies equality check predicate on the "order" field. It's identical to OrderEQ.
func OrderNotIn ¶
OrderNotIn applies the NotIn predicate on the "order" field.
func Title ¶
Title applies equality check predicate on the "title" field. It's identical to TitleEQ.
func TitleContains ¶
TitleContains applies the Contains predicate on the "title" field.
func TitleContainsFold ¶
TitleContainsFold applies the ContainsFold predicate on the "title" field.
func TitleEqualFold ¶
TitleEqualFold applies the EqualFold predicate on the "title" field.
func TitleHasPrefix ¶
TitleHasPrefix applies the HasPrefix predicate on the "title" field.
func TitleHasSuffix ¶
TitleHasSuffix applies the HasSuffix predicate on the "title" field.
func TitleNotIn ¶
TitleNotIn applies the NotIn predicate on the "title" 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 UserID ¶
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDNotIn ¶
UserIDNotIn applies the NotIn predicate on the "user_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 Links queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDeleted ¶
func ByDeleted(opts ...sql.OrderTermOption) OrderOption
ByDeleted orders the results by the deleted field.
func ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByImage ¶
func ByImage(opts ...sql.OrderTermOption) OrderOption
ByImage orders the results by the image field.
func ByOrder ¶
func ByOrder(opts ...sql.OrderTermOption) OrderOption
ByOrder orders the results by the order field.
func ByTitle ¶
func ByTitle(opts ...sql.OrderTermOption) OrderOption
ByTitle orders the results by the title 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.
func ByUserField ¶
func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
ByUserField orders the results by user field.
func ByUserID ¶
func ByUserID(opts ...sql.OrderTermOption) OrderOption
ByUserID orders the results by the user_id field.