Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Run) predicate.Run
- func End(v time.Time) predicate.Run
- func EndEQ(v time.Time) predicate.Run
- func EndGT(v time.Time) predicate.Run
- func EndGTE(v time.Time) predicate.Run
- func EndIn(vs ...time.Time) predicate.Run
- func EndIsNil() predicate.Run
- func EndLT(v time.Time) predicate.Run
- func EndLTE(v time.Time) predicate.Run
- func EndNEQ(v time.Time) predicate.Run
- func EndNotIn(vs ...time.Time) predicate.Run
- func EndNotNil() predicate.Run
- func ID(id uuid.UUID) predicate.Run
- func IDEQ(id uuid.UUID) predicate.Run
- func IDGT(id uuid.UUID) predicate.Run
- func IDGTE(id uuid.UUID) predicate.Run
- func IDIn(ids ...uuid.UUID) predicate.Run
- func IDLT(id uuid.UUID) predicate.Run
- func IDLTE(id uuid.UUID) predicate.Run
- func IDNEQ(id uuid.UUID) predicate.Run
- func IDNotIn(ids ...uuid.UUID) predicate.Run
- func Job(v string) predicate.Run
- func JobContains(v string) predicate.Run
- func JobContainsFold(v string) predicate.Run
- func JobEQ(v string) predicate.Run
- func JobEqualFold(v string) predicate.Run
- func JobGT(v string) predicate.Run
- func JobGTE(v string) predicate.Run
- func JobHasPrefix(v string) predicate.Run
- func JobHasSuffix(v string) predicate.Run
- func JobIn(vs ...string) predicate.Run
- func JobLT(v string) predicate.Run
- func JobLTE(v string) predicate.Run
- func JobNEQ(v string) predicate.Run
- func JobNotIn(vs ...string) predicate.Run
- func Log(v string) predicate.Run
- func LogContains(v string) predicate.Run
- func LogContainsFold(v string) predicate.Run
- func LogEQ(v string) predicate.Run
- func LogEqualFold(v string) predicate.Run
- func LogGT(v string) predicate.Run
- func LogGTE(v string) predicate.Run
- func LogHasPrefix(v string) predicate.Run
- func LogHasSuffix(v string) predicate.Run
- func LogIn(vs ...string) predicate.Run
- func LogIsNil() predicate.Run
- func LogLT(v string) predicate.Run
- func LogLTE(v string) predicate.Run
- func LogNEQ(v string) predicate.Run
- func LogNotIn(vs ...string) predicate.Run
- func LogNotNil() predicate.Run
- func Not(p predicate.Run) predicate.Run
- func Or(predicates ...predicate.Run) predicate.Run
- func Start(v time.Time) predicate.Run
- func StartEQ(v time.Time) predicate.Run
- func StartGT(v time.Time) predicate.Run
- func StartGTE(v time.Time) predicate.Run
- func StartIn(vs ...time.Time) predicate.Run
- func StartIsNil() predicate.Run
- func StartLT(v time.Time) predicate.Run
- func StartLTE(v time.Time) predicate.Run
- func StartNEQ(v time.Time) predicate.Run
- func StartNotIn(vs ...time.Time) predicate.Run
- func StartNotNil() predicate.Run
- func StatusEQ(v Status) predicate.Run
- func StatusIn(vs ...Status) predicate.Run
- func StatusNEQ(v Status) predicate.Run
- func StatusNotIn(vs ...Status) predicate.Run
- func StatusValidator(s Status) error
- func ValidColumn(column string) bool
- type OrderOption
- func ByEnd(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByJob(opts ...sql.OrderTermOption) OrderOption
- func ByLog(opts ...sql.OrderTermOption) OrderOption
- func ByStart(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- type Status
Constants ¶
const ( // Label holds the string label denoting the run type in the database. Label = "run" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldJob holds the string denoting the job field in the database. FieldJob = "job" // FieldStart holds the string denoting the start field in the database. FieldStart = "start" // FieldEnd holds the string denoting the end field in the database. FieldEnd = "end" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldLog holds the string denoting the log field in the database. FieldLog = "log" // Table holds the table name of the run in the database. Table = "runs" )
Variables ¶
var Columns = []string{ FieldID, FieldJob, FieldStart, FieldEnd, FieldStatus, FieldLog, }
Columns holds all SQL columns for run fields.
var ( // DefaultStart holds the default value on creation for the "start" field. DefaultStart func() time.Time )
Functions ¶
func JobContains ¶
JobContains applies the Contains predicate on the "job" field.
func JobContainsFold ¶
JobContainsFold applies the ContainsFold predicate on the "job" field.
func JobEqualFold ¶
JobEqualFold applies the EqualFold predicate on the "job" field.
func JobHasPrefix ¶
JobHasPrefix applies the HasPrefix predicate on the "job" field.
func JobHasSuffix ¶
JobHasSuffix applies the HasSuffix predicate on the "job" field.
func LogContains ¶
LogContains applies the Contains predicate on the "log" field.
func LogContainsFold ¶
LogContainsFold applies the ContainsFold predicate on the "log" field.
func LogEqualFold ¶
LogEqualFold applies the EqualFold predicate on the "log" field.
func LogHasPrefix ¶
LogHasPrefix applies the HasPrefix predicate on the "log" field.
func LogHasSuffix ¶
LogHasSuffix applies the HasSuffix predicate on the "log" field.
func Start ¶
Start applies equality check predicate on the "start" field. It's identical to StartEQ.
func StartIsNil ¶
StartIsNil applies the IsNil predicate on the "start" field.
func StartNotIn ¶
StartNotIn applies the NotIn predicate on the "start" field.
func StartNotNil ¶
StartNotNil applies the NotNil predicate on the "start" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusValidator ¶
StatusValidator is a validator for the "status" 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 Run queries.
func ByEnd ¶
func ByEnd(opts ...sql.OrderTermOption) OrderOption
ByEnd orders the results by the end field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByJob ¶
func ByJob(opts ...sql.OrderTermOption) OrderOption
ByJob orders the results by the job field.
func ByLog ¶
func ByLog(opts ...sql.OrderTermOption) OrderOption
ByLog orders the results by the log field.
func ByStart ¶
func ByStart(opts ...sql.OrderTermOption) OrderOption
ByStart orders the results by the start field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status field.