Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Group) predicate.Group
- func Author(v int) predicate.Group
- func AuthorEQ(v int) predicate.Group
- func AuthorIn(vs ...int) predicate.Group
- func AuthorNEQ(v int) predicate.Group
- func AuthorNotIn(vs ...int) predicate.Group
- func Bid(v int) predicate.Group
- func BidEQ(v int) predicate.Group
- func BidIn(vs ...int) predicate.Group
- func BidNEQ(v int) predicate.Group
- func BidNotIn(vs ...int) predicate.Group
- func ClosedAt(v time.Time) predicate.Group
- func ClosedAtEQ(v time.Time) predicate.Group
- func ClosedAtGT(v time.Time) predicate.Group
- func ClosedAtGTE(v time.Time) predicate.Group
- func ClosedAtIn(vs ...time.Time) predicate.Group
- func ClosedAtIsNil() predicate.Group
- func ClosedAtLT(v time.Time) predicate.Group
- func ClosedAtLTE(v time.Time) predicate.Group
- func ClosedAtNEQ(v time.Time) predicate.Group
- func ClosedAtNotIn(vs ...time.Time) predicate.Group
- func ClosedAtNotNil() predicate.Group
- func Cmd(v string) predicate.Group
- func CmdContains(v string) predicate.Group
- func CmdContainsFold(v string) predicate.Group
- func CmdEQ(v string) predicate.Group
- func CmdEqualFold(v string) predicate.Group
- func CmdGT(v string) predicate.Group
- func CmdGTE(v string) predicate.Group
- func CmdHasPrefix(v string) predicate.Group
- func CmdHasSuffix(v string) predicate.Group
- func CmdIn(vs ...string) predicate.Group
- func CmdLT(v string) predicate.Group
- func CmdLTE(v string) predicate.Group
- func CmdNEQ(v string) predicate.Group
- func CmdNotIn(vs ...string) predicate.Group
- func CreatedAt(v time.Time) predicate.Group
- func CreatedAtEQ(v time.Time) predicate.Group
- func CreatedAtGT(v time.Time) predicate.Group
- func CreatedAtGTE(v time.Time) predicate.Group
- func CreatedAtIn(vs ...time.Time) predicate.Group
- func CreatedAtLT(v time.Time) predicate.Group
- func CreatedAtLTE(v time.Time) predicate.Group
- func CreatedAtNEQ(v time.Time) predicate.Group
- func CreatedAtNotIn(vs ...time.Time) predicate.Group
- func HasBeacon() predicate.Group
- func HasBeaconWith(preds ...predicate.Beacon) predicate.Group
- func HasMessage() predicate.Group
- func HasMessageWith(preds ...predicate.Message) predicate.Group
- func HasOperator() predicate.Group
- func HasOperatorWith(preds ...predicate.Operator) predicate.Group
- func HasTask() predicate.Group
- func HasTaskWith(preds ...predicate.Task) predicate.Group
- func ID(id int) predicate.Group
- func IDEQ(id int) predicate.Group
- func IDGT(id int) predicate.Group
- func IDGTE(id int) predicate.Group
- func IDIn(ids ...int) predicate.Group
- func IDLT(id int) predicate.Group
- func IDLTE(id int) predicate.Group
- func IDNEQ(id int) predicate.Group
- func IDNotIn(ids ...int) predicate.Group
- func Not(p predicate.Group) predicate.Group
- func Or(predicates ...predicate.Group) predicate.Group
- func ValidColumn(column string) bool
- func Visible(v bool) predicate.Group
- func VisibleEQ(v bool) predicate.Group
- func VisibleNEQ(v bool) predicate.Group
- type OrderOption
- func ByAuthor(opts ...sql.OrderTermOption) OrderOption
- func ByBeaconField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByBid(opts ...sql.OrderTermOption) OrderOption
- func ByClosedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCmd(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMessage(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByMessageCount(opts ...sql.OrderTermOption) OrderOption
- func ByOperatorField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByTask(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTaskCount(opts ...sql.OrderTermOption) OrderOption
- func ByVisible(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the group type in the database. Label = "group" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldBid holds the string denoting the bid field in the database. FieldBid = "bid" // FieldCmd holds the string denoting the cmd field in the database. FieldCmd = "cmd" // FieldVisible holds the string denoting the visible field in the database. FieldVisible = "visible" // FieldAuthor holds the string denoting the author field in the database. FieldAuthor = "author" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldClosedAt holds the string denoting the closed_at field in the database. FieldClosedAt = "closed_at" // EdgeBeacon holds the string denoting the beacon edge name in mutations. EdgeBeacon = "beacon" // EdgeOperator holds the string denoting the operator edge name in mutations. EdgeOperator = "operator" // EdgeMessage holds the string denoting the message edge name in mutations. EdgeMessage = "message" // EdgeTask holds the string denoting the task edge name in mutations. EdgeTask = "task" // Table holds the table name of the group in the database. Table = "group" // BeaconTable is the table that holds the beacon relation/edge. BeaconTable = "group" // BeaconInverseTable is the table name for the Beacon entity. // It exists in this package in order to avoid circular dependency with the "beacon" package. BeaconInverseTable = "beacon" // BeaconColumn is the table column denoting the beacon relation/edge. BeaconColumn = "bid" // OperatorTable is the table that holds the operator relation/edge. OperatorTable = "group" // OperatorInverseTable is the table name for the Operator entity. // It exists in this package in order to avoid circular dependency with the "operator" package. OperatorInverseTable = "operator" // OperatorColumn is the table column denoting the operator relation/edge. OperatorColumn = "author" // MessageTable is the table that holds the message relation/edge. MessageTable = "message" // MessageInverseTable is the table name for the Message entity. // It exists in this package in order to avoid circular dependency with the "message" package. MessageInverseTable = "message" // MessageColumn is the table column denoting the message relation/edge. MessageColumn = "gid" // TaskTable is the table that holds the task relation/edge. TaskTable = "task" // TaskInverseTable is the table name for the Task entity. // It exists in this package in order to avoid circular dependency with the "task" package. TaskInverseTable = "task" // TaskColumn is the table column denoting the task relation/edge. TaskColumn = "gid" )
Variables ¶
var ( // CmdValidator is a validator for the "cmd" field. It is called by the builders before save. CmdValidator func(string) error // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time )
var Columns = []string{ FieldID, FieldBid, FieldCmd, FieldVisible, FieldAuthor, FieldCreatedAt, FieldClosedAt, }
Columns holds all SQL columns for group fields.
Functions ¶
func Author ¶
Author applies equality check predicate on the "author" field. It's identical to AuthorEQ.
func AuthorNotIn ¶
AuthorNotIn applies the NotIn predicate on the "author" field.
func ClosedAt ¶
ClosedAt applies equality check predicate on the "closed_at" field. It's identical to ClosedAtEQ.
func ClosedAtEQ ¶
ClosedAtEQ applies the EQ predicate on the "closed_at" field.
func ClosedAtGT ¶
ClosedAtGT applies the GT predicate on the "closed_at" field.
func ClosedAtGTE ¶
ClosedAtGTE applies the GTE predicate on the "closed_at" field.
func ClosedAtIn ¶
ClosedAtIn applies the In predicate on the "closed_at" field.
func ClosedAtIsNil ¶
ClosedAtIsNil applies the IsNil predicate on the "closed_at" field.
func ClosedAtLT ¶
ClosedAtLT applies the LT predicate on the "closed_at" field.
func ClosedAtLTE ¶
ClosedAtLTE applies the LTE predicate on the "closed_at" field.
func ClosedAtNEQ ¶
ClosedAtNEQ applies the NEQ predicate on the "closed_at" field.
func ClosedAtNotIn ¶
ClosedAtNotIn applies the NotIn predicate on the "closed_at" field.
func ClosedAtNotNil ¶
ClosedAtNotNil applies the NotNil predicate on the "closed_at" field.
func CmdContains ¶
CmdContains applies the Contains predicate on the "cmd" field.
func CmdContainsFold ¶
CmdContainsFold applies the ContainsFold predicate on the "cmd" field.
func CmdEqualFold ¶
CmdEqualFold applies the EqualFold predicate on the "cmd" field.
func CmdHasPrefix ¶
CmdHasPrefix applies the HasPrefix predicate on the "cmd" field.
func CmdHasSuffix ¶
CmdHasSuffix applies the HasSuffix predicate on the "cmd" 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 HasBeaconWith ¶
HasBeaconWith applies the HasEdge predicate on the "beacon" edge with a given conditions (other predicates).
func HasMessage ¶
HasMessage applies the HasEdge predicate on the "message" edge.
func HasMessageWith ¶
HasMessageWith applies the HasEdge predicate on the "message" edge with a given conditions (other predicates).
func HasOperator ¶
HasOperator applies the HasEdge predicate on the "operator" edge.
func HasOperatorWith ¶
HasOperatorWith applies the HasEdge predicate on the "operator" edge with a given conditions (other predicates).
func HasTaskWith ¶
HasTaskWith applies the HasEdge predicate on the "task" edge with a given conditions (other predicates).
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Visible ¶
Visible applies equality check predicate on the "visible" field. It's identical to VisibleEQ.
func VisibleNEQ ¶
VisibleNEQ applies the NEQ predicate on the "visible" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Group queries.
func ByAuthor ¶
func ByAuthor(opts ...sql.OrderTermOption) OrderOption
ByAuthor orders the results by the author field.
func ByBeaconField ¶
func ByBeaconField(field string, opts ...sql.OrderTermOption) OrderOption
ByBeaconField orders the results by beacon field.
func ByBid ¶
func ByBid(opts ...sql.OrderTermOption) OrderOption
ByBid orders the results by the bid field.
func ByClosedAt ¶
func ByClosedAt(opts ...sql.OrderTermOption) OrderOption
ByClosedAt orders the results by the closed_at field.
func ByCmd ¶
func ByCmd(opts ...sql.OrderTermOption) OrderOption
ByCmd orders the results by the cmd field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByMessage ¶
func ByMessage(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByMessage orders the results by message terms.
func ByMessageCount ¶
func ByMessageCount(opts ...sql.OrderTermOption) OrderOption
ByMessageCount orders the results by message count.
func ByOperatorField ¶
func ByOperatorField(field string, opts ...sql.OrderTermOption) OrderOption
ByOperatorField orders the results by operator field.
func ByTask ¶
func ByTask(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByTask orders the results by task terms.
func ByTaskCount ¶
func ByTaskCount(opts ...sql.OrderTermOption) OrderOption
ByTaskCount orders the results by task count.
func ByVisible ¶
func ByVisible(opts ...sql.OrderTermOption) OrderOption
ByVisible orders the results by the visible field.