Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Take) predicate.Take
- func CreateTime(v time.Time) predicate.Take
- func CreateTimeEQ(v time.Time) predicate.Take
- func CreateTimeGT(v time.Time) predicate.Take
- func CreateTimeGTE(v time.Time) predicate.Take
- func CreateTimeIn(vs ...time.Time) predicate.Take
- func CreateTimeLT(v time.Time) predicate.Take
- func CreateTimeLTE(v time.Time) predicate.Take
- func CreateTimeNEQ(v time.Time) predicate.Take
- func CreateTimeNotIn(vs ...time.Time) predicate.Take
- func EndTime(v time.Time) predicate.Take
- func EndTimeEQ(v time.Time) predicate.Take
- func EndTimeGT(v time.Time) predicate.Take
- func EndTimeGTE(v time.Time) predicate.Take
- func EndTimeIn(vs ...time.Time) predicate.Take
- func EndTimeIsNil() predicate.Take
- func EndTimeLT(v time.Time) predicate.Take
- func EndTimeLTE(v time.Time) predicate.Take
- func EndTimeNEQ(v time.Time) predicate.Take
- func EndTimeNotIn(vs ...time.Time) predicate.Take
- func EndTimeNotNil() predicate.Take
- func HasResponses() predicate.Take
- func HasResponsesWith(preds ...predicate.Response) predicate.Take
- func HasResults() predicate.Take
- func HasResultsWith(preds ...predicate.Result) predicate.Take
- func HasTest() predicate.Take
- func HasTestWith(preds ...predicate.Test) predicate.Take
- func HasUser() predicate.Take
- func HasUserWith(preds ...predicate.User) predicate.Take
- func ID(id uuid.UUID) predicate.Take
- func IDEQ(id uuid.UUID) predicate.Take
- func IDGT(id uuid.UUID) predicate.Take
- func IDGTE(id uuid.UUID) predicate.Take
- func IDIn(ids ...uuid.UUID) predicate.Take
- func IDLT(id uuid.UUID) predicate.Take
- func IDLTE(id uuid.UUID) predicate.Take
- func IDNEQ(id uuid.UUID) predicate.Take
- func IDNotIn(ids ...uuid.UUID) predicate.Take
- func InLocaleEQ(v InLocale) predicate.Take
- func InLocaleIn(vs ...InLocale) predicate.Take
- func InLocaleNEQ(v InLocale) predicate.Take
- func InLocaleNotIn(vs ...InLocale) predicate.Take
- func InLocaleValidator(il InLocale) error
- func Mark(v int) predicate.Take
- func MarkEQ(v int) predicate.Take
- func MarkGT(v int) predicate.Take
- func MarkGTE(v int) predicate.Take
- func MarkIn(vs ...int) predicate.Take
- func MarkIsNil() predicate.Take
- func MarkLT(v int) predicate.Take
- func MarkLTE(v int) predicate.Take
- func MarkNEQ(v int) predicate.Take
- func MarkNotIn(vs ...int) predicate.Take
- func MarkNotNil() predicate.Take
- func MetaIsNil() predicate.Take
- func MetaNotNil() predicate.Take
- func Not(p predicate.Take) predicate.Take
- func Or(predicates ...predicate.Take) predicate.Take
- func Page(v int) predicate.Take
- func PageEQ(v int) predicate.Take
- func PageGT(v int) predicate.Take
- func PageGTE(v int) predicate.Take
- func PageIn(vs ...int) predicate.Take
- func PageLT(v int) predicate.Take
- func PageLTE(v int) predicate.Take
- func PageNEQ(v int) predicate.Take
- func PageNotIn(vs ...int) predicate.Take
- func Progress(v int) predicate.Take
- func ProgressEQ(v int) predicate.Take
- func ProgressGT(v int) predicate.Take
- func ProgressGTE(v int) predicate.Take
- func ProgressIn(vs ...int) predicate.Take
- func ProgressLT(v int) predicate.Take
- func ProgressLTE(v int) predicate.Take
- func ProgressNEQ(v int) predicate.Take
- func ProgressNotIn(vs ...int) predicate.Take
- func Seed(v int64) predicate.Take
- func SeedEQ(v int64) predicate.Take
- func SeedGT(v int64) predicate.Take
- func SeedGTE(v int64) predicate.Take
- func SeedIn(vs ...int64) predicate.Take
- func SeedLT(v int64) predicate.Take
- func SeedLTE(v int64) predicate.Take
- func SeedNEQ(v int64) predicate.Take
- func SeedNotIn(vs ...int64) predicate.Take
- func StartTime(v time.Time) predicate.Take
- func StartTimeEQ(v time.Time) predicate.Take
- func StartTimeGT(v time.Time) predicate.Take
- func StartTimeGTE(v time.Time) predicate.Take
- func StartTimeIn(vs ...time.Time) predicate.Take
- func StartTimeIsNil() predicate.Take
- func StartTimeLT(v time.Time) predicate.Take
- func StartTimeLTE(v time.Time) predicate.Take
- func StartTimeNEQ(v time.Time) predicate.Take
- func StartTimeNotIn(vs ...time.Time) predicate.Take
- func StartTimeNotNil() predicate.Take
- func StatusEQ(v Status) predicate.Take
- func StatusIn(vs ...Status) predicate.Take
- func StatusNEQ(v Status) predicate.Take
- func StatusNotIn(vs ...Status) predicate.Take
- func StatusValidator(s Status) error
- func Suspicious(v bool) predicate.Take
- func SuspiciousEQ(v bool) predicate.Take
- func SuspiciousNEQ(v bool) predicate.Take
- func UpdateTime(v time.Time) predicate.Take
- func UpdateTimeEQ(v time.Time) predicate.Take
- func UpdateTimeGT(v time.Time) predicate.Take
- func UpdateTimeGTE(v time.Time) predicate.Take
- func UpdateTimeIn(vs ...time.Time) predicate.Take
- func UpdateTimeLT(v time.Time) predicate.Take
- func UpdateTimeLTE(v time.Time) predicate.Take
- func UpdateTimeNEQ(v time.Time) predicate.Take
- func UpdateTimeNotIn(vs ...time.Time) predicate.Take
- func ValidColumn(column string) bool
- type InLocale
- type Status
Constants ¶
const ( // Label holds the string label denoting the take type in the database. Label = "take" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // FieldUpdateTime holds the string denoting the update_time field in the database. FieldUpdateTime = "update_time" // FieldSeed holds the string denoting the seed field in the database. FieldSeed = "seed" // FieldProgress holds the string denoting the progress field in the database. FieldProgress = "progress" // FieldPage holds the string denoting the page field in the database. FieldPage = "page" // FieldStartTime holds the string denoting the start_time field in the database. FieldStartTime = "start_time" // FieldEndTime holds the string denoting the end_time field in the database. FieldEndTime = "end_time" // FieldSuspicious holds the string denoting the suspicious field in the database. FieldSuspicious = "suspicious" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldMark holds the string denoting the mark field in the database. FieldMark = "mark" // FieldInLocale holds the string denoting the in_locale field in the database. FieldInLocale = "in_locale" // FieldMeta holds the string denoting the meta field in the database. FieldMeta = "meta" // EdgeResponses holds the string denoting the responses edge name in mutations. EdgeResponses = "responses" // EdgeResults holds the string denoting the results edge name in mutations. EdgeResults = "results" // EdgeTest holds the string denoting the test edge name in mutations. EdgeTest = "test" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the take in the database. Table = "takes" // ResponsesTable is the table that holds the responses relation/edge. ResponsesTable = "responses" // ResponsesInverseTable is the table name for the Response entity. // It exists in this package in order to avoid circular dependency with the "response" package. ResponsesInverseTable = "responses" // ResponsesColumn is the table column denoting the responses relation/edge. ResponsesColumn = "take_responses" // ResultsTable is the table that holds the results relation/edge. ResultsTable = "results" // ResultsInverseTable is the table name for the Result entity. // It exists in this package in order to avoid circular dependency with the "result" package. ResultsInverseTable = "results" // ResultsColumn is the table column denoting the results relation/edge. ResultsColumn = "take_results" // TestTable is the table that holds the test relation/edge. TestTable = "takes" // TestInverseTable is the table name for the Test entity. // It exists in this package in order to avoid circular dependency with the "test" package. TestInverseTable = "tests" // TestColumn is the table column denoting the test relation/edge. TestColumn = "test_takes" // UserTable is the table that holds the user relation/edge. UserTable = "takes" // UserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserInverseTable = "users" // UserColumn is the table column denoting the user relation/edge. UserColumn = "user_takes" )
const DefaultInLocale = InLocaleEn
InLocaleEn is the default value of the InLocale enum.
const DefaultStatus = StatusIntro
StatusIntro is the default value of the Status enum.
Variables ¶
var ( // DefaultCreateTime holds the default value on creation for the "create_time" field. DefaultCreateTime func() time.Time // DefaultUpdateTime holds the default value on creation for the "update_time" field. DefaultUpdateTime func() time.Time // UpdateDefaultUpdateTime holds the default value on update for the "update_time" field. UpdateDefaultUpdateTime func() time.Time // DefaultProgress holds the default value on creation for the "progress" field. DefaultProgress int // DefaultPage holds the default value on creation for the "page" field. DefaultPage int // DefaultSuspicious holds the default value on creation for the "suspicious" field. DefaultSuspicious bool // MarkValidator is a validator for the "mark" field. It is called by the builders before save. MarkValidator func(int) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldSeed, FieldProgress, FieldPage, FieldStartTime, FieldEndTime, FieldSuspicious, FieldStatus, FieldMark, FieldInLocale, FieldMeta, }
Columns holds all SQL columns for take fields.
var ForeignKeys = []string{
"test_takes",
"user_takes",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "takes" table and are not defined as standalone fields in the schema.
Functions ¶
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func EndTime ¶
EndTime applies equality check predicate on the "end_time" field. It's identical to EndTimeEQ.
func EndTimeGTE ¶
EndTimeGTE applies the GTE predicate on the "end_time" field.
func EndTimeIsNil ¶
EndTimeIsNil applies the IsNil predicate on the "end_time" field.
func EndTimeLTE ¶
EndTimeLTE applies the LTE predicate on the "end_time" field.
func EndTimeNEQ ¶
EndTimeNEQ applies the NEQ predicate on the "end_time" field.
func EndTimeNotIn ¶
EndTimeNotIn applies the NotIn predicate on the "end_time" field.
func EndTimeNotNil ¶
EndTimeNotNil applies the NotNil predicate on the "end_time" field.
func HasResponses ¶
HasResponses applies the HasEdge predicate on the "responses" edge.
func HasResponsesWith ¶
HasResponsesWith applies the HasEdge predicate on the "responses" edge with a given conditions (other predicates).
func HasResults ¶
HasResults applies the HasEdge predicate on the "results" edge.
func HasResultsWith ¶
HasResultsWith applies the HasEdge predicate on the "results" edge with a given conditions (other predicates).
func HasTestWith ¶
HasTestWith applies the HasEdge predicate on the "test" edge with a given conditions (other predicates).
func HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func InLocaleEQ ¶
InLocaleEQ applies the EQ predicate on the "in_locale" field.
func InLocaleIn ¶
InLocaleIn applies the In predicate on the "in_locale" field.
func InLocaleNEQ ¶
InLocaleNEQ applies the NEQ predicate on the "in_locale" field.
func InLocaleNotIn ¶
InLocaleNotIn applies the NotIn predicate on the "in_locale" field.
func InLocaleValidator ¶
InLocaleValidator is a validator for the "in_locale" field enum values. It is called by the builders before save.
func MarkNotNil ¶
MarkNotNil applies the NotNil predicate on the "mark" field.
func MetaNotNil ¶
MetaNotNil applies the NotNil predicate on the "meta" field.
func Progress ¶
Progress applies equality check predicate on the "progress" field. It's identical to ProgressEQ.
func ProgressEQ ¶
ProgressEQ applies the EQ predicate on the "progress" field.
func ProgressGT ¶
ProgressGT applies the GT predicate on the "progress" field.
func ProgressGTE ¶
ProgressGTE applies the GTE predicate on the "progress" field.
func ProgressIn ¶
ProgressIn applies the In predicate on the "progress" field.
func ProgressLT ¶
ProgressLT applies the LT predicate on the "progress" field.
func ProgressLTE ¶
ProgressLTE applies the LTE predicate on the "progress" field.
func ProgressNEQ ¶
ProgressNEQ applies the NEQ predicate on the "progress" field.
func ProgressNotIn ¶
ProgressNotIn applies the NotIn predicate on the "progress" field.
func StartTime ¶
StartTime applies equality check predicate on the "start_time" field. It's identical to StartTimeEQ.
func StartTimeEQ ¶
StartTimeEQ applies the EQ predicate on the "start_time" field.
func StartTimeGT ¶
StartTimeGT applies the GT predicate on the "start_time" field.
func StartTimeGTE ¶
StartTimeGTE applies the GTE predicate on the "start_time" field.
func StartTimeIn ¶
StartTimeIn applies the In predicate on the "start_time" field.
func StartTimeIsNil ¶
StartTimeIsNil applies the IsNil predicate on the "start_time" field.
func StartTimeLT ¶
StartTimeLT applies the LT predicate on the "start_time" field.
func StartTimeLTE ¶
StartTimeLTE applies the LTE predicate on the "start_time" field.
func StartTimeNEQ ¶
StartTimeNEQ applies the NEQ predicate on the "start_time" field.
func StartTimeNotIn ¶
StartTimeNotIn applies the NotIn predicate on the "start_time" field.
func StartTimeNotNil ¶
StartTimeNotNil applies the NotNil predicate on the "start_time" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn 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 Suspicious ¶
Suspicious applies equality check predicate on the "suspicious" field. It's identical to SuspiciousEQ.
func SuspiciousEQ ¶
SuspiciousEQ applies the EQ predicate on the "suspicious" field.
func SuspiciousNEQ ¶
SuspiciousNEQ applies the NEQ predicate on the "suspicious" field.
func UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).