Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.TemplateVersion) predicate.TemplateVersion
- func CreateTime(v time.Time) predicate.TemplateVersion
- func CreateTimeEQ(v time.Time) predicate.TemplateVersion
- func CreateTimeGT(v time.Time) predicate.TemplateVersion
- func CreateTimeGTE(v time.Time) predicate.TemplateVersion
- func CreateTimeIn(vs ...time.Time) predicate.TemplateVersion
- func CreateTimeLT(v time.Time) predicate.TemplateVersion
- func CreateTimeLTE(v time.Time) predicate.TemplateVersion
- func CreateTimeNEQ(v time.Time) predicate.TemplateVersion
- func CreateTimeNotIn(vs ...time.Time) predicate.TemplateVersion
- func HasProject() predicate.TemplateVersion
- func HasProjectWith(preds ...predicate.Project) predicate.TemplateVersion
- func HasResourceDefinitions() predicate.TemplateVersion
- func HasResourceDefinitionsWith(preds ...predicate.ResourceDefinitionMatchingRule) predicate.TemplateVersion
- func HasResources() predicate.TemplateVersion
- func HasResourcesWith(preds ...predicate.Resource) predicate.TemplateVersion
- func HasTemplate() predicate.TemplateVersion
- func HasTemplateWith(preds ...predicate.Template) predicate.TemplateVersion
- func ID(id object.ID) predicate.TemplateVersion
- func IDEQ(id object.ID) predicate.TemplateVersion
- func IDGT(id object.ID) predicate.TemplateVersion
- func IDGTE(id object.ID) predicate.TemplateVersion
- func IDIn(ids ...object.ID) predicate.TemplateVersion
- func IDLT(id object.ID) predicate.TemplateVersion
- func IDLTE(id object.ID) predicate.TemplateVersion
- func IDNEQ(id object.ID) predicate.TemplateVersion
- func IDNotIn(ids ...object.ID) predicate.TemplateVersion
- func Name(v string) predicate.TemplateVersion
- func NameContains(v string) predicate.TemplateVersion
- func NameContainsFold(v string) predicate.TemplateVersion
- func NameEQ(v string) predicate.TemplateVersion
- func NameEqualFold(v string) predicate.TemplateVersion
- func NameGT(v string) predicate.TemplateVersion
- func NameGTE(v string) predicate.TemplateVersion
- func NameHasPrefix(v string) predicate.TemplateVersion
- func NameHasSuffix(v string) predicate.TemplateVersion
- func NameIn(vs ...string) predicate.TemplateVersion
- func NameLT(v string) predicate.TemplateVersion
- func NameLTE(v string) predicate.TemplateVersion
- func NameNEQ(v string) predicate.TemplateVersion
- func NameNotIn(vs ...string) predicate.TemplateVersion
- func Not(p predicate.TemplateVersion) predicate.TemplateVersion
- func Or(predicates ...predicate.TemplateVersion) predicate.TemplateVersion
- func ProjectID(v object.ID) predicate.TemplateVersion
- func ProjectIDContains(v object.ID) predicate.TemplateVersion
- func ProjectIDContainsFold(v object.ID) predicate.TemplateVersion
- func ProjectIDEQ(v object.ID) predicate.TemplateVersion
- func ProjectIDEqualFold(v object.ID) predicate.TemplateVersion
- func ProjectIDGT(v object.ID) predicate.TemplateVersion
- func ProjectIDGTE(v object.ID) predicate.TemplateVersion
- func ProjectIDHasPrefix(v object.ID) predicate.TemplateVersion
- func ProjectIDHasSuffix(v object.ID) predicate.TemplateVersion
- func ProjectIDIn(vs ...object.ID) predicate.TemplateVersion
- func ProjectIDIsNil() predicate.TemplateVersion
- func ProjectIDLT(v object.ID) predicate.TemplateVersion
- func ProjectIDLTE(v object.ID) predicate.TemplateVersion
- func ProjectIDNEQ(v object.ID) predicate.TemplateVersion
- func ProjectIDNotIn(vs ...object.ID) predicate.TemplateVersion
- func ProjectIDNotNil() predicate.TemplateVersion
- func SchemaDefaultValue(v []byte) predicate.TemplateVersion
- func SchemaDefaultValueEQ(v []byte) predicate.TemplateVersion
- func SchemaDefaultValueGT(v []byte) predicate.TemplateVersion
- func SchemaDefaultValueGTE(v []byte) predicate.TemplateVersion
- func SchemaDefaultValueIn(vs ...[]byte) predicate.TemplateVersion
- func SchemaDefaultValueIsNil() predicate.TemplateVersion
- func SchemaDefaultValueLT(v []byte) predicate.TemplateVersion
- func SchemaDefaultValueLTE(v []byte) predicate.TemplateVersion
- func SchemaDefaultValueNEQ(v []byte) predicate.TemplateVersion
- func SchemaDefaultValueNotIn(vs ...[]byte) predicate.TemplateVersion
- func SchemaDefaultValueNotNil() predicate.TemplateVersion
- func Source(v string) predicate.TemplateVersion
- func SourceContains(v string) predicate.TemplateVersion
- func SourceContainsFold(v string) predicate.TemplateVersion
- func SourceEQ(v string) predicate.TemplateVersion
- func SourceEqualFold(v string) predicate.TemplateVersion
- func SourceGT(v string) predicate.TemplateVersion
- func SourceGTE(v string) predicate.TemplateVersion
- func SourceHasPrefix(v string) predicate.TemplateVersion
- func SourceHasSuffix(v string) predicate.TemplateVersion
- func SourceIn(vs ...string) predicate.TemplateVersion
- func SourceLT(v string) predicate.TemplateVersion
- func SourceLTE(v string) predicate.TemplateVersion
- func SourceNEQ(v string) predicate.TemplateVersion
- func SourceNotIn(vs ...string) predicate.TemplateVersion
- func TemplateID(v object.ID) predicate.TemplateVersion
- func TemplateIDContains(v object.ID) predicate.TemplateVersion
- func TemplateIDContainsFold(v object.ID) predicate.TemplateVersion
- func TemplateIDEQ(v object.ID) predicate.TemplateVersion
- func TemplateIDEqualFold(v object.ID) predicate.TemplateVersion
- func TemplateIDGT(v object.ID) predicate.TemplateVersion
- func TemplateIDGTE(v object.ID) predicate.TemplateVersion
- func TemplateIDHasPrefix(v object.ID) predicate.TemplateVersion
- func TemplateIDHasSuffix(v object.ID) predicate.TemplateVersion
- func TemplateIDIn(vs ...object.ID) predicate.TemplateVersion
- func TemplateIDLT(v object.ID) predicate.TemplateVersion
- func TemplateIDLTE(v object.ID) predicate.TemplateVersion
- func TemplateIDNEQ(v object.ID) predicate.TemplateVersion
- func TemplateIDNotIn(vs ...object.ID) predicate.TemplateVersion
- func UpdateTime(v time.Time) predicate.TemplateVersion
- func UpdateTimeEQ(v time.Time) predicate.TemplateVersion
- func UpdateTimeGT(v time.Time) predicate.TemplateVersion
- func UpdateTimeGTE(v time.Time) predicate.TemplateVersion
- func UpdateTimeIn(vs ...time.Time) predicate.TemplateVersion
- func UpdateTimeLT(v time.Time) predicate.TemplateVersion
- func UpdateTimeLTE(v time.Time) predicate.TemplateVersion
- func UpdateTimeNEQ(v time.Time) predicate.TemplateVersion
- func UpdateTimeNotIn(vs ...time.Time) predicate.TemplateVersion
- func ValidColumn(column string) bool
- func Version(v string) predicate.TemplateVersion
- func VersionContains(v string) predicate.TemplateVersion
- func VersionContainsFold(v string) predicate.TemplateVersion
- func VersionEQ(v string) predicate.TemplateVersion
- func VersionEqualFold(v string) predicate.TemplateVersion
- func VersionGT(v string) predicate.TemplateVersion
- func VersionGTE(v string) predicate.TemplateVersion
- func VersionHasPrefix(v string) predicate.TemplateVersion
- func VersionHasSuffix(v string) predicate.TemplateVersion
- func VersionIn(vs ...string) predicate.TemplateVersion
- func VersionLT(v string) predicate.TemplateVersion
- func VersionLTE(v string) predicate.TemplateVersion
- func VersionNEQ(v string) predicate.TemplateVersion
- func VersionNotIn(vs ...string) predicate.TemplateVersion
- func WithoutFields(ignores ...string) []string
- type OrderOption
- func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByProjectField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByProjectID(opts ...sql.OrderTermOption) OrderOption
- func ByResourceDefinitions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByResourceDefinitionsCount(opts ...sql.OrderTermOption) OrderOption
- func ByResources(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByResourcesCount(opts ...sql.OrderTermOption) OrderOption
- func BySource(opts ...sql.OrderTermOption) OrderOption
- func ByTemplateField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByTemplateID(opts ...sql.OrderTermOption) OrderOption
- func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
- func ByVersion(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the templateversion type in the database. Label = "template_version" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // FieldUpdateTime holds the string denoting the update_time field in the database. FieldUpdateTime = "update_time" // FieldTemplateID holds the string denoting the template_id field in the database. FieldTemplateID = "template_id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldVersion holds the string denoting the version field in the database. FieldVersion = "version" // FieldSource holds the string denoting the source field in the database. FieldSource = "source" // FieldSchema holds the string denoting the schema field in the database. FieldSchema = "schema" // FieldUiSchema holds the string denoting the uischema field in the database. FieldUiSchema = "ui_schema" // FieldSchemaDefaultValue holds the string denoting the schema_default_value field in the database. FieldSchemaDefaultValue = "schema_default_value" // FieldProjectID holds the string denoting the project_id field in the database. FieldProjectID = "project_id" // EdgeTemplate holds the string denoting the template edge name in mutations. EdgeTemplate = "template" // EdgeResources holds the string denoting the resources edge name in mutations. EdgeResources = "resources" // EdgeResourceDefinitions holds the string denoting the resource_definitions edge name in mutations. EdgeResourceDefinitions = "resource_definitions" // EdgeProject holds the string denoting the project edge name in mutations. EdgeProject = "project" // Table holds the table name of the templateversion in the database. Table = "template_versions" // TemplateTable is the table that holds the template relation/edge. TemplateTable = "template_versions" // TemplateInverseTable is the table name for the Template entity. // It exists in this package in order to avoid circular dependency with the "template" package. TemplateInverseTable = "templates" // TemplateColumn is the table column denoting the template relation/edge. TemplateColumn = "template_id" // ResourcesTable is the table that holds the resources relation/edge. ResourcesTable = "resources" // ResourcesInverseTable is the table name for the Resource entity. // It exists in this package in order to avoid circular dependency with the "resource" package. ResourcesInverseTable = "resources" // ResourcesColumn is the table column denoting the resources relation/edge. ResourcesColumn = "template_id" // ResourceDefinitionsTable is the table that holds the resource_definitions relation/edge. ResourceDefinitionsTable = "resource_definition_matching_rules" // ResourceDefinitionsInverseTable is the table name for the ResourceDefinitionMatchingRule entity. // It exists in this package in order to avoid circular dependency with the "resourcedefinitionmatchingrule" package. ResourceDefinitionsInverseTable = "resource_definition_matching_rules" // ResourceDefinitionsColumn is the table column denoting the resource_definitions relation/edge. ResourceDefinitionsColumn = "template_id" // ProjectTable is the table that holds the project relation/edge. ProjectTable = "template_versions" // ProjectInverseTable is the table name for the Project entity. // It exists in this package in order to avoid circular dependency with the "project" package. ProjectInverseTable = "projects" // ProjectColumn is the table column denoting the project relation/edge. ProjectColumn = "project_id" )
Variables ¶
var ( Hooks [1]ent.Hook Interceptors [1]ent.Interceptor // DefaultCreateTime holds the default value on creation for the "create_time" field. DefaultCreateTime func() time.Time // DefaultUpdateTime holds the default value on creation for the "update_time" field. DefaultUpdateTime func() time.Time // UpdateDefaultUpdateTime holds the default value on update for the "update_time" field. UpdateDefaultUpdateTime func() time.Time // TemplateIDValidator is a validator for the "template_id" field. It is called by the builders before save. TemplateIDValidator func(string) error // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // VersionValidator is a validator for the "version" field. It is called by the builders before save. VersionValidator func(string) error // SourceValidator is a validator for the "source" field. It is called by the builders before save. SourceValidator func(string) error // DefaultSchema holds the default value on creation for the "schema" field. DefaultSchema types.TemplateVersionSchema // DefaultUiSchema holds the default value on creation for the "uiSchema" field. DefaultUiSchema types.UISchema )
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/seal-io/walrus/pkg/dao/model/runtime"
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldTemplateID, FieldName, FieldVersion, FieldSource, FieldSchema, FieldUiSchema, FieldSchemaDefaultValue, FieldProjectID, }
Columns holds all SQL columns for templateversion fields.
Functions ¶
func And ¶
func And(predicates ...predicate.TemplateVersion) predicate.TemplateVersion
And groups predicates with the AND operator between them.
func CreateTime ¶
func CreateTime(v time.Time) predicate.TemplateVersion
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
func CreateTimeEQ(v time.Time) predicate.TemplateVersion
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
func CreateTimeGT(v time.Time) predicate.TemplateVersion
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
func CreateTimeGTE(v time.Time) predicate.TemplateVersion
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
func CreateTimeIn(vs ...time.Time) predicate.TemplateVersion
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
func CreateTimeLT(v time.Time) predicate.TemplateVersion
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
func CreateTimeLTE(v time.Time) predicate.TemplateVersion
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
func CreateTimeNEQ(v time.Time) predicate.TemplateVersion
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
func CreateTimeNotIn(vs ...time.Time) predicate.TemplateVersion
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func HasProject ¶ added in v0.4.0
func HasProject() predicate.TemplateVersion
HasProject applies the HasEdge predicate on the "project" edge.
func HasProjectWith ¶ added in v0.4.0
func HasProjectWith(preds ...predicate.Project) predicate.TemplateVersion
HasProjectWith applies the HasEdge predicate on the "project" edge with a given conditions (other predicates).
func HasResourceDefinitions ¶ added in v0.4.0
func HasResourceDefinitions() predicate.TemplateVersion
HasResourceDefinitions applies the HasEdge predicate on the "resource_definitions" edge.
func HasResourceDefinitionsWith ¶ added in v0.4.0
func HasResourceDefinitionsWith(preds ...predicate.ResourceDefinitionMatchingRule) predicate.TemplateVersion
HasResourceDefinitionsWith applies the HasEdge predicate on the "resource_definitions" edge with a given conditions (other predicates).
func HasResources ¶ added in v0.4.0
func HasResources() predicate.TemplateVersion
HasResources applies the HasEdge predicate on the "resources" edge.
func HasResourcesWith ¶ added in v0.4.0
func HasResourcesWith(preds ...predicate.Resource) predicate.TemplateVersion
HasResourcesWith applies the HasEdge predicate on the "resources" edge with a given conditions (other predicates).
func HasTemplate ¶
func HasTemplate() predicate.TemplateVersion
HasTemplate applies the HasEdge predicate on the "template" edge.
func HasTemplateWith ¶
func HasTemplateWith(preds ...predicate.Template) predicate.TemplateVersion
HasTemplateWith applies the HasEdge predicate on the "template" edge with a given conditions (other predicates).
func ID ¶
func ID(id object.ID) predicate.TemplateVersion
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id object.ID) predicate.TemplateVersion
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id object.ID) predicate.TemplateVersion
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id object.ID) predicate.TemplateVersion
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...object.ID) predicate.TemplateVersion
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id object.ID) predicate.TemplateVersion
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id object.ID) predicate.TemplateVersion
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id object.ID) predicate.TemplateVersion
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...object.ID) predicate.TemplateVersion
IDNotIn applies the NotIn predicate on the ID field.
func Name ¶
func Name(v string) predicate.TemplateVersion
Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func NameContains ¶
func NameContains(v string) predicate.TemplateVersion
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
func NameContainsFold(v string) predicate.TemplateVersion
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEQ ¶
func NameEQ(v string) predicate.TemplateVersion
NameEQ applies the EQ predicate on the "name" field.
func NameEqualFold ¶
func NameEqualFold(v string) predicate.TemplateVersion
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameGT ¶
func NameGT(v string) predicate.TemplateVersion
NameGT applies the GT predicate on the "name" field.
func NameGTE ¶
func NameGTE(v string) predicate.TemplateVersion
NameGTE applies the GTE predicate on the "name" field.
func NameHasPrefix ¶
func NameHasPrefix(v string) predicate.TemplateVersion
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
func NameHasSuffix(v string) predicate.TemplateVersion
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameIn ¶
func NameIn(vs ...string) predicate.TemplateVersion
NameIn applies the In predicate on the "name" field.
func NameLT ¶
func NameLT(v string) predicate.TemplateVersion
NameLT applies the LT predicate on the "name" field.
func NameLTE ¶
func NameLTE(v string) predicate.TemplateVersion
NameLTE applies the LTE predicate on the "name" field.
func NameNEQ ¶
func NameNEQ(v string) predicate.TemplateVersion
NameNEQ applies the NEQ predicate on the "name" field.
func NameNotIn ¶
func NameNotIn(vs ...string) predicate.TemplateVersion
NameNotIn applies the NotIn predicate on the "name" field.
func Not ¶
func Not(p predicate.TemplateVersion) predicate.TemplateVersion
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.TemplateVersion) predicate.TemplateVersion
Or groups predicates with the OR operator between them.
func ProjectID ¶ added in v0.4.0
func ProjectID(v object.ID) predicate.TemplateVersion
ProjectID applies equality check predicate on the "project_id" field. It's identical to ProjectIDEQ.
func ProjectIDContains ¶ added in v0.4.0
func ProjectIDContains(v object.ID) predicate.TemplateVersion
ProjectIDContains applies the Contains predicate on the "project_id" field.
func ProjectIDContainsFold ¶ added in v0.4.0
func ProjectIDContainsFold(v object.ID) predicate.TemplateVersion
ProjectIDContainsFold applies the ContainsFold predicate on the "project_id" field.
func ProjectIDEQ ¶ added in v0.4.0
func ProjectIDEQ(v object.ID) predicate.TemplateVersion
ProjectIDEQ applies the EQ predicate on the "project_id" field.
func ProjectIDEqualFold ¶ added in v0.4.0
func ProjectIDEqualFold(v object.ID) predicate.TemplateVersion
ProjectIDEqualFold applies the EqualFold predicate on the "project_id" field.
func ProjectIDGT ¶ added in v0.4.0
func ProjectIDGT(v object.ID) predicate.TemplateVersion
ProjectIDGT applies the GT predicate on the "project_id" field.
func ProjectIDGTE ¶ added in v0.4.0
func ProjectIDGTE(v object.ID) predicate.TemplateVersion
ProjectIDGTE applies the GTE predicate on the "project_id" field.
func ProjectIDHasPrefix ¶ added in v0.4.0
func ProjectIDHasPrefix(v object.ID) predicate.TemplateVersion
ProjectIDHasPrefix applies the HasPrefix predicate on the "project_id" field.
func ProjectIDHasSuffix ¶ added in v0.4.0
func ProjectIDHasSuffix(v object.ID) predicate.TemplateVersion
ProjectIDHasSuffix applies the HasSuffix predicate on the "project_id" field.
func ProjectIDIn ¶ added in v0.4.0
func ProjectIDIn(vs ...object.ID) predicate.TemplateVersion
ProjectIDIn applies the In predicate on the "project_id" field.
func ProjectIDIsNil ¶ added in v0.4.0
func ProjectIDIsNil() predicate.TemplateVersion
ProjectIDIsNil applies the IsNil predicate on the "project_id" field.
func ProjectIDLT ¶ added in v0.4.0
func ProjectIDLT(v object.ID) predicate.TemplateVersion
ProjectIDLT applies the LT predicate on the "project_id" field.
func ProjectIDLTE ¶ added in v0.4.0
func ProjectIDLTE(v object.ID) predicate.TemplateVersion
ProjectIDLTE applies the LTE predicate on the "project_id" field.
func ProjectIDNEQ ¶ added in v0.4.0
func ProjectIDNEQ(v object.ID) predicate.TemplateVersion
ProjectIDNEQ applies the NEQ predicate on the "project_id" field.
func ProjectIDNotIn ¶ added in v0.4.0
func ProjectIDNotIn(vs ...object.ID) predicate.TemplateVersion
ProjectIDNotIn applies the NotIn predicate on the "project_id" field.
func ProjectIDNotNil ¶ added in v0.4.0
func ProjectIDNotNil() predicate.TemplateVersion
ProjectIDNotNil applies the NotNil predicate on the "project_id" field.
func SchemaDefaultValue ¶ added in v0.5.0
func SchemaDefaultValue(v []byte) predicate.TemplateVersion
SchemaDefaultValue applies equality check predicate on the "schema_default_value" field. It's identical to SchemaDefaultValueEQ.
func SchemaDefaultValueEQ ¶ added in v0.5.0
func SchemaDefaultValueEQ(v []byte) predicate.TemplateVersion
SchemaDefaultValueEQ applies the EQ predicate on the "schema_default_value" field.
func SchemaDefaultValueGT ¶ added in v0.5.0
func SchemaDefaultValueGT(v []byte) predicate.TemplateVersion
SchemaDefaultValueGT applies the GT predicate on the "schema_default_value" field.
func SchemaDefaultValueGTE ¶ added in v0.5.0
func SchemaDefaultValueGTE(v []byte) predicate.TemplateVersion
SchemaDefaultValueGTE applies the GTE predicate on the "schema_default_value" field.
func SchemaDefaultValueIn ¶ added in v0.5.0
func SchemaDefaultValueIn(vs ...[]byte) predicate.TemplateVersion
SchemaDefaultValueIn applies the In predicate on the "schema_default_value" field.
func SchemaDefaultValueIsNil ¶ added in v0.5.0
func SchemaDefaultValueIsNil() predicate.TemplateVersion
SchemaDefaultValueIsNil applies the IsNil predicate on the "schema_default_value" field.
func SchemaDefaultValueLT ¶ added in v0.5.0
func SchemaDefaultValueLT(v []byte) predicate.TemplateVersion
SchemaDefaultValueLT applies the LT predicate on the "schema_default_value" field.
func SchemaDefaultValueLTE ¶ added in v0.5.0
func SchemaDefaultValueLTE(v []byte) predicate.TemplateVersion
SchemaDefaultValueLTE applies the LTE predicate on the "schema_default_value" field.
func SchemaDefaultValueNEQ ¶ added in v0.5.0
func SchemaDefaultValueNEQ(v []byte) predicate.TemplateVersion
SchemaDefaultValueNEQ applies the NEQ predicate on the "schema_default_value" field.
func SchemaDefaultValueNotIn ¶ added in v0.5.0
func SchemaDefaultValueNotIn(vs ...[]byte) predicate.TemplateVersion
SchemaDefaultValueNotIn applies the NotIn predicate on the "schema_default_value" field.
func SchemaDefaultValueNotNil ¶ added in v0.5.0
func SchemaDefaultValueNotNil() predicate.TemplateVersion
SchemaDefaultValueNotNil applies the NotNil predicate on the "schema_default_value" field.
func Source ¶
func Source(v string) predicate.TemplateVersion
Source applies equality check predicate on the "source" field. It's identical to SourceEQ.
func SourceContains ¶
func SourceContains(v string) predicate.TemplateVersion
SourceContains applies the Contains predicate on the "source" field.
func SourceContainsFold ¶
func SourceContainsFold(v string) predicate.TemplateVersion
SourceContainsFold applies the ContainsFold predicate on the "source" field.
func SourceEQ ¶
func SourceEQ(v string) predicate.TemplateVersion
SourceEQ applies the EQ predicate on the "source" field.
func SourceEqualFold ¶
func SourceEqualFold(v string) predicate.TemplateVersion
SourceEqualFold applies the EqualFold predicate on the "source" field.
func SourceGT ¶
func SourceGT(v string) predicate.TemplateVersion
SourceGT applies the GT predicate on the "source" field.
func SourceGTE ¶
func SourceGTE(v string) predicate.TemplateVersion
SourceGTE applies the GTE predicate on the "source" field.
func SourceHasPrefix ¶
func SourceHasPrefix(v string) predicate.TemplateVersion
SourceHasPrefix applies the HasPrefix predicate on the "source" field.
func SourceHasSuffix ¶
func SourceHasSuffix(v string) predicate.TemplateVersion
SourceHasSuffix applies the HasSuffix predicate on the "source" field.
func SourceIn ¶
func SourceIn(vs ...string) predicate.TemplateVersion
SourceIn applies the In predicate on the "source" field.
func SourceLT ¶
func SourceLT(v string) predicate.TemplateVersion
SourceLT applies the LT predicate on the "source" field.
func SourceLTE ¶
func SourceLTE(v string) predicate.TemplateVersion
SourceLTE applies the LTE predicate on the "source" field.
func SourceNEQ ¶
func SourceNEQ(v string) predicate.TemplateVersion
SourceNEQ applies the NEQ predicate on the "source" field.
func SourceNotIn ¶
func SourceNotIn(vs ...string) predicate.TemplateVersion
SourceNotIn applies the NotIn predicate on the "source" field.
func TemplateID ¶
func TemplateID(v object.ID) predicate.TemplateVersion
TemplateID applies equality check predicate on the "template_id" field. It's identical to TemplateIDEQ.
func TemplateIDContains ¶
func TemplateIDContains(v object.ID) predicate.TemplateVersion
TemplateIDContains applies the Contains predicate on the "template_id" field.
func TemplateIDContainsFold ¶
func TemplateIDContainsFold(v object.ID) predicate.TemplateVersion
TemplateIDContainsFold applies the ContainsFold predicate on the "template_id" field.
func TemplateIDEQ ¶
func TemplateIDEQ(v object.ID) predicate.TemplateVersion
TemplateIDEQ applies the EQ predicate on the "template_id" field.
func TemplateIDEqualFold ¶
func TemplateIDEqualFold(v object.ID) predicate.TemplateVersion
TemplateIDEqualFold applies the EqualFold predicate on the "template_id" field.
func TemplateIDGT ¶
func TemplateIDGT(v object.ID) predicate.TemplateVersion
TemplateIDGT applies the GT predicate on the "template_id" field.
func TemplateIDGTE ¶
func TemplateIDGTE(v object.ID) predicate.TemplateVersion
TemplateIDGTE applies the GTE predicate on the "template_id" field.
func TemplateIDHasPrefix ¶
func TemplateIDHasPrefix(v object.ID) predicate.TemplateVersion
TemplateIDHasPrefix applies the HasPrefix predicate on the "template_id" field.
func TemplateIDHasSuffix ¶
func TemplateIDHasSuffix(v object.ID) predicate.TemplateVersion
TemplateIDHasSuffix applies the HasSuffix predicate on the "template_id" field.
func TemplateIDIn ¶
func TemplateIDIn(vs ...object.ID) predicate.TemplateVersion
TemplateIDIn applies the In predicate on the "template_id" field.
func TemplateIDLT ¶
func TemplateIDLT(v object.ID) predicate.TemplateVersion
TemplateIDLT applies the LT predicate on the "template_id" field.
func TemplateIDLTE ¶
func TemplateIDLTE(v object.ID) predicate.TemplateVersion
TemplateIDLTE applies the LTE predicate on the "template_id" field.
func TemplateIDNEQ ¶
func TemplateIDNEQ(v object.ID) predicate.TemplateVersion
TemplateIDNEQ applies the NEQ predicate on the "template_id" field.
func TemplateIDNotIn ¶
func TemplateIDNotIn(vs ...object.ID) predicate.TemplateVersion
TemplateIDNotIn applies the NotIn predicate on the "template_id" field.
func UpdateTime ¶
func UpdateTime(v time.Time) predicate.TemplateVersion
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
func UpdateTimeEQ(v time.Time) predicate.TemplateVersion
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
func UpdateTimeGT(v time.Time) predicate.TemplateVersion
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
func UpdateTimeGTE(v time.Time) predicate.TemplateVersion
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
func UpdateTimeIn(vs ...time.Time) predicate.TemplateVersion
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
func UpdateTimeLT(v time.Time) predicate.TemplateVersion
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
func UpdateTimeLTE(v time.Time) predicate.TemplateVersion
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
func UpdateTimeNEQ(v time.Time) predicate.TemplateVersion
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
func UpdateTimeNotIn(vs ...time.Time) predicate.TemplateVersion
UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Version ¶
func Version(v string) predicate.TemplateVersion
Version applies equality check predicate on the "version" field. It's identical to VersionEQ.
func VersionContains ¶
func VersionContains(v string) predicate.TemplateVersion
VersionContains applies the Contains predicate on the "version" field.
func VersionContainsFold ¶
func VersionContainsFold(v string) predicate.TemplateVersion
VersionContainsFold applies the ContainsFold predicate on the "version" field.
func VersionEQ ¶
func VersionEQ(v string) predicate.TemplateVersion
VersionEQ applies the EQ predicate on the "version" field.
func VersionEqualFold ¶
func VersionEqualFold(v string) predicate.TemplateVersion
VersionEqualFold applies the EqualFold predicate on the "version" field.
func VersionGT ¶
func VersionGT(v string) predicate.TemplateVersion
VersionGT applies the GT predicate on the "version" field.
func VersionGTE ¶
func VersionGTE(v string) predicate.TemplateVersion
VersionGTE applies the GTE predicate on the "version" field.
func VersionHasPrefix ¶
func VersionHasPrefix(v string) predicate.TemplateVersion
VersionHasPrefix applies the HasPrefix predicate on the "version" field.
func VersionHasSuffix ¶
func VersionHasSuffix(v string) predicate.TemplateVersion
VersionHasSuffix applies the HasSuffix predicate on the "version" field.
func VersionIn ¶
func VersionIn(vs ...string) predicate.TemplateVersion
VersionIn applies the In predicate on the "version" field.
func VersionLT ¶
func VersionLT(v string) predicate.TemplateVersion
VersionLT applies the LT predicate on the "version" field.
func VersionLTE ¶
func VersionLTE(v string) predicate.TemplateVersion
VersionLTE applies the LTE predicate on the "version" field.
func VersionNEQ ¶
func VersionNEQ(v string) predicate.TemplateVersion
VersionNEQ applies the NEQ predicate on the "version" field.
func VersionNotIn ¶
func VersionNotIn(vs ...string) predicate.TemplateVersion
VersionNotIn applies the NotIn predicate on the "version" field.
func WithoutFields ¶
WithoutFields returns the fields ignored the given list.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the TemplateVersion queries.
func ByCreateTime ¶
func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
ByCreateTime orders the results by the create_time field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByProjectField ¶ added in v0.4.0
func ByProjectField(field string, opts ...sql.OrderTermOption) OrderOption
ByProjectField orders the results by project field.
func ByProjectID ¶ added in v0.4.0
func ByProjectID(opts ...sql.OrderTermOption) OrderOption
ByProjectID orders the results by the project_id field.
func ByResourceDefinitions ¶ added in v0.4.0
func ByResourceDefinitions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByResourceDefinitions orders the results by resource_definitions terms.
func ByResourceDefinitionsCount ¶ added in v0.4.0
func ByResourceDefinitionsCount(opts ...sql.OrderTermOption) OrderOption
ByResourceDefinitionsCount orders the results by resource_definitions count.
func ByResources ¶ added in v0.4.0
func ByResources(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByResources orders the results by resources terms.
func ByResourcesCount ¶ added in v0.4.0
func ByResourcesCount(opts ...sql.OrderTermOption) OrderOption
ByResourcesCount orders the results by resources count.
func BySource ¶
func BySource(opts ...sql.OrderTermOption) OrderOption
BySource orders the results by the source field.
func ByTemplateField ¶
func ByTemplateField(field string, opts ...sql.OrderTermOption) OrderOption
ByTemplateField orders the results by template field.
func ByTemplateID ¶
func ByTemplateID(opts ...sql.OrderTermOption) OrderOption
ByTemplateID orders the results by the template_id field.
func ByUpdateTime ¶
func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
ByUpdateTime orders the results by the update_time field.
func ByVersion ¶
func ByVersion(opts ...sql.OrderTermOption) OrderOption
ByVersion orders the results by the version field.