Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Variable) predicate.Variable
- func CreateTime(v time.Time) predicate.Variable
- func CreateTimeEQ(v time.Time) predicate.Variable
- func CreateTimeGT(v time.Time) predicate.Variable
- func CreateTimeGTE(v time.Time) predicate.Variable
- func CreateTimeIn(vs ...time.Time) predicate.Variable
- func CreateTimeLT(v time.Time) predicate.Variable
- func CreateTimeLTE(v time.Time) predicate.Variable
- func CreateTimeNEQ(v time.Time) predicate.Variable
- func CreateTimeNotIn(vs ...time.Time) predicate.Variable
- func Description(v string) predicate.Variable
- func DescriptionContains(v string) predicate.Variable
- func DescriptionContainsFold(v string) predicate.Variable
- func DescriptionEQ(v string) predicate.Variable
- func DescriptionEqualFold(v string) predicate.Variable
- func DescriptionGT(v string) predicate.Variable
- func DescriptionGTE(v string) predicate.Variable
- func DescriptionHasPrefix(v string) predicate.Variable
- func DescriptionHasSuffix(v string) predicate.Variable
- func DescriptionIn(vs ...string) predicate.Variable
- func DescriptionIsNil() predicate.Variable
- func DescriptionLT(v string) predicate.Variable
- func DescriptionLTE(v string) predicate.Variable
- func DescriptionNEQ(v string) predicate.Variable
- func DescriptionNotIn(vs ...string) predicate.Variable
- func DescriptionNotNil() predicate.Variable
- func EnvironmentID(v object.ID) predicate.Variable
- func EnvironmentIDContains(v object.ID) predicate.Variable
- func EnvironmentIDContainsFold(v object.ID) predicate.Variable
- func EnvironmentIDEQ(v object.ID) predicate.Variable
- func EnvironmentIDEqualFold(v object.ID) predicate.Variable
- func EnvironmentIDGT(v object.ID) predicate.Variable
- func EnvironmentIDGTE(v object.ID) predicate.Variable
- func EnvironmentIDHasPrefix(v object.ID) predicate.Variable
- func EnvironmentIDHasSuffix(v object.ID) predicate.Variable
- func EnvironmentIDIn(vs ...object.ID) predicate.Variable
- func EnvironmentIDIsNil() predicate.Variable
- func EnvironmentIDLT(v object.ID) predicate.Variable
- func EnvironmentIDLTE(v object.ID) predicate.Variable
- func EnvironmentIDNEQ(v object.ID) predicate.Variable
- func EnvironmentIDNotIn(vs ...object.ID) predicate.Variable
- func EnvironmentIDNotNil() predicate.Variable
- func HasEnvironment() predicate.Variable
- func HasEnvironmentWith(preds ...predicate.Environment) predicate.Variable
- func HasProject() predicate.Variable
- func HasProjectWith(preds ...predicate.Project) predicate.Variable
- func ID(id object.ID) predicate.Variable
- func IDEQ(id object.ID) predicate.Variable
- func IDGT(id object.ID) predicate.Variable
- func IDGTE(id object.ID) predicate.Variable
- func IDIn(ids ...object.ID) predicate.Variable
- func IDLT(id object.ID) predicate.Variable
- func IDLTE(id object.ID) predicate.Variable
- func IDNEQ(id object.ID) predicate.Variable
- func IDNotIn(ids ...object.ID) predicate.Variable
- func Name(v string) predicate.Variable
- func NameContains(v string) predicate.Variable
- func NameContainsFold(v string) predicate.Variable
- func NameEQ(v string) predicate.Variable
- func NameEqualFold(v string) predicate.Variable
- func NameGT(v string) predicate.Variable
- func NameGTE(v string) predicate.Variable
- func NameHasPrefix(v string) predicate.Variable
- func NameHasSuffix(v string) predicate.Variable
- func NameIn(vs ...string) predicate.Variable
- func NameLT(v string) predicate.Variable
- func NameLTE(v string) predicate.Variable
- func NameNEQ(v string) predicate.Variable
- func NameNotIn(vs ...string) predicate.Variable
- func Not(p predicate.Variable) predicate.Variable
- func Or(predicates ...predicate.Variable) predicate.Variable
- func ProjectID(v object.ID) predicate.Variable
- func ProjectIDContains(v object.ID) predicate.Variable
- func ProjectIDContainsFold(v object.ID) predicate.Variable
- func ProjectIDEQ(v object.ID) predicate.Variable
- func ProjectIDEqualFold(v object.ID) predicate.Variable
- func ProjectIDGT(v object.ID) predicate.Variable
- func ProjectIDGTE(v object.ID) predicate.Variable
- func ProjectIDHasPrefix(v object.ID) predicate.Variable
- func ProjectIDHasSuffix(v object.ID) predicate.Variable
- func ProjectIDIn(vs ...object.ID) predicate.Variable
- func ProjectIDIsNil() predicate.Variable
- func ProjectIDLT(v object.ID) predicate.Variable
- func ProjectIDLTE(v object.ID) predicate.Variable
- func ProjectIDNEQ(v object.ID) predicate.Variable
- func ProjectIDNotIn(vs ...object.ID) predicate.Variable
- func ProjectIDNotNil() predicate.Variable
- func Sensitive(v bool) predicate.Variable
- func SensitiveEQ(v bool) predicate.Variable
- func SensitiveNEQ(v bool) predicate.Variable
- func UpdateTime(v time.Time) predicate.Variable
- func UpdateTimeEQ(v time.Time) predicate.Variable
- func UpdateTimeGT(v time.Time) predicate.Variable
- func UpdateTimeGTE(v time.Time) predicate.Variable
- func UpdateTimeIn(vs ...time.Time) predicate.Variable
- func UpdateTimeLT(v time.Time) predicate.Variable
- func UpdateTimeLTE(v time.Time) predicate.Variable
- func UpdateTimeNEQ(v time.Time) predicate.Variable
- func UpdateTimeNotIn(vs ...time.Time) predicate.Variable
- func ValidColumn(column string) bool
- func Value(v crypto.String) predicate.Variable
- func ValueContains(v crypto.String) predicate.Variable
- func ValueContainsFold(v crypto.String) predicate.Variable
- func ValueEQ(v crypto.String) predicate.Variable
- func ValueEqualFold(v crypto.String) predicate.Variable
- func ValueGT(v crypto.String) predicate.Variable
- func ValueGTE(v crypto.String) predicate.Variable
- func ValueHasPrefix(v crypto.String) predicate.Variable
- func ValueHasSuffix(v crypto.String) predicate.Variable
- func ValueIn(vs ...crypto.String) predicate.Variable
- func ValueLT(v crypto.String) predicate.Variable
- func ValueLTE(v crypto.String) predicate.Variable
- func ValueNEQ(v crypto.String) predicate.Variable
- func ValueNotIn(vs ...crypto.String) predicate.Variable
- func WithoutFields(ignores ...string) []string
- type OrderOption
- func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByEnvironmentField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByEnvironmentID(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 BySensitive(opts ...sql.OrderTermOption) OrderOption
- func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
- func ByValue(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the variable type in the database. Label = "variable" // 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" // FieldProjectID holds the string denoting the project_id field in the database. FieldProjectID = "project_id" // FieldEnvironmentID holds the string denoting the environment_id field in the database. FieldEnvironmentID = "environment_id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldValue holds the string denoting the value field in the database. FieldValue = "value" // FieldSensitive holds the string denoting the sensitive field in the database. FieldSensitive = "sensitive" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // EdgeProject holds the string denoting the project edge name in mutations. EdgeProject = "project" // EdgeEnvironment holds the string denoting the environment edge name in mutations. EdgeEnvironment = "environment" // Table holds the table name of the variable in the database. Table = "variables" // ProjectTable is the table that holds the project relation/edge. ProjectTable = "variables" // 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" // EnvironmentTable is the table that holds the environment relation/edge. EnvironmentTable = "variables" // EnvironmentInverseTable is the table name for the Environment entity. // It exists in this package in order to avoid circular dependency with the "environment" package. EnvironmentInverseTable = "environments" // EnvironmentColumn is the table column denoting the environment relation/edge. EnvironmentColumn = "environment_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 // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // ValueValidator is a validator for the "value" field. It is called by the builders before save. ValueValidator func(string) error // DefaultSensitive holds the default value on creation for the "sensitive" field. DefaultSensitive bool )
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, FieldProjectID, FieldEnvironmentID, FieldName, FieldValue, FieldSensitive, FieldDescription, }
Columns holds all SQL columns for variable fields.
Functions ¶
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func EnvironmentID ¶
EnvironmentID applies equality check predicate on the "environment_id" field. It's identical to EnvironmentIDEQ.
func EnvironmentIDContains ¶
EnvironmentIDContains applies the Contains predicate on the "environment_id" field.
func EnvironmentIDContainsFold ¶
EnvironmentIDContainsFold applies the ContainsFold predicate on the "environment_id" field.
func EnvironmentIDEQ ¶
EnvironmentIDEQ applies the EQ predicate on the "environment_id" field.
func EnvironmentIDEqualFold ¶
EnvironmentIDEqualFold applies the EqualFold predicate on the "environment_id" field.
func EnvironmentIDGT ¶
EnvironmentIDGT applies the GT predicate on the "environment_id" field.
func EnvironmentIDGTE ¶
EnvironmentIDGTE applies the GTE predicate on the "environment_id" field.
func EnvironmentIDHasPrefix ¶
EnvironmentIDHasPrefix applies the HasPrefix predicate on the "environment_id" field.
func EnvironmentIDHasSuffix ¶
EnvironmentIDHasSuffix applies the HasSuffix predicate on the "environment_id" field.
func EnvironmentIDIn ¶
EnvironmentIDIn applies the In predicate on the "environment_id" field.
func EnvironmentIDIsNil ¶
EnvironmentIDIsNil applies the IsNil predicate on the "environment_id" field.
func EnvironmentIDLT ¶
EnvironmentIDLT applies the LT predicate on the "environment_id" field.
func EnvironmentIDLTE ¶
EnvironmentIDLTE applies the LTE predicate on the "environment_id" field.
func EnvironmentIDNEQ ¶
EnvironmentIDNEQ applies the NEQ predicate on the "environment_id" field.
func EnvironmentIDNotIn ¶
EnvironmentIDNotIn applies the NotIn predicate on the "environment_id" field.
func EnvironmentIDNotNil ¶
EnvironmentIDNotNil applies the NotNil predicate on the "environment_id" field.
func HasEnvironment ¶
HasEnvironment applies the HasEdge predicate on the "environment" edge.
func HasEnvironmentWith ¶
func HasEnvironmentWith(preds ...predicate.Environment) predicate.Variable
HasEnvironmentWith applies the HasEdge predicate on the "environment" edge with a given conditions (other predicates).
func HasProject ¶
HasProject applies the HasEdge predicate on the "project" edge.
func HasProjectWith ¶
HasProjectWith applies the HasEdge predicate on the "project" edge with a given conditions (other predicates).
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func ProjectID ¶
ProjectID applies equality check predicate on the "project_id" field. It's identical to ProjectIDEQ.
func ProjectIDContains ¶
ProjectIDContains applies the Contains predicate on the "project_id" field.
func ProjectIDContainsFold ¶
ProjectIDContainsFold applies the ContainsFold predicate on the "project_id" field.
func ProjectIDEQ ¶
ProjectIDEQ applies the EQ predicate on the "project_id" field.
func ProjectIDEqualFold ¶
ProjectIDEqualFold applies the EqualFold predicate on the "project_id" field.
func ProjectIDGT ¶
ProjectIDGT applies the GT predicate on the "project_id" field.
func ProjectIDGTE ¶
ProjectIDGTE applies the GTE predicate on the "project_id" field.
func ProjectIDHasPrefix ¶
ProjectIDHasPrefix applies the HasPrefix predicate on the "project_id" field.
func ProjectIDHasSuffix ¶
ProjectIDHasSuffix applies the HasSuffix predicate on the "project_id" field.
func ProjectIDIn ¶
ProjectIDIn applies the In predicate on the "project_id" field.
func ProjectIDIsNil ¶
ProjectIDIsNil applies the IsNil predicate on the "project_id" field.
func ProjectIDLT ¶
ProjectIDLT applies the LT predicate on the "project_id" field.
func ProjectIDLTE ¶
ProjectIDLTE applies the LTE predicate on the "project_id" field.
func ProjectIDNEQ ¶
ProjectIDNEQ applies the NEQ predicate on the "project_id" field.
func ProjectIDNotIn ¶
ProjectIDNotIn applies the NotIn predicate on the "project_id" field.
func ProjectIDNotNil ¶
ProjectIDNotNil applies the NotNil predicate on the "project_id" field.
func Sensitive ¶
Sensitive applies equality check predicate on the "sensitive" field. It's identical to SensitiveEQ.
func SensitiveEQ ¶
SensitiveEQ applies the EQ predicate on the "sensitive" field.
func SensitiveNEQ ¶
SensitiveNEQ applies the NEQ predicate on the "sensitive" field.
func UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
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 Value ¶
Value applies equality check predicate on the "value" field. It's identical to ValueEQ.
func ValueContains ¶
ValueContains applies the Contains predicate on the "value" field.
func ValueContainsFold ¶
ValueContainsFold applies the ContainsFold predicate on the "value" field.
func ValueEqualFold ¶
ValueEqualFold applies the EqualFold predicate on the "value" field.
func ValueHasPrefix ¶
ValueHasPrefix applies the HasPrefix predicate on the "value" field.
func ValueHasSuffix ¶
ValueHasSuffix applies the HasSuffix predicate on the "value" field.
func ValueNotIn ¶
ValueNotIn applies the NotIn predicate on the "value" field.
func WithoutFields ¶
WithoutFields returns the fields ignored the given list.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Variable queries.
func ByCreateTime ¶
func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
ByCreateTime orders the results by the create_time field.
func ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByEnvironmentField ¶
func ByEnvironmentField(field string, opts ...sql.OrderTermOption) OrderOption
ByEnvironmentField orders the results by environment field.
func ByEnvironmentID ¶
func ByEnvironmentID(opts ...sql.OrderTermOption) OrderOption
ByEnvironmentID orders the results by the environment_id 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 ¶
func ByProjectField(field string, opts ...sql.OrderTermOption) OrderOption
ByProjectField orders the results by project field.
func ByProjectID ¶
func ByProjectID(opts ...sql.OrderTermOption) OrderOption
ByProjectID orders the results by the project_id field.
func BySensitive ¶
func BySensitive(opts ...sql.OrderTermOption) OrderOption
BySensitive orders the results by the sensitive field.
func ByUpdateTime ¶
func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
ByUpdateTime orders the results by the update_time field.
func ByValue ¶
func ByValue(opts ...sql.OrderTermOption) OrderOption
ByValue orders the results by the value field.