Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Task) predicate.Task
- func Complete(v bool) predicate.Task
- func CompleteEQ(v bool) predicate.Task
- func CompleteNEQ(v bool) predicate.Task
- func Description(v string) predicate.Task
- func DescriptionContains(v string) predicate.Task
- func DescriptionContainsFold(v string) predicate.Task
- func DescriptionEQ(v string) predicate.Task
- func DescriptionEqualFold(v string) predicate.Task
- func DescriptionGT(v string) predicate.Task
- func DescriptionGTE(v string) predicate.Task
- func DescriptionHasPrefix(v string) predicate.Task
- func DescriptionHasSuffix(v string) predicate.Task
- func DescriptionIn(vs ...string) predicate.Task
- func DescriptionLT(v string) predicate.Task
- func DescriptionLTE(v string) predicate.Task
- func DescriptionNEQ(v string) predicate.Task
- func DescriptionNotIn(vs ...string) predicate.Task
- func ID(id int) predicate.Task
- func IDEQ(id int) predicate.Task
- func IDGT(id int) predicate.Task
- func IDGTE(id int) predicate.Task
- func IDIn(ids ...int) predicate.Task
- func IDLT(id int) predicate.Task
- func IDLTE(id int) predicate.Task
- func IDNEQ(id int) predicate.Task
- func IDNotIn(ids ...int) predicate.Task
- func Not(p predicate.Task) predicate.Task
- func Or(predicates ...predicate.Task) predicate.Task
- func Signature(v string) predicate.Task
- func SignatureContains(v string) predicate.Task
- func SignatureContainsFold(v string) predicate.Task
- func SignatureEQ(v string) predicate.Task
- func SignatureEqualFold(v string) predicate.Task
- func SignatureGT(v string) predicate.Task
- func SignatureGTE(v string) predicate.Task
- func SignatureHasPrefix(v string) predicate.Task
- func SignatureHasSuffix(v string) predicate.Task
- func SignatureIn(vs ...string) predicate.Task
- func SignatureLT(v string) predicate.Task
- func SignatureLTE(v string) predicate.Task
- func SignatureNEQ(v string) predicate.Task
- func SignatureNotIn(vs ...string) predicate.Task
- func Title(v string) predicate.Task
- func TitleContains(v string) predicate.Task
- func TitleContainsFold(v string) predicate.Task
- func TitleEQ(v string) predicate.Task
- func TitleEqualFold(v string) predicate.Task
- func TitleGT(v string) predicate.Task
- func TitleGTE(v string) predicate.Task
- func TitleHasPrefix(v string) predicate.Task
- func TitleHasSuffix(v string) predicate.Task
- func TitleIn(vs ...string) predicate.Task
- func TitleIsNil() predicate.Task
- func TitleLT(v string) predicate.Task
- func TitleLTE(v string) predicate.Task
- func TitleNEQ(v string) predicate.Task
- func TitleNotIn(vs ...string) predicate.Task
- func TitleNotNil() predicate.Task
- func ValidColumn(column string) bool
- type OrderOption
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" // 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" // FieldComplete holds the string denoting the complete field in the database. FieldComplete = "complete" // FieldSignature holds the string denoting the signature field in the database. FieldSignature = "signature" // Table holds the table name of the task in the database. Table = "tasks" )
Variables ¶
var Columns = []string{ FieldID, FieldTitle, FieldDescription, FieldComplete, FieldSignature, }
Columns holds all SQL columns for task fields.
Functions ¶
func Complete ¶
Complete applies equality check predicate on the "complete" field. It's identical to CompleteEQ.
func CompleteEQ ¶
CompleteEQ applies the EQ predicate on the "complete" field.
func CompleteNEQ ¶
CompleteNEQ applies the NEQ predicate on the "complete" 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 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 Signature ¶
Signature applies equality check predicate on the "signature" field. It's identical to SignatureEQ.
func SignatureContains ¶
SignatureContains applies the Contains predicate on the "signature" field.
func SignatureContainsFold ¶
SignatureContainsFold applies the ContainsFold predicate on the "signature" field.
func SignatureEQ ¶
SignatureEQ applies the EQ predicate on the "signature" field.
func SignatureEqualFold ¶
SignatureEqualFold applies the EqualFold predicate on the "signature" field.
func SignatureGT ¶
SignatureGT applies the GT predicate on the "signature" field.
func SignatureGTE ¶
SignatureGTE applies the GTE predicate on the "signature" field.
func SignatureHasPrefix ¶
SignatureHasPrefix applies the HasPrefix predicate on the "signature" field.
func SignatureHasSuffix ¶
SignatureHasSuffix applies the HasSuffix predicate on the "signature" field.
func SignatureIn ¶
SignatureIn applies the In predicate on the "signature" field.
func SignatureLT ¶
SignatureLT applies the LT predicate on the "signature" field.
func SignatureLTE ¶
SignatureLTE applies the LTE predicate on the "signature" field.
func SignatureNEQ ¶
SignatureNEQ applies the NEQ predicate on the "signature" field.
func SignatureNotIn ¶
SignatureNotIn applies the NotIn predicate on the "signature" 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 TitleIsNil ¶
TitleIsNil applies the IsNil predicate on the "title" field.
func TitleNotIn ¶
TitleNotIn applies the NotIn predicate on the "title" field.
func TitleNotNil ¶
TitleNotNil applies the NotNil predicate on the "title" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶ added in v0.4.1
OrderOption defines the ordering options for the Task queries.
func ByComplete ¶ added in v0.4.0
func ByComplete(opts ...sql.OrderTermOption) OrderOption
ByComplete orders the results by the complete field.
func ByDescription ¶ added in v0.4.0
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByID ¶ added in v0.4.0
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func BySignature ¶ added in v0.4.0
func BySignature(opts ...sql.OrderTermOption) OrderOption
BySignature orders the results by the signature field.
func ByTitle ¶ added in v0.4.0
func ByTitle(opts ...sql.OrderTermOption) OrderOption
ByTitle orders the results by the title field.