Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.RunJournal) predicate.RunJournal
- func ID(id uuid.UUID) predicate.RunJournal
- func IDEQ(id uuid.UUID) predicate.RunJournal
- func IDGT(id uuid.UUID) predicate.RunJournal
- func IDGTE(id uuid.UUID) predicate.RunJournal
- func IDIn(ids ...uuid.UUID) predicate.RunJournal
- func IDLT(id uuid.UUID) predicate.RunJournal
- func IDLTE(id uuid.UUID) predicate.RunJournal
- func IDNEQ(id uuid.UUID) predicate.RunJournal
- func IDNotIn(ids ...uuid.UUID) predicate.RunJournal
- func Not(p predicate.RunJournal) predicate.RunJournal
- func Or(predicates ...predicate.RunJournal) predicate.RunJournal
- func Payload(v string) predicate.RunJournal
- func PayloadContains(v string) predicate.RunJournal
- func PayloadContainsFold(v string) predicate.RunJournal
- func PayloadEQ(v string) predicate.RunJournal
- func PayloadEqualFold(v string) predicate.RunJournal
- func PayloadGT(v string) predicate.RunJournal
- func PayloadGTE(v string) predicate.RunJournal
- func PayloadHasPrefix(v string) predicate.RunJournal
- func PayloadHasSuffix(v string) predicate.RunJournal
- func PayloadIn(vs ...string) predicate.RunJournal
- func PayloadLT(v string) predicate.RunJournal
- func PayloadLTE(v string) predicate.RunJournal
- func PayloadNEQ(v string) predicate.RunJournal
- func PayloadNotIn(vs ...string) predicate.RunJournal
- func RunID(v string) predicate.RunJournal
- func RunIDContains(v string) predicate.RunJournal
- func RunIDContainsFold(v string) predicate.RunJournal
- func RunIDEQ(v string) predicate.RunJournal
- func RunIDEqualFold(v string) predicate.RunJournal
- func RunIDGT(v string) predicate.RunJournal
- func RunIDGTE(v string) predicate.RunJournal
- func RunIDHasPrefix(v string) predicate.RunJournal
- func RunIDHasSuffix(v string) predicate.RunJournal
- func RunIDIn(vs ...string) predicate.RunJournal
- func RunIDLT(v string) predicate.RunJournal
- func RunIDLTE(v string) predicate.RunJournal
- func RunIDNEQ(v string) predicate.RunJournal
- func RunIDNotIn(vs ...string) predicate.RunJournal
- func Seq(v int64) predicate.RunJournal
- func SeqEQ(v int64) predicate.RunJournal
- func SeqGT(v int64) predicate.RunJournal
- func SeqGTE(v int64) predicate.RunJournal
- func SeqIn(vs ...int64) predicate.RunJournal
- func SeqLT(v int64) predicate.RunJournal
- func SeqLTE(v int64) predicate.RunJournal
- func SeqNEQ(v int64) predicate.RunJournal
- func SeqNotIn(vs ...int64) predicate.RunJournal
- func Timestamp(v time.Time) predicate.RunJournal
- func TimestampEQ(v time.Time) predicate.RunJournal
- func TimestampGT(v time.Time) predicate.RunJournal
- func TimestampGTE(v time.Time) predicate.RunJournal
- func TimestampIn(vs ...time.Time) predicate.RunJournal
- func TimestampLT(v time.Time) predicate.RunJournal
- func TimestampLTE(v time.Time) predicate.RunJournal
- func TimestampNEQ(v time.Time) predicate.RunJournal
- func TimestampNotIn(vs ...time.Time) predicate.RunJournal
- func TypeEQ(v Type) predicate.RunJournal
- func TypeIn(vs ...Type) predicate.RunJournal
- func TypeNEQ(v Type) predicate.RunJournal
- func TypeNotIn(vs ...Type) predicate.RunJournal
- func TypeValidator(_type Type) error
- func ValidColumn(column string) bool
- type OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByPayload(opts ...sql.OrderTermOption) OrderOption
- func ByRunID(opts ...sql.OrderTermOption) OrderOption
- func BySeq(opts ...sql.OrderTermOption) OrderOption
- func ByTimestamp(opts ...sql.OrderTermOption) OrderOption
- func ByType(opts ...sql.OrderTermOption) OrderOption
- type Type
Constants ¶
const ( // Label holds the string label denoting the runjournal type in the database. Label = "run_journal" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldRunID holds the string denoting the run_id field in the database. FieldRunID = "run_id" // FieldSeq holds the string denoting the seq field in the database. FieldSeq = "seq" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldTimestamp holds the string denoting the timestamp field in the database. FieldTimestamp = "timestamp" // FieldPayload holds the string denoting the payload field in the database. FieldPayload = "payload" // Table holds the table name of the runjournal in the database. Table = "run_journals" )
Variables ¶
var ( // RunIDValidator is a validator for the "run_id" field. It is called by the builders before save. RunIDValidator func(string) error // DefaultTimestamp holds the default value on creation for the "timestamp" field. DefaultTimestamp func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldRunID, FieldSeq, FieldType, FieldTimestamp, FieldPayload, }
Columns holds all SQL columns for runjournal fields.
Functions ¶
func And ¶
func And(predicates ...predicate.RunJournal) predicate.RunJournal
And groups predicates with the AND operator between them.
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.RunJournal
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.RunJournal
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.RunJournal
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.RunJournal
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.RunJournal
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.RunJournal
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.RunJournal
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.RunJournal
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.RunJournal) predicate.RunJournal
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.RunJournal) predicate.RunJournal
Or groups predicates with the OR operator between them.
func Payload ¶
func Payload(v string) predicate.RunJournal
Payload applies equality check predicate on the "payload" field. It's identical to PayloadEQ.
func PayloadContains ¶
func PayloadContains(v string) predicate.RunJournal
PayloadContains applies the Contains predicate on the "payload" field.
func PayloadContainsFold ¶
func PayloadContainsFold(v string) predicate.RunJournal
PayloadContainsFold applies the ContainsFold predicate on the "payload" field.
func PayloadEQ ¶
func PayloadEQ(v string) predicate.RunJournal
PayloadEQ applies the EQ predicate on the "payload" field.
func PayloadEqualFold ¶
func PayloadEqualFold(v string) predicate.RunJournal
PayloadEqualFold applies the EqualFold predicate on the "payload" field.
func PayloadGT ¶
func PayloadGT(v string) predicate.RunJournal
PayloadGT applies the GT predicate on the "payload" field.
func PayloadGTE ¶
func PayloadGTE(v string) predicate.RunJournal
PayloadGTE applies the GTE predicate on the "payload" field.
func PayloadHasPrefix ¶
func PayloadHasPrefix(v string) predicate.RunJournal
PayloadHasPrefix applies the HasPrefix predicate on the "payload" field.
func PayloadHasSuffix ¶
func PayloadHasSuffix(v string) predicate.RunJournal
PayloadHasSuffix applies the HasSuffix predicate on the "payload" field.
func PayloadIn ¶
func PayloadIn(vs ...string) predicate.RunJournal
PayloadIn applies the In predicate on the "payload" field.
func PayloadLT ¶
func PayloadLT(v string) predicate.RunJournal
PayloadLT applies the LT predicate on the "payload" field.
func PayloadLTE ¶
func PayloadLTE(v string) predicate.RunJournal
PayloadLTE applies the LTE predicate on the "payload" field.
func PayloadNEQ ¶
func PayloadNEQ(v string) predicate.RunJournal
PayloadNEQ applies the NEQ predicate on the "payload" field.
func PayloadNotIn ¶
func PayloadNotIn(vs ...string) predicate.RunJournal
PayloadNotIn applies the NotIn predicate on the "payload" field.
func RunID ¶
func RunID(v string) predicate.RunJournal
RunID applies equality check predicate on the "run_id" field. It's identical to RunIDEQ.
func RunIDContains ¶
func RunIDContains(v string) predicate.RunJournal
RunIDContains applies the Contains predicate on the "run_id" field.
func RunIDContainsFold ¶
func RunIDContainsFold(v string) predicate.RunJournal
RunIDContainsFold applies the ContainsFold predicate on the "run_id" field.
func RunIDEQ ¶
func RunIDEQ(v string) predicate.RunJournal
RunIDEQ applies the EQ predicate on the "run_id" field.
func RunIDEqualFold ¶
func RunIDEqualFold(v string) predicate.RunJournal
RunIDEqualFold applies the EqualFold predicate on the "run_id" field.
func RunIDGT ¶
func RunIDGT(v string) predicate.RunJournal
RunIDGT applies the GT predicate on the "run_id" field.
func RunIDGTE ¶
func RunIDGTE(v string) predicate.RunJournal
RunIDGTE applies the GTE predicate on the "run_id" field.
func RunIDHasPrefix ¶
func RunIDHasPrefix(v string) predicate.RunJournal
RunIDHasPrefix applies the HasPrefix predicate on the "run_id" field.
func RunIDHasSuffix ¶
func RunIDHasSuffix(v string) predicate.RunJournal
RunIDHasSuffix applies the HasSuffix predicate on the "run_id" field.
func RunIDIn ¶
func RunIDIn(vs ...string) predicate.RunJournal
RunIDIn applies the In predicate on the "run_id" field.
func RunIDLT ¶
func RunIDLT(v string) predicate.RunJournal
RunIDLT applies the LT predicate on the "run_id" field.
func RunIDLTE ¶
func RunIDLTE(v string) predicate.RunJournal
RunIDLTE applies the LTE predicate on the "run_id" field.
func RunIDNEQ ¶
func RunIDNEQ(v string) predicate.RunJournal
RunIDNEQ applies the NEQ predicate on the "run_id" field.
func RunIDNotIn ¶
func RunIDNotIn(vs ...string) predicate.RunJournal
RunIDNotIn applies the NotIn predicate on the "run_id" field.
func Seq ¶
func Seq(v int64) predicate.RunJournal
Seq applies equality check predicate on the "seq" field. It's identical to SeqEQ.
func SeqEQ ¶
func SeqEQ(v int64) predicate.RunJournal
SeqEQ applies the EQ predicate on the "seq" field.
func SeqGT ¶
func SeqGT(v int64) predicate.RunJournal
SeqGT applies the GT predicate on the "seq" field.
func SeqGTE ¶
func SeqGTE(v int64) predicate.RunJournal
SeqGTE applies the GTE predicate on the "seq" field.
func SeqIn ¶
func SeqIn(vs ...int64) predicate.RunJournal
SeqIn applies the In predicate on the "seq" field.
func SeqLT ¶
func SeqLT(v int64) predicate.RunJournal
SeqLT applies the LT predicate on the "seq" field.
func SeqLTE ¶
func SeqLTE(v int64) predicate.RunJournal
SeqLTE applies the LTE predicate on the "seq" field.
func SeqNEQ ¶
func SeqNEQ(v int64) predicate.RunJournal
SeqNEQ applies the NEQ predicate on the "seq" field.
func SeqNotIn ¶
func SeqNotIn(vs ...int64) predicate.RunJournal
SeqNotIn applies the NotIn predicate on the "seq" field.
func Timestamp ¶
func Timestamp(v time.Time) predicate.RunJournal
Timestamp applies equality check predicate on the "timestamp" field. It's identical to TimestampEQ.
func TimestampEQ ¶
func TimestampEQ(v time.Time) predicate.RunJournal
TimestampEQ applies the EQ predicate on the "timestamp" field.
func TimestampGT ¶
func TimestampGT(v time.Time) predicate.RunJournal
TimestampGT applies the GT predicate on the "timestamp" field.
func TimestampGTE ¶
func TimestampGTE(v time.Time) predicate.RunJournal
TimestampGTE applies the GTE predicate on the "timestamp" field.
func TimestampIn ¶
func TimestampIn(vs ...time.Time) predicate.RunJournal
TimestampIn applies the In predicate on the "timestamp" field.
func TimestampLT ¶
func TimestampLT(v time.Time) predicate.RunJournal
TimestampLT applies the LT predicate on the "timestamp" field.
func TimestampLTE ¶
func TimestampLTE(v time.Time) predicate.RunJournal
TimestampLTE applies the LTE predicate on the "timestamp" field.
func TimestampNEQ ¶
func TimestampNEQ(v time.Time) predicate.RunJournal
TimestampNEQ applies the NEQ predicate on the "timestamp" field.
func TimestampNotIn ¶
func TimestampNotIn(vs ...time.Time) predicate.RunJournal
TimestampNotIn applies the NotIn predicate on the "timestamp" field.
func TypeEQ ¶
func TypeEQ(v Type) predicate.RunJournal
TypeEQ applies the EQ predicate on the "type" field.
func TypeIn ¶
func TypeIn(vs ...Type) predicate.RunJournal
TypeIn applies the In predicate on the "type" field.
func TypeNEQ ¶
func TypeNEQ(v Type) predicate.RunJournal
TypeNEQ applies the NEQ predicate on the "type" field.
func TypeNotIn ¶
func TypeNotIn(vs ...Type) predicate.RunJournal
TypeNotIn applies the NotIn predicate on the "type" field.
func TypeValidator ¶
TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.
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 RunJournal queries.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByPayload ¶
func ByPayload(opts ...sql.OrderTermOption) OrderOption
ByPayload orders the results by the payload field.
func ByRunID ¶
func ByRunID(opts ...sql.OrderTermOption) OrderOption
ByRunID orders the results by the run_id field.
func BySeq ¶
func BySeq(opts ...sql.OrderTermOption) OrderOption
BySeq orders the results by the seq field.
func ByTimestamp ¶
func ByTimestamp(opts ...sql.OrderTermOption) OrderOption
ByTimestamp orders the results by the timestamp field.
func ByType ¶
func ByType(opts ...sql.OrderTermOption) OrderOption
ByType orders the results by the type field.
type Type ¶
type Type string
Type defines the type for the "type" enum field.
const ( TypeRunCreated Type = "run_created" TypePlanAttached Type = "plan_attached" TypeStepStarted Type = "step_started" TypeStepResultProposed Type = "step_result_proposed" TypeStepValidationPassed Type = "step_validation_passed" TypeStepValidationFailed Type = "step_validation_failed" TypePolicyDecisionApplied Type = "policy_decision_applied" TypeNoteWritten Type = "note_written" TypeRunPaused Type = "run_paused" TypeRunResumed Type = "run_resumed" TypeRunCompleted Type = "run_completed" TypeRunFailed Type = "run_failed" TypeProjectionSynced Type = "projection_synced" TypeCriterionMet Type = "criterion_met" )
Type values.