Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Scheduler) predicate.Scheduler
- func CreatedAt(v time.Time) predicate.Scheduler
- func CreatedAtEQ(v time.Time) predicate.Scheduler
- func CreatedAtGT(v time.Time) predicate.Scheduler
- func CreatedAtGTE(v time.Time) predicate.Scheduler
- func CreatedAtIn(vs ...time.Time) predicate.Scheduler
- func CreatedAtLT(v time.Time) predicate.Scheduler
- func CreatedAtLTE(v time.Time) predicate.Scheduler
- func CreatedAtNEQ(v time.Time) predicate.Scheduler
- func CreatedAtNotIn(vs ...time.Time) predicate.Scheduler
- func HasGenerationModels() predicate.Scheduler
- func HasGenerationModelsWith(preds ...predicate.GenerationModel) predicate.Scheduler
- func HasGenerations() predicate.Scheduler
- func HasGenerationsWith(preds ...predicate.Generation) predicate.Scheduler
- func ID(id uuid.UUID) predicate.Scheduler
- func IDEQ(id uuid.UUID) predicate.Scheduler
- func IDGT(id uuid.UUID) predicate.Scheduler
- func IDGTE(id uuid.UUID) predicate.Scheduler
- func IDIn(ids ...uuid.UUID) predicate.Scheduler
- func IDLT(id uuid.UUID) predicate.Scheduler
- func IDLTE(id uuid.UUID) predicate.Scheduler
- func IDNEQ(id uuid.UUID) predicate.Scheduler
- func IDNotIn(ids ...uuid.UUID) predicate.Scheduler
- func IsActive(v bool) predicate.Scheduler
- func IsActiveEQ(v bool) predicate.Scheduler
- func IsActiveNEQ(v bool) predicate.Scheduler
- func IsDefault(v bool) predicate.Scheduler
- func IsDefaultEQ(v bool) predicate.Scheduler
- func IsDefaultNEQ(v bool) predicate.Scheduler
- func IsHidden(v bool) predicate.Scheduler
- func IsHiddenEQ(v bool) predicate.Scheduler
- func IsHiddenNEQ(v bool) predicate.Scheduler
- func NameInWorker(v string) predicate.Scheduler
- func NameInWorkerContains(v string) predicate.Scheduler
- func NameInWorkerContainsFold(v string) predicate.Scheduler
- func NameInWorkerEQ(v string) predicate.Scheduler
- func NameInWorkerEqualFold(v string) predicate.Scheduler
- func NameInWorkerGT(v string) predicate.Scheduler
- func NameInWorkerGTE(v string) predicate.Scheduler
- func NameInWorkerHasPrefix(v string) predicate.Scheduler
- func NameInWorkerHasSuffix(v string) predicate.Scheduler
- func NameInWorkerIn(vs ...string) predicate.Scheduler
- func NameInWorkerLT(v string) predicate.Scheduler
- func NameInWorkerLTE(v string) predicate.Scheduler
- func NameInWorkerNEQ(v string) predicate.Scheduler
- func NameInWorkerNotIn(vs ...string) predicate.Scheduler
- func Not(p predicate.Scheduler) predicate.Scheduler
- func Or(predicates ...predicate.Scheduler) predicate.Scheduler
- func UpdatedAt(v time.Time) predicate.Scheduler
- func UpdatedAtEQ(v time.Time) predicate.Scheduler
- func UpdatedAtGT(v time.Time) predicate.Scheduler
- func UpdatedAtGTE(v time.Time) predicate.Scheduler
- func UpdatedAtIn(vs ...time.Time) predicate.Scheduler
- func UpdatedAtLT(v time.Time) predicate.Scheduler
- func UpdatedAtLTE(v time.Time) predicate.Scheduler
- func UpdatedAtNEQ(v time.Time) predicate.Scheduler
- func UpdatedAtNotIn(vs ...time.Time) predicate.Scheduler
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByGenerationModels(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByGenerationModelsCount(opts ...sql.OrderTermOption) OrderOption
- func ByGenerations(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByGenerationsCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIsActive(opts ...sql.OrderTermOption) OrderOption
- func ByIsDefault(opts ...sql.OrderTermOption) OrderOption
- func ByIsHidden(opts ...sql.OrderTermOption) OrderOption
- func ByNameInWorker(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the scheduler type in the database. Label = "scheduler" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldNameInWorker holds the string denoting the name_in_worker field in the database. FieldNameInWorker = "name_in_worker" // FieldIsActive holds the string denoting the is_active field in the database. FieldIsActive = "is_active" // FieldIsDefault holds the string denoting the is_default field in the database. FieldIsDefault = "is_default" // FieldIsHidden holds the string denoting the is_hidden field in the database. FieldIsHidden = "is_hidden" // 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" // EdgeGenerations holds the string denoting the generations edge name in mutations. EdgeGenerations = "generations" // EdgeGenerationModels holds the string denoting the generation_models edge name in mutations. EdgeGenerationModels = "generation_models" // Table holds the table name of the scheduler in the database. Table = "schedulers" // GenerationsTable is the table that holds the generations relation/edge. GenerationsTable = "generations" // GenerationsInverseTable is the table name for the Generation entity. // It exists in this package in order to avoid circular dependency with the "generation" package. GenerationsInverseTable = "generations" // GenerationsColumn is the table column denoting the generations relation/edge. GenerationsColumn = "scheduler_id" // GenerationModelsTable is the table that holds the generation_models relation/edge. The primary key declared below. GenerationModelsTable = "generation_model_compatible_schedulers" // GenerationModelsInverseTable is the table name for the GenerationModel entity. // It exists in this package in order to avoid circular dependency with the "generationmodel" package. GenerationModelsInverseTable = "generation_models" )
Variables ¶
var ( // DefaultIsActive holds the default value on creation for the "is_active" field. DefaultIsActive bool // DefaultIsDefault holds the default value on creation for the "is_default" field. DefaultIsDefault bool // DefaultIsHidden holds the default value on creation for the "is_hidden" field. DefaultIsHidden bool // 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 // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldNameInWorker, FieldIsActive, FieldIsDefault, FieldIsHidden, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for scheduler fields.
var ( // GenerationModelsPrimaryKey and GenerationModelsColumn2 are the table columns denoting the // primary key for the generation_models relation (M2M). GenerationModelsPrimaryKey = []string{"generation_model_id", "scheduler_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 HasGenerationModels ¶
HasGenerationModels applies the HasEdge predicate on the "generation_models" edge.
func HasGenerationModelsWith ¶
func HasGenerationModelsWith(preds ...predicate.GenerationModel) predicate.Scheduler
HasGenerationModelsWith applies the HasEdge predicate on the "generation_models" edge with a given conditions (other predicates).
func HasGenerations ¶
HasGenerations applies the HasEdge predicate on the "generations" edge.
func HasGenerationsWith ¶
func HasGenerationsWith(preds ...predicate.Generation) predicate.Scheduler
HasGenerationsWith applies the HasEdge predicate on the "generations" edge with a given conditions (other predicates).
func IsActive ¶
IsActive applies equality check predicate on the "is_active" field. It's identical to IsActiveEQ.
func IsActiveEQ ¶
IsActiveEQ applies the EQ predicate on the "is_active" field.
func IsActiveNEQ ¶
IsActiveNEQ applies the NEQ predicate on the "is_active" field.
func IsDefault ¶
IsDefault applies equality check predicate on the "is_default" field. It's identical to IsDefaultEQ.
func IsDefaultEQ ¶
IsDefaultEQ applies the EQ predicate on the "is_default" field.
func IsDefaultNEQ ¶
IsDefaultNEQ applies the NEQ predicate on the "is_default" field.
func IsHidden ¶
IsHidden applies equality check predicate on the "is_hidden" field. It's identical to IsHiddenEQ.
func IsHiddenEQ ¶
IsHiddenEQ applies the EQ predicate on the "is_hidden" field.
func IsHiddenNEQ ¶
IsHiddenNEQ applies the NEQ predicate on the "is_hidden" field.
func NameInWorker ¶
NameInWorker applies equality check predicate on the "name_in_worker" field. It's identical to NameInWorkerEQ.
func NameInWorkerContains ¶
NameInWorkerContains applies the Contains predicate on the "name_in_worker" field.
func NameInWorkerContainsFold ¶
NameInWorkerContainsFold applies the ContainsFold predicate on the "name_in_worker" field.
func NameInWorkerEQ ¶
NameInWorkerEQ applies the EQ predicate on the "name_in_worker" field.
func NameInWorkerEqualFold ¶
NameInWorkerEqualFold applies the EqualFold predicate on the "name_in_worker" field.
func NameInWorkerGT ¶
NameInWorkerGT applies the GT predicate on the "name_in_worker" field.
func NameInWorkerGTE ¶
NameInWorkerGTE applies the GTE predicate on the "name_in_worker" field.
func NameInWorkerHasPrefix ¶
NameInWorkerHasPrefix applies the HasPrefix predicate on the "name_in_worker" field.
func NameInWorkerHasSuffix ¶
NameInWorkerHasSuffix applies the HasSuffix predicate on the "name_in_worker" field.
func NameInWorkerIn ¶
NameInWorkerIn applies the In predicate on the "name_in_worker" field.
func NameInWorkerLT ¶
NameInWorkerLT applies the LT predicate on the "name_in_worker" field.
func NameInWorkerLTE ¶
NameInWorkerLTE applies the LTE predicate on the "name_in_worker" field.
func NameInWorkerNEQ ¶
NameInWorkerNEQ applies the NEQ predicate on the "name_in_worker" field.
func NameInWorkerNotIn ¶
NameInWorkerNotIn applies the NotIn predicate on the "name_in_worker" field.
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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Scheduler queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByGenerationModels ¶
func ByGenerationModels(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByGenerationModels orders the results by generation_models terms.
func ByGenerationModelsCount ¶
func ByGenerationModelsCount(opts ...sql.OrderTermOption) OrderOption
ByGenerationModelsCount orders the results by generation_models count.
func ByGenerations ¶
func ByGenerations(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByGenerations orders the results by generations terms.
func ByGenerationsCount ¶
func ByGenerationsCount(opts ...sql.OrderTermOption) OrderOption
ByGenerationsCount orders the results by generations count.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIsActive ¶
func ByIsActive(opts ...sql.OrderTermOption) OrderOption
ByIsActive orders the results by the is_active field.
func ByIsDefault ¶
func ByIsDefault(opts ...sql.OrderTermOption) OrderOption
ByIsDefault orders the results by the is_default field.
func ByIsHidden ¶
func ByIsHidden(opts ...sql.OrderTermOption) OrderOption
ByIsHidden orders the results by the is_hidden field.
func ByNameInWorker ¶
func ByNameInWorker(opts ...sql.OrderTermOption) OrderOption
ByNameInWorker orders the results by the name_in_worker field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.