Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Task) predicate.Task
- func CreatedAt(v time.Time) predicate.Task
- func CreatedAtEQ(v time.Time) predicate.Task
- func CreatedAtGT(v time.Time) predicate.Task
- func CreatedAtGTE(v time.Time) predicate.Task
- func CreatedAtIn(vs ...time.Time) predicate.Task
- func CreatedAtLT(v time.Time) predicate.Task
- func CreatedAtLTE(v time.Time) predicate.Task
- func CreatedAtNEQ(v time.Time) predicate.Task
- func CreatedAtNotIn(vs ...time.Time) predicate.Task
- func ID(id string) predicate.Task
- func IDEQ(id string) predicate.Task
- func IDGT(id string) predicate.Task
- func IDGTE(id string) predicate.Task
- func IDIn(ids ...string) predicate.Task
- func IDLT(id string) predicate.Task
- func IDLTE(id string) predicate.Task
- func IDNEQ(id string) predicate.Task
- func IDNotIn(ids ...string) predicate.Task
- func Not(p predicate.Task) predicate.Task
- func Or(predicates ...predicate.Task) predicate.Task
- func Owner(v string) predicate.Task
- func OwnerContains(v string) predicate.Task
- func OwnerContainsFold(v string) predicate.Task
- func OwnerEQ(v string) predicate.Task
- func OwnerEqualFold(v string) predicate.Task
- func OwnerGT(v string) predicate.Task
- func OwnerGTE(v string) predicate.Task
- func OwnerHasPrefix(v string) predicate.Task
- func OwnerHasSuffix(v string) predicate.Task
- func OwnerIn(vs ...string) predicate.Task
- func OwnerLT(v string) predicate.Task
- func OwnerLTE(v string) predicate.Task
- func OwnerNEQ(v string) predicate.Task
- func OwnerNotIn(vs ...string) predicate.Task
- func StatusEQ(v Status) predicate.Task
- func StatusIn(vs ...Status) predicate.Task
- func StatusIsNil() predicate.Task
- func StatusNEQ(v Status) predicate.Task
- func StatusNotIn(vs ...Status) predicate.Task
- func StatusNotNil() predicate.Task
- func StatusValidator(s Status) error
- func Text(v string) predicate.Task
- func TextContains(v string) predicate.Task
- func TextContainsFold(v string) predicate.Task
- func TextEQ(v string) predicate.Task
- func TextEqualFold(v string) predicate.Task
- func TextGT(v string) predicate.Task
- func TextGTE(v string) predicate.Task
- func TextHasPrefix(v string) predicate.Task
- func TextHasSuffix(v string) predicate.Task
- func TextIn(vs ...string) predicate.Task
- func TextLT(v string) predicate.Task
- func TextLTE(v string) predicate.Task
- func TextNEQ(v string) predicate.Task
- func TextNotIn(vs ...string) predicate.Task
- func UpdatedAt(v time.Time) predicate.Task
- func UpdatedAtEQ(v time.Time) predicate.Task
- func UpdatedAtGT(v time.Time) predicate.Task
- func UpdatedAtGTE(v time.Time) predicate.Task
- func UpdatedAtIn(vs ...time.Time) predicate.Task
- func UpdatedAtLT(v time.Time) predicate.Task
- func UpdatedAtLTE(v time.Time) predicate.Task
- func UpdatedAtNEQ(v time.Time) predicate.Task
- func UpdatedAtNotIn(vs ...time.Time) predicate.Task
- func ValidColumn(column string) bool
- type Status
Constants ¶
const ( // Label holds the string label denoting the task type in the database. Label = "task" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldOwner holds the string denoting the owner field in the database. FieldOwner = "owner" // FieldText holds the string denoting the text field in the database. FieldText = "text" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // 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 task in the database. Table = "tasks" )
const DefaultStatus = StatusTodo
StatusTodo is the default value of the Status enum.
Variables ¶
var ( // 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 )
var Columns = []string{ FieldID, FieldOwner, FieldText, FieldStatus, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for task 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 Owner ¶
Owner applies equality check predicate on the "owner" field. It's identical to OwnerEQ.
func OwnerContains ¶
OwnerContains applies the Contains predicate on the "owner" field.
func OwnerContainsFold ¶
OwnerContainsFold applies the ContainsFold predicate on the "owner" field.
func OwnerEqualFold ¶
OwnerEqualFold applies the EqualFold predicate on the "owner" field.
func OwnerHasPrefix ¶
OwnerHasPrefix applies the HasPrefix predicate on the "owner" field.
func OwnerHasSuffix ¶
OwnerHasSuffix applies the HasSuffix predicate on the "owner" field.
func OwnerNotIn ¶
OwnerNotIn applies the NotIn predicate on the "owner" field.
func StatusIsNil ¶
StatusIsNil applies the IsNil predicate on the "status" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusNotNil ¶
StatusNotNil applies the NotNil predicate on the "status" field.
func StatusValidator ¶
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
func TextContains ¶
TextContains applies the Contains predicate on the "text" field.
func TextContainsFold ¶
TextContainsFold applies the ContainsFold predicate on the "text" field.
func TextEqualFold ¶
TextEqualFold applies the EqualFold predicate on the "text" field.
func TextHasPrefix ¶
TextHasPrefix applies the HasPrefix predicate on the "text" field.
func TextHasSuffix ¶
TextHasSuffix applies the HasSuffix predicate on the "text" 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).