Documentation ¶
Index ¶
- Constants
- Variables
- func ActorID(v uint64) predicate.Reaction
- func ActorIDEQ(v uint64) predicate.Reaction
- func ActorIDIn(vs ...uint64) predicate.Reaction
- func ActorIDNEQ(v uint64) predicate.Reaction
- func ActorIDNotIn(vs ...uint64) predicate.Reaction
- func And(predicates ...predicate.Reaction) predicate.Reaction
- func CreatedAt(v time.Time) predicate.Reaction
- func CreatedAtEQ(v time.Time) predicate.Reaction
- func CreatedAtGT(v time.Time) predicate.Reaction
- func CreatedAtGTE(v time.Time) predicate.Reaction
- func CreatedAtIn(vs ...time.Time) predicate.Reaction
- func CreatedAtLT(v time.Time) predicate.Reaction
- func CreatedAtLTE(v time.Time) predicate.Reaction
- func CreatedAtNEQ(v time.Time) predicate.Reaction
- func CreatedAtNotIn(vs ...time.Time) predicate.Reaction
- func CreatedBy(v int) predicate.Reaction
- func CreatedByEQ(v int) predicate.Reaction
- func CreatedByGT(v int) predicate.Reaction
- func CreatedByGTE(v int) predicate.Reaction
- func CreatedByIn(vs ...int) predicate.Reaction
- func CreatedByIsNil() predicate.Reaction
- func CreatedByLT(v int) predicate.Reaction
- func CreatedByLTE(v int) predicate.Reaction
- func CreatedByNEQ(v int) predicate.Reaction
- func CreatedByNotIn(vs ...int) predicate.Reaction
- func CreatedByNotNil() predicate.Reaction
- func Dat(v uint64) predicate.Reaction
- func DatEQ(v uint64) predicate.Reaction
- func DatGT(v uint64) predicate.Reaction
- func DatGTE(v uint64) predicate.Reaction
- func DatIn(vs ...uint64) predicate.Reaction
- func DatLT(v uint64) predicate.Reaction
- func DatLTE(v uint64) predicate.Reaction
- func DatNEQ(v uint64) predicate.Reaction
- func DatNotIn(vs ...uint64) predicate.Reaction
- func HasActors() predicate.Reaction
- func HasActorsWith(preds ...predicate.Actor) predicate.Reaction
- func HasStatus() predicate.Reaction
- func HasStatusWith(preds ...predicate.Status) predicate.Reaction
- func Not(p predicate.Reaction) predicate.Reaction
- func Or(predicates ...predicate.Reaction) predicate.Reaction
- func StatusID(v uint64) predicate.Reaction
- func StatusIDEQ(v uint64) predicate.Reaction
- func StatusIDIn(vs ...uint64) predicate.Reaction
- func StatusIDNEQ(v uint64) predicate.Reaction
- func StatusIDNotIn(vs ...uint64) predicate.Reaction
- func TypeEQ(v Type) predicate.Reaction
- func TypeIn(vs ...Type) predicate.Reaction
- func TypeNEQ(v Type) predicate.Reaction
- func TypeNotIn(vs ...Type) predicate.Reaction
- func TypeValidator(_type Type) error
- func UpdatedAt(v time.Time) predicate.Reaction
- func UpdatedAtEQ(v time.Time) predicate.Reaction
- func UpdatedAtGT(v time.Time) predicate.Reaction
- func UpdatedAtGTE(v time.Time) predicate.Reaction
- func UpdatedAtIn(vs ...time.Time) predicate.Reaction
- func UpdatedAtLT(v time.Time) predicate.Reaction
- func UpdatedAtLTE(v time.Time) predicate.Reaction
- func UpdatedAtNEQ(v time.Time) predicate.Reaction
- func UpdatedAtNotIn(vs ...time.Time) predicate.Reaction
- func UpdatedBy(v int) predicate.Reaction
- func UpdatedByEQ(v int) predicate.Reaction
- func UpdatedByGT(v int) predicate.Reaction
- func UpdatedByGTE(v int) predicate.Reaction
- func UpdatedByIn(vs ...int) predicate.Reaction
- func UpdatedByIsNil() predicate.Reaction
- func UpdatedByLT(v int) predicate.Reaction
- func UpdatedByLTE(v int) predicate.Reaction
- func UpdatedByNEQ(v int) predicate.Reaction
- func UpdatedByNotIn(vs ...int) predicate.Reaction
- func UpdatedByNotNil() predicate.Reaction
- func ValidColumn(column string) bool
- type Type
Constants ¶
const ( // Label holds the string label denoting the reaction type in the database. Label = "reaction" // 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" // FieldActorID holds the string denoting the actor_id field in the database. FieldActorID = "actor_id" // FieldStatusID holds the string denoting the status_id field in the database. FieldStatusID = "status_id" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldDat holds the string denoting the dat field in the database. FieldDat = "dat" // EdgeActors holds the string denoting the actors edge name in mutations. EdgeActors = "actors" // EdgeStatus holds the string denoting the status edge name in mutations. EdgeStatus = "status" // ActorFieldID holds the string denoting the ID field of the Actor. ActorFieldID = "id" // StatusFieldID holds the string denoting the ID field of the Status. StatusFieldID = "id" // Table holds the table name of the reaction in the database. Table = "reactions" // ActorsTable is the table that holds the actors relation/edge. ActorsTable = "reactions" // 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_id" // StatusTable is the table that holds the status relation/edge. StatusTable = "reactions" // StatusInverseTable is the table name for the Status entity. // It exists in this package in order to avoid circular dependency with the "status" package. StatusInverseTable = "status" // StatusColumn is the table column denoting the status relation/edge. StatusColumn = "status_id" )
Variables ¶
var ( Hooks [2]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{ FieldCreatedAt, FieldUpdatedAt, FieldCreatedBy, FieldUpdatedBy, FieldActorID, FieldStatusID, FieldType, FieldDat, }
Columns holds all SQL columns for reaction fields.
Functions ¶
func ActorID ¶
ActorID applies equality check predicate on the "actor_id" field. It's identical to ActorIDEQ.
func ActorIDNEQ ¶
ActorIDNEQ applies the NEQ predicate on the "actor_id" field.
func ActorIDNotIn ¶
ActorIDNotIn applies the NotIn predicate on the "actor_id" 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 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 HasStatusWith ¶
HasStatusWith applies the HasEdge predicate on the "status" edge with a given conditions (other predicates).
func StatusID ¶
StatusID applies equality check predicate on the "status_id" field. It's identical to StatusIDEQ.
func StatusIDEQ ¶
StatusIDEQ applies the EQ predicate on the "status_id" field.
func StatusIDIn ¶
StatusIDIn applies the In predicate on the "status_id" field.
func StatusIDNEQ ¶
StatusIDNEQ applies the NEQ predicate on the "status_id" field.
func StatusIDNotIn ¶
StatusIDNotIn applies the NotIn predicate on the "status_id" field.
func TypeValidator ¶
TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.
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).