Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Status) predicate.Status
- func CreatedAt(v time.Time) predicate.Status
- func CreatedAtEQ(v time.Time) predicate.Status
- func CreatedAtGT(v time.Time) predicate.Status
- func CreatedAtGTE(v time.Time) predicate.Status
- func CreatedAtIn(vs ...time.Time) predicate.Status
- func CreatedAtLT(v time.Time) predicate.Status
- func CreatedAtLTE(v time.Time) predicate.Status
- func CreatedAtNEQ(v time.Time) predicate.Status
- func CreatedAtNotIn(vs ...time.Time) predicate.Status
- func CreatedBy(v int) predicate.Status
- func CreatedByEQ(v int) predicate.Status
- func CreatedByGT(v int) predicate.Status
- func CreatedByGTE(v int) predicate.Status
- func CreatedByIn(vs ...int) predicate.Status
- func CreatedByIsNil() predicate.Status
- func CreatedByLT(v int) predicate.Status
- func CreatedByLTE(v int) predicate.Status
- func CreatedByNEQ(v int) predicate.Status
- func CreatedByNotIn(vs ...int) predicate.Status
- func CreatedByNotNil() predicate.Status
- func HasActors() predicate.Status
- func HasActorsWith(preds ...predicate.Actor) predicate.Status
- func HasReactedActors() predicate.Status
- func HasReactedActorsWith(preds ...predicate.Actor) predicate.Status
- func HasReactions() predicate.Status
- func HasReactionsWith(preds ...predicate.Reaction) predicate.Status
- func ID(id uint64) predicate.Status
- func IDEQ(id uint64) predicate.Status
- func IDGT(id uint64) predicate.Status
- func IDGTE(id uint64) predicate.Status
- func IDIn(ids ...uint64) predicate.Status
- func IDLT(id uint64) predicate.Status
- func IDLTE(id uint64) predicate.Status
- func IDNEQ(id uint64) predicate.Status
- func IDNotIn(ids ...uint64) predicate.Status
- func Not(p predicate.Status) predicate.Status
- func Or(predicates ...predicate.Status) predicate.Status
- func UpdatedAt(v time.Time) predicate.Status
- func UpdatedAtEQ(v time.Time) predicate.Status
- func UpdatedAtGT(v time.Time) predicate.Status
- func UpdatedAtGTE(v time.Time) predicate.Status
- func UpdatedAtIn(vs ...time.Time) predicate.Status
- func UpdatedAtLT(v time.Time) predicate.Status
- func UpdatedAtLTE(v time.Time) predicate.Status
- func UpdatedAtNEQ(v time.Time) predicate.Status
- func UpdatedAtNotIn(vs ...time.Time) predicate.Status
- func UpdatedBy(v int) predicate.Status
- func UpdatedByEQ(v int) predicate.Status
- func UpdatedByGT(v int) predicate.Status
- func UpdatedByGTE(v int) predicate.Status
- func UpdatedByIn(vs ...int) predicate.Status
- func UpdatedByIsNil() predicate.Status
- func UpdatedByLT(v int) predicate.Status
- func UpdatedByLTE(v int) predicate.Status
- func UpdatedByNEQ(v int) predicate.Status
- func UpdatedByNotIn(vs ...int) predicate.Status
- func UpdatedByNotNil() predicate.Status
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the status type in the database. Label = "status" // 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" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldCreatedBy holds the string denoting the created_by field in the database. FieldCreatedBy = "created_by" // FieldUpdatedBy holds the string denoting the updated_by field in the database. FieldUpdatedBy = "updated_by" // EdgeActors holds the string denoting the actors edge name in mutations. EdgeActors = "actors" // EdgeReactedActors holds the string denoting the reacted_actors edge name in mutations. EdgeReactedActors = "reacted_actors" // EdgeReactions holds the string denoting the reactions edge name in mutations. EdgeReactions = "reactions" // Table holds the table name of the status in the database. Table = "status" // ActorsTable is the table that holds the actors relation/edge. ActorsTable = "status" // ActorsInverseTable is the table name for the Actor entity. // It exists in this package in order to avoid circular dependency with the "actor" package. ActorsInverseTable = "actors" // ActorsColumn is the table column denoting the actors relation/edge. ActorsColumn = "actor_statuses" // ReactedActorsTable is the table that holds the reacted_actors relation/edge. The primary key declared below. ReactedActorsTable = "reactions" // ReactedActorsInverseTable is the table name for the Actor entity. // It exists in this package in order to avoid circular dependency with the "actor" package. ReactedActorsInverseTable = "actors" // ReactionsTable is the table that holds the reactions relation/edge. ReactionsTable = "reactions" // ReactionsInverseTable is the table name for the Reaction entity. // It exists in this package in order to avoid circular dependency with the "reaction" package. ReactionsInverseTable = "reactions" // ReactionsColumn is the table column denoting the reactions relation/edge. ReactionsColumn = "status_id" )
Variables ¶
var ( Hooks [3]ent.Hook Policy ent.Policy // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time )
Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:
import _ "github.com/eriner/burr/internal/ent/runtime"
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldCreatedBy, FieldUpdatedBy, }
Columns holds all SQL columns for status fields.
var ForeignKeys = []string{
"actor_statuses",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "status" table and are not defined as standalone fields in the schema.
var ( // ReactedActorsPrimaryKey and ReactedActorsColumn2 are the table columns denoting the // primary key for the reacted_actors relation (M2M). ReactedActorsPrimaryKey = []string{"actor_id", "status_id"} )
Functions ¶
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 CreatedBy ¶
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByEQ ¶
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByGT ¶
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByIn ¶
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByIsNil ¶
CreatedByIsNil applies the IsNil predicate on the "created_by" field.
func CreatedByLT ¶
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func CreatedByNotNil ¶
CreatedByNotNil applies the NotNil predicate on the "created_by" field.
func HasActorsWith ¶
HasActorsWith applies the HasEdge predicate on the "actors" edge with a given conditions (other predicates).
func HasReactedActors ¶
HasReactedActors applies the HasEdge predicate on the "reacted_actors" edge.
func HasReactedActorsWith ¶
HasReactedActorsWith applies the HasEdge predicate on the "reacted_actors" edge with a given conditions (other predicates).
func HasReactions ¶
HasReactions applies the HasEdge predicate on the "reactions" edge.
func HasReactionsWith ¶
HasReactionsWith applies the HasEdge predicate on the "reactions" edge with a given conditions (other predicates).
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedBy ¶
UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
func UpdatedByEQ ¶
UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByGT ¶
UpdatedByGT applies the GT predicate on the "updated_by" field.
func UpdatedByGTE ¶
UpdatedByGTE applies the GTE predicate on the "updated_by" field.
func UpdatedByIn ¶
UpdatedByIn applies the In predicate on the "updated_by" field.
func UpdatedByIsNil ¶
UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.
func UpdatedByLT ¶
UpdatedByLT applies the LT predicate on the "updated_by" field.
func UpdatedByLTE ¶
UpdatedByLTE applies the LTE predicate on the "updated_by" field.
func UpdatedByNEQ ¶
UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
func UpdatedByNotIn ¶
UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
func UpdatedByNotNil ¶
UpdatedByNotNil applies the NotNil predicate on the "updated_by" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.