Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.TodoItem) predicate.TodoItem
- func Completed(v bool) predicate.TodoItem
- func CompletedEQ(v bool) predicate.TodoItem
- func CompletedNEQ(v bool) predicate.TodoItem
- func CreatedAt(v time.Time) predicate.TodoItem
- func CreatedAtEQ(v time.Time) predicate.TodoItem
- func CreatedAtGT(v time.Time) predicate.TodoItem
- func CreatedAtGTE(v time.Time) predicate.TodoItem
- func CreatedAtIn(vs ...time.Time) predicate.TodoItem
- func CreatedAtLT(v time.Time) predicate.TodoItem
- func CreatedAtLTE(v time.Time) predicate.TodoItem
- func CreatedAtNEQ(v time.Time) predicate.TodoItem
- func CreatedAtNotIn(vs ...time.Time) predicate.TodoItem
- func ID(id int) predicate.TodoItem
- func IDEQ(id int) predicate.TodoItem
- func IDGT(id int) predicate.TodoItem
- func IDGTE(id int) predicate.TodoItem
- func IDIn(ids ...int) predicate.TodoItem
- func IDLT(id int) predicate.TodoItem
- func IDLTE(id int) predicate.TodoItem
- func IDNEQ(id int) predicate.TodoItem
- func IDNotIn(ids ...int) predicate.TodoItem
- func Not(p predicate.TodoItem) predicate.TodoItem
- func Or(predicates ...predicate.TodoItem) predicate.TodoItem
- func Order(v int) predicate.TodoItem
- func OrderEQ(v int) predicate.TodoItem
- func OrderGT(v int) predicate.TodoItem
- func OrderGTE(v int) predicate.TodoItem
- func OrderIn(vs ...int) predicate.TodoItem
- func OrderLT(v int) predicate.TodoItem
- func OrderLTE(v int) predicate.TodoItem
- func OrderNEQ(v int) predicate.TodoItem
- func OrderNotIn(vs ...int) predicate.TodoItem
- func Title(v string) predicate.TodoItem
- func TitleContains(v string) predicate.TodoItem
- func TitleContainsFold(v string) predicate.TodoItem
- func TitleEQ(v string) predicate.TodoItem
- func TitleEqualFold(v string) predicate.TodoItem
- func TitleGT(v string) predicate.TodoItem
- func TitleGTE(v string) predicate.TodoItem
- func TitleHasPrefix(v string) predicate.TodoItem
- func TitleHasSuffix(v string) predicate.TodoItem
- func TitleIn(vs ...string) predicate.TodoItem
- func TitleLT(v string) predicate.TodoItem
- func TitleLTE(v string) predicate.TodoItem
- func TitleNEQ(v string) predicate.TodoItem
- func TitleNotIn(vs ...string) predicate.TodoItem
- func UID(v string) predicate.TodoItem
- func UIDContains(v string) predicate.TodoItem
- func UIDContainsFold(v string) predicate.TodoItem
- func UIDEQ(v string) predicate.TodoItem
- func UIDEqualFold(v string) predicate.TodoItem
- func UIDGT(v string) predicate.TodoItem
- func UIDGTE(v string) predicate.TodoItem
- func UIDHasPrefix(v string) predicate.TodoItem
- func UIDHasSuffix(v string) predicate.TodoItem
- func UIDIn(vs ...string) predicate.TodoItem
- func UIDLT(v string) predicate.TodoItem
- func UIDLTE(v string) predicate.TodoItem
- func UIDNEQ(v string) predicate.TodoItem
- func UIDNotIn(vs ...string) predicate.TodoItem
- func UpdatedAt(v time.Time) predicate.TodoItem
- func UpdatedAtEQ(v time.Time) predicate.TodoItem
- func UpdatedAtGT(v time.Time) predicate.TodoItem
- func UpdatedAtGTE(v time.Time) predicate.TodoItem
- func UpdatedAtIn(vs ...time.Time) predicate.TodoItem
- func UpdatedAtLT(v time.Time) predicate.TodoItem
- func UpdatedAtLTE(v time.Time) predicate.TodoItem
- func UpdatedAtNEQ(v time.Time) predicate.TodoItem
- func UpdatedAtNotIn(vs ...time.Time) predicate.TodoItem
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the todoitem type in the database. Label = "todo_item" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldUID holds the string denoting the uid field in the database. FieldUID = "uid" // FieldTitle holds the string denoting the title field in the database. FieldTitle = "title" // FieldCompleted holds the string denoting the completed field in the database. FieldCompleted = "completed" // FieldOrder holds the string denoting the order field in the database. FieldOrder = "order" // 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 todoitem in the database. Table = "todo_items" )
Variables ¶
var ( // UIDValidator is a validator for the "uid" field. It is called by the builders before save. UIDValidator func(string) error // 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, FieldUID, FieldTitle, FieldCompleted, FieldOrder, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for todoitem fields.
Functions ¶
func Completed ¶
Completed applies equality check predicate on the "completed" field. It's identical to CompletedEQ.
func CompletedEQ ¶
CompletedEQ applies the EQ predicate on the "completed" field.
func CompletedNEQ ¶
CompletedNEQ applies the NEQ predicate on the "completed" field.
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 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 UIDContains ¶
UIDContains applies the Contains predicate on the "uid" field.
func UIDContainsFold ¶
UIDContainsFold applies the ContainsFold predicate on the "uid" field.
func UIDEqualFold ¶
UIDEqualFold applies the EqualFold predicate on the "uid" field.
func UIDHasPrefix ¶
UIDHasPrefix applies the HasPrefix predicate on the "uid" field.
func UIDHasSuffix ¶
UIDHasSuffix applies the HasSuffix predicate on the "uid" 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 ¶
This section is empty.