Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Shell) predicate.Shell
- func ClosedAt(v time.Time) predicate.Shell
- func ClosedAtEQ(v time.Time) predicate.Shell
- func ClosedAtGT(v time.Time) predicate.Shell
- func ClosedAtGTE(v time.Time) predicate.Shell
- func ClosedAtIn(vs ...time.Time) predicate.Shell
- func ClosedAtIsNil() predicate.Shell
- func ClosedAtLT(v time.Time) predicate.Shell
- func ClosedAtLTE(v time.Time) predicate.Shell
- func ClosedAtNEQ(v time.Time) predicate.Shell
- func ClosedAtNotIn(vs ...time.Time) predicate.Shell
- func ClosedAtNotNil() predicate.Shell
- func CreatedAt(v time.Time) predicate.Shell
- func CreatedAtEQ(v time.Time) predicate.Shell
- func CreatedAtGT(v time.Time) predicate.Shell
- func CreatedAtGTE(v time.Time) predicate.Shell
- func CreatedAtIn(vs ...time.Time) predicate.Shell
- func CreatedAtLT(v time.Time) predicate.Shell
- func CreatedAtLTE(v time.Time) predicate.Shell
- func CreatedAtNEQ(v time.Time) predicate.Shell
- func CreatedAtNotIn(vs ...time.Time) predicate.Shell
- func Data(v []byte) predicate.Shell
- func DataEQ(v []byte) predicate.Shell
- func DataGT(v []byte) predicate.Shell
- func DataGTE(v []byte) predicate.Shell
- func DataIn(vs ...[]byte) predicate.Shell
- func DataLT(v []byte) predicate.Shell
- func DataLTE(v []byte) predicate.Shell
- func DataNEQ(v []byte) predicate.Shell
- func DataNotIn(vs ...[]byte) predicate.Shell
- func HasActiveUsers() predicate.Shell
- func HasActiveUsersWith(preds ...predicate.User) predicate.Shell
- func HasBeacon() predicate.Shell
- func HasBeaconWith(preds ...predicate.Beacon) predicate.Shell
- func HasOwner() predicate.Shell
- func HasOwnerWith(preds ...predicate.User) predicate.Shell
- func HasTask() predicate.Shell
- func HasTaskWith(preds ...predicate.Task) predicate.Shell
- func ID(id int) predicate.Shell
- func IDEQ(id int) predicate.Shell
- func IDGT(id int) predicate.Shell
- func IDGTE(id int) predicate.Shell
- func IDIn(ids ...int) predicate.Shell
- func IDLT(id int) predicate.Shell
- func IDLTE(id int) predicate.Shell
- func IDNEQ(id int) predicate.Shell
- func IDNotIn(ids ...int) predicate.Shell
- func LastModifiedAt(v time.Time) predicate.Shell
- func LastModifiedAtEQ(v time.Time) predicate.Shell
- func LastModifiedAtGT(v time.Time) predicate.Shell
- func LastModifiedAtGTE(v time.Time) predicate.Shell
- func LastModifiedAtIn(vs ...time.Time) predicate.Shell
- func LastModifiedAtLT(v time.Time) predicate.Shell
- func LastModifiedAtLTE(v time.Time) predicate.Shell
- func LastModifiedAtNEQ(v time.Time) predicate.Shell
- func LastModifiedAtNotIn(vs ...time.Time) predicate.Shell
- func Not(p predicate.Shell) predicate.Shell
- func Or(predicates ...predicate.Shell) predicate.Shell
- func ValidColumn(column string) bool
- type OrderOption
- func ByActiveUsers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByActiveUsersCount(opts ...sql.OrderTermOption) OrderOption
- func ByBeaconField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByClosedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLastModifiedAt(opts ...sql.OrderTermOption) OrderOption
- func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByTaskField(field string, opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the shell type in the database. Label = "shell" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldLastModifiedAt holds the string denoting the last_modified_at field in the database. FieldLastModifiedAt = "last_modified_at" // FieldClosedAt holds the string denoting the closed_at field in the database. FieldClosedAt = "closed_at" // FieldData holds the string denoting the data field in the database. FieldData = "data" // EdgeTask holds the string denoting the task edge name in mutations. EdgeTask = "task" // EdgeBeacon holds the string denoting the beacon edge name in mutations. EdgeBeacon = "beacon" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // EdgeActiveUsers holds the string denoting the active_users edge name in mutations. EdgeActiveUsers = "active_users" // Table holds the table name of the shell in the database. Table = "shells" // TaskTable is the table that holds the task relation/edge. TaskTable = "shells" // 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 = "tasks" // TaskColumn is the table column denoting the task relation/edge. TaskColumn = "shell_task" // BeaconTable is the table that holds the beacon relation/edge. BeaconTable = "shells" // 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 = "beacons" // BeaconColumn is the table column denoting the beacon relation/edge. BeaconColumn = "shell_beacon" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "shells" // OwnerInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. OwnerInverseTable = "users" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "shell_owner" // ActiveUsersTable is the table that holds the active_users relation/edge. The primary key declared below. ActiveUsersTable = "shell_active_users" // ActiveUsersInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. ActiveUsersInverseTable = "users" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultLastModifiedAt holds the default value on creation for the "last_modified_at" field. DefaultLastModifiedAt func() time.Time // UpdateDefaultLastModifiedAt holds the default value on update for the "last_modified_at" field. UpdateDefaultLastModifiedAt func() time.Time )
var ( // ActiveUsersPrimaryKey and ActiveUsersColumn2 are the table columns denoting the // primary key for the active_users relation (M2M). ActiveUsersPrimaryKey = []string{"shell_id", "user_id"} )
var Columns = []string{ FieldID, FieldCreatedAt, FieldLastModifiedAt, FieldClosedAt, FieldData, }
Columns holds all SQL columns for shell fields.
var ForeignKeys = []string{
"shell_task",
"shell_beacon",
"shell_owner",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "shells" table and are not defined as standalone fields in the schema.
Functions ¶
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 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 HasActiveUsers ¶
HasActiveUsers applies the HasEdge predicate on the "active_users" edge.
func HasActiveUsersWith ¶
HasActiveUsersWith applies the HasEdge predicate on the "active_users" edge with a given conditions (other predicates).
func HasBeaconWith ¶
HasBeaconWith applies the HasEdge predicate on the "beacon" edge with a given conditions (other predicates).
func HasOwnerWith ¶
HasOwnerWith applies the HasEdge predicate on the "owner" 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 LastModifiedAt ¶
LastModifiedAt applies equality check predicate on the "last_modified_at" field. It's identical to LastModifiedAtEQ.
func LastModifiedAtEQ ¶
LastModifiedAtEQ applies the EQ predicate on the "last_modified_at" field.
func LastModifiedAtGT ¶
LastModifiedAtGT applies the GT predicate on the "last_modified_at" field.
func LastModifiedAtGTE ¶
LastModifiedAtGTE applies the GTE predicate on the "last_modified_at" field.
func LastModifiedAtIn ¶
LastModifiedAtIn applies the In predicate on the "last_modified_at" field.
func LastModifiedAtLT ¶
LastModifiedAtLT applies the LT predicate on the "last_modified_at" field.
func LastModifiedAtLTE ¶
LastModifiedAtLTE applies the LTE predicate on the "last_modified_at" field.
func LastModifiedAtNEQ ¶
LastModifiedAtNEQ applies the NEQ predicate on the "last_modified_at" field.
func LastModifiedAtNotIn ¶
LastModifiedAtNotIn applies the NotIn predicate on the "last_modified_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Shell queries.
func ByActiveUsers ¶
func ByActiveUsers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByActiveUsers orders the results by active_users terms.
func ByActiveUsersCount ¶
func ByActiveUsersCount(opts ...sql.OrderTermOption) OrderOption
ByActiveUsersCount orders the results by active_users count.
func ByBeaconField ¶
func ByBeaconField(field string, opts ...sql.OrderTermOption) OrderOption
ByBeaconField orders the results by beacon field.
func ByClosedAt ¶
func ByClosedAt(opts ...sql.OrderTermOption) OrderOption
ByClosedAt orders the results by the closed_at 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 ByLastModifiedAt ¶
func ByLastModifiedAt(opts ...sql.OrderTermOption) OrderOption
ByLastModifiedAt orders the results by the last_modified_at field.
func ByOwnerField ¶
func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
ByOwnerField orders the results by owner field.
func ByTaskField ¶
func ByTaskField(field string, opts ...sql.OrderTermOption) OrderOption
ByTaskField orders the results by task field.