Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Response) predicate.Response
- func CreateTime(v time.Time) predicate.Response
- func CreateTimeEQ(v time.Time) predicate.Response
- func CreateTimeGT(v time.Time) predicate.Response
- func CreateTimeGTE(v time.Time) predicate.Response
- func CreateTimeIn(vs ...time.Time) predicate.Response
- func CreateTimeLT(v time.Time) predicate.Response
- func CreateTimeLTE(v time.Time) predicate.Response
- func CreateTimeNEQ(v time.Time) predicate.Response
- func CreateTimeNotIn(vs ...time.Time) predicate.Response
- func HasItem() predicate.Response
- func HasItemWith(preds ...predicate.Item) predicate.Response
- func HasTake() predicate.Response
- func HasTakeWith(preds ...predicate.Take) predicate.Response
- func ID(id uuid.UUID) predicate.Response
- func IDEQ(id uuid.UUID) predicate.Response
- func IDGT(id uuid.UUID) predicate.Response
- func IDGTE(id uuid.UUID) predicate.Response
- func IDIn(ids ...uuid.UUID) predicate.Response
- func IDLT(id uuid.UUID) predicate.Response
- func IDLTE(id uuid.UUID) predicate.Response
- func IDNEQ(id uuid.UUID) predicate.Response
- func IDNotIn(ids ...uuid.UUID) predicate.Response
- func MetaIsNil() predicate.Response
- func MetaNotNil() predicate.Response
- func Not(p predicate.Response) predicate.Response
- func Or(predicates ...predicate.Response) predicate.Response
- func UpdateTime(v time.Time) predicate.Response
- func UpdateTimeEQ(v time.Time) predicate.Response
- func UpdateTimeGT(v time.Time) predicate.Response
- func UpdateTimeGTE(v time.Time) predicate.Response
- func UpdateTimeIn(vs ...time.Time) predicate.Response
- func UpdateTimeLT(v time.Time) predicate.Response
- func UpdateTimeLTE(v time.Time) predicate.Response
- func UpdateTimeNEQ(v time.Time) predicate.Response
- func UpdateTimeNotIn(vs ...time.Time) predicate.Response
- func ValidColumn(column string) bool
- func Value(v int) predicate.Response
- func ValueEQ(v int) predicate.Response
- func ValueGT(v int) predicate.Response
- func ValueGTE(v int) predicate.Response
- func ValueIn(vs ...int) predicate.Response
- func ValueLT(v int) predicate.Response
- func ValueLTE(v int) predicate.Response
- func ValueNEQ(v int) predicate.Response
- func ValueNotIn(vs ...int) predicate.Response
Constants ¶
const ( // Label holds the string label denoting the response type in the database. Label = "response" // 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" // FieldValue holds the string denoting the value field in the database. FieldValue = "value" // FieldMeta holds the string denoting the meta field in the database. FieldMeta = "meta" // EdgeItem holds the string denoting the item edge name in mutations. EdgeItem = "item" // EdgeTake holds the string denoting the take edge name in mutations. EdgeTake = "take" // Table holds the table name of the response in the database. Table = "responses" // ItemTable is the table that holds the item relation/edge. ItemTable = "responses" // ItemInverseTable is the table name for the Item entity. // It exists in this package in order to avoid circular dependency with the "item" package. ItemInverseTable = "items" // ItemColumn is the table column denoting the item relation/edge. ItemColumn = "item_responses" // TakeTable is the table that holds the take relation/edge. TakeTable = "responses" // TakeInverseTable is the table name for the Take entity. // It exists in this package in order to avoid circular dependency with the "take" package. TakeInverseTable = "takes" // TakeColumn is the table column denoting the take relation/edge. TakeColumn = "take_responses" )
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 // DefaultValue holds the default value on creation for the "value" field. DefaultValue int // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldValue, FieldMeta, }
Columns holds all SQL columns for response fields.
var ForeignKeys = []string{
"item_responses",
"take_responses",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "responses" 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 HasItemWith ¶
HasItemWith applies the HasEdge predicate on the "item" edge with a given conditions (other predicates).
func HasTakeWith ¶
HasTakeWith applies the HasEdge predicate on the "take" edge with a given conditions (other predicates).
func MetaNotNil ¶
MetaNotNil applies the NotNil predicate on the "meta" 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).
func Value ¶
Value applies equality check predicate on the "value" field. It's identical to ValueEQ.
func ValueNotIn ¶
ValueNotIn applies the NotIn predicate on the "value" field.
Types ¶
This section is empty.