Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Service) predicate.Service
- func CreateTime(v time.Time) predicate.Service
- func CreateTimeEQ(v time.Time) predicate.Service
- func CreateTimeGT(v time.Time) predicate.Service
- func CreateTimeGTE(v time.Time) predicate.Service
- func CreateTimeIn(vs ...time.Time) predicate.Service
- func CreateTimeLT(v time.Time) predicate.Service
- func CreateTimeLTE(v time.Time) predicate.Service
- func CreateTimeNEQ(v time.Time) predicate.Service
- func CreateTimeNotIn(vs ...time.Time) predicate.Service
- func HasRequests() predicate.Service
- func HasRequestsWith(preds ...predicate.Request) predicate.Service
- func ID(id uuid.UUID) predicate.Service
- func IDEQ(id uuid.UUID) predicate.Service
- func IDGT(id uuid.UUID) predicate.Service
- func IDGTE(id uuid.UUID) predicate.Service
- func IDIn(ids ...uuid.UUID) predicate.Service
- func IDLT(id uuid.UUID) predicate.Service
- func IDLTE(id uuid.UUID) predicate.Service
- func IDNEQ(id uuid.UUID) predicate.Service
- func IDNotIn(ids ...uuid.UUID) predicate.Service
- func Name(v string) predicate.Service
- func NameContains(v string) predicate.Service
- func NameContainsFold(v string) predicate.Service
- func NameEQ(v string) predicate.Service
- func NameEqualFold(v string) predicate.Service
- func NameGT(v string) predicate.Service
- func NameGTE(v string) predicate.Service
- func NameHasPrefix(v string) predicate.Service
- func NameHasSuffix(v string) predicate.Service
- func NameIn(vs ...string) predicate.Service
- func NameLT(v string) predicate.Service
- func NameLTE(v string) predicate.Service
- func NameNEQ(v string) predicate.Service
- func NameNotIn(vs ...string) predicate.Service
- func Not(p predicate.Service) predicate.Service
- func Or(predicates ...predicate.Service) predicate.Service
- func UpdateTime(v time.Time) predicate.Service
- func UpdateTimeEQ(v time.Time) predicate.Service
- func UpdateTimeGT(v time.Time) predicate.Service
- func UpdateTimeGTE(v time.Time) predicate.Service
- func UpdateTimeIn(vs ...time.Time) predicate.Service
- func UpdateTimeLT(v time.Time) predicate.Service
- func UpdateTimeLTE(v time.Time) predicate.Service
- func UpdateTimeNEQ(v time.Time) predicate.Service
- func UpdateTimeNotIn(vs ...time.Time) predicate.Service
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the service type in the database. Label = "service" // 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" // FieldName holds the string denoting the name field in the database. FieldName = "name" // EdgeRequests holds the string denoting the requests edge name in mutations. EdgeRequests = "Requests" // Table holds the table name of the service in the database. Table = "services" // RequestsTable is the table that holds the Requests relation/edge. RequestsTable = "requests" // RequestsInverseTable is the table name for the Request entity. // It exists in this package in order to avoid circular dependency with the "request" package. RequestsInverseTable = "requests" // RequestsColumn is the table column denoting the Requests relation/edge. RequestsColumn = "request_service" )
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 // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldName, }
Columns holds all SQL columns for service fields.
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 HasRequests ¶
HasRequests applies the HasEdge predicate on the "Requests" edge.
func HasRequestsWith ¶
HasRequestsWith applies the HasEdge predicate on the "Requests" edge with a given conditions (other predicates).
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" 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).
Types ¶
This section is empty.