Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Env) predicate.Env
- func BuildCount(v int32) predicate.Env
- func BuildCountEQ(v int32) predicate.Env
- func BuildCountGT(v int32) predicate.Env
- func BuildCountGTE(v int32) predicate.Env
- func BuildCountIn(vs ...int32) predicate.Env
- func BuildCountLT(v int32) predicate.Env
- func BuildCountLTE(v int32) predicate.Env
- func BuildCountNEQ(v int32) predicate.Env
- func BuildCountNotIn(vs ...int32) predicate.Env
- func CreatedAt(v time.Time) predicate.Env
- func CreatedAtEQ(v time.Time) predicate.Env
- func CreatedAtGT(v time.Time) predicate.Env
- func CreatedAtGTE(v time.Time) predicate.Env
- func CreatedAtIn(vs ...time.Time) predicate.Env
- func CreatedAtLT(v time.Time) predicate.Env
- func CreatedAtLTE(v time.Time) predicate.Env
- func CreatedAtNEQ(v time.Time) predicate.Env
- func CreatedAtNotIn(vs ...time.Time) predicate.Env
- func CreatedBy(v uuid.UUID) predicate.Env
- func CreatedByEQ(v uuid.UUID) predicate.Env
- func CreatedByIn(vs ...uuid.UUID) predicate.Env
- func CreatedByNEQ(v uuid.UUID) predicate.Env
- func CreatedByNotIn(vs ...uuid.UUID) predicate.Env
- func HasBuilds() predicate.Env
- func HasBuildsWith(preds ...predicate.EnvBuild) predicate.Env
- func HasCreator() predicate.Env
- func HasCreatorWith(preds ...predicate.User) predicate.Env
- func HasEnvAliases() predicate.Env
- func HasEnvAliasesWith(preds ...predicate.EnvAlias) predicate.Env
- func HasTeam() predicate.Env
- func HasTeamWith(preds ...predicate.Team) predicate.Env
- func ID(id string) predicate.Env
- func IDContainsFold(id string) predicate.Env
- func IDEQ(id string) predicate.Env
- func IDEqualFold(id string) predicate.Env
- func IDGT(id string) predicate.Env
- func IDGTE(id string) predicate.Env
- func IDIn(ids ...string) predicate.Env
- func IDLT(id string) predicate.Env
- func IDLTE(id string) predicate.Env
- func IDNEQ(id string) predicate.Env
- func IDNotIn(ids ...string) predicate.Env
- func LastSpawnedAt(v time.Time) predicate.Env
- func LastSpawnedAtEQ(v time.Time) predicate.Env
- func LastSpawnedAtGT(v time.Time) predicate.Env
- func LastSpawnedAtGTE(v time.Time) predicate.Env
- func LastSpawnedAtIn(vs ...time.Time) predicate.Env
- func LastSpawnedAtIsNil() predicate.Env
- func LastSpawnedAtLT(v time.Time) predicate.Env
- func LastSpawnedAtLTE(v time.Time) predicate.Env
- func LastSpawnedAtNEQ(v time.Time) predicate.Env
- func LastSpawnedAtNotIn(vs ...time.Time) predicate.Env
- func LastSpawnedAtNotNil() predicate.Env
- func Not(p predicate.Env) predicate.Env
- func Or(predicates ...predicate.Env) predicate.Env
- func Public(v bool) predicate.Env
- func PublicEQ(v bool) predicate.Env
- func PublicNEQ(v bool) predicate.Env
- func SpawnCount(v int64) predicate.Env
- func SpawnCountEQ(v int64) predicate.Env
- func SpawnCountGT(v int64) predicate.Env
- func SpawnCountGTE(v int64) predicate.Env
- func SpawnCountIn(vs ...int64) predicate.Env
- func SpawnCountLT(v int64) predicate.Env
- func SpawnCountLTE(v int64) predicate.Env
- func SpawnCountNEQ(v int64) predicate.Env
- func SpawnCountNotIn(vs ...int64) predicate.Env
- func TeamID(v uuid.UUID) predicate.Env
- func TeamIDEQ(v uuid.UUID) predicate.Env
- func TeamIDIn(vs ...uuid.UUID) predicate.Env
- func TeamIDNEQ(v uuid.UUID) predicate.Env
- func TeamIDNotIn(vs ...uuid.UUID) predicate.Env
- func UpdatedAt(v time.Time) predicate.Env
- func UpdatedAtEQ(v time.Time) predicate.Env
- func UpdatedAtGT(v time.Time) predicate.Env
- func UpdatedAtGTE(v time.Time) predicate.Env
- func UpdatedAtIn(vs ...time.Time) predicate.Env
- func UpdatedAtLT(v time.Time) predicate.Env
- func UpdatedAtLTE(v time.Time) predicate.Env
- func UpdatedAtNEQ(v time.Time) predicate.Env
- func UpdatedAtNotIn(vs ...time.Time) predicate.Env
- func ValidColumn(column string) bool
- type OrderOption
- func ByBuildCount(opts ...sql.OrderTermOption) OrderOption
- func ByBuilds(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByBuildsCount(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByCreatorField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByEnvAliases(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByEnvAliasesCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLastSpawnedAt(opts ...sql.OrderTermOption) OrderOption
- func ByPublic(opts ...sql.OrderTermOption) OrderOption
- func BySpawnCount(opts ...sql.OrderTermOption) OrderOption
- func ByTeamField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByTeamID(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the env type in the database. Label = "env" // FieldID holds the string denoting the id field in the database. FieldID = "id" // 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" // FieldTeamID holds the string denoting the team_id field in the database. FieldTeamID = "team_id" // FieldCreatedBy holds the string denoting the created_by field in the database. FieldCreatedBy = "created_by" // FieldPublic holds the string denoting the public field in the database. FieldPublic = "public" // FieldBuildCount holds the string denoting the build_count field in the database. FieldBuildCount = "build_count" // FieldSpawnCount holds the string denoting the spawn_count field in the database. FieldSpawnCount = "spawn_count" // FieldLastSpawnedAt holds the string denoting the last_spawned_at field in the database. FieldLastSpawnedAt = "last_spawned_at" // EdgeTeam holds the string denoting the team edge name in mutations. EdgeTeam = "team" // EdgeCreator holds the string denoting the creator edge name in mutations. EdgeCreator = "creator" // EdgeEnvAliases holds the string denoting the env_aliases edge name in mutations. EdgeEnvAliases = "env_aliases" // EdgeBuilds holds the string denoting the builds edge name in mutations. EdgeBuilds = "builds" // EnvAliasFieldID holds the string denoting the ID field of the EnvAlias. EnvAliasFieldID = "alias" // Table holds the table name of the env in the database. Table = "envs" // TeamTable is the table that holds the team relation/edge. TeamTable = "envs" // TeamInverseTable is the table name for the Team entity. // It exists in this package in order to avoid circular dependency with the "team" package. TeamInverseTable = "teams" // TeamColumn is the table column denoting the team relation/edge. TeamColumn = "team_id" // CreatorTable is the table that holds the creator relation/edge. CreatorTable = "envs" // CreatorInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. CreatorInverseTable = "users" // CreatorColumn is the table column denoting the creator relation/edge. CreatorColumn = "created_by" // EnvAliasesTable is the table that holds the env_aliases relation/edge. EnvAliasesTable = "env_aliases" // EnvAliasesInverseTable is the table name for the EnvAlias entity. // It exists in this package in order to avoid circular dependency with the "envalias" package. EnvAliasesInverseTable = "env_aliases" // EnvAliasesColumn is the table column denoting the env_aliases relation/edge. EnvAliasesColumn = "env_id" // BuildsTable is the table that holds the builds relation/edge. BuildsTable = "env_builds" // BuildsInverseTable is the table name for the EnvBuild entity. // It exists in this package in order to avoid circular dependency with the "envbuild" package. BuildsInverseTable = "env_builds" // BuildsColumn is the table column denoting the builds relation/edge. BuildsColumn = "env_id" )
Variables ¶
var ( // 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 // DefaultBuildCount holds the default value on creation for the "build_count" field. DefaultBuildCount int32 // DefaultSpawnCount holds the default value on creation for the "spawn_count" field. DefaultSpawnCount int64 )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldTeamID, FieldCreatedBy, FieldPublic, FieldBuildCount, FieldSpawnCount, FieldLastSpawnedAt, }
Columns holds all SQL columns for env fields.
Functions ¶
func BuildCount ¶
BuildCount applies equality check predicate on the "build_count" field. It's identical to BuildCountEQ.
func BuildCountEQ ¶
BuildCountEQ applies the EQ predicate on the "build_count" field.
func BuildCountGT ¶
BuildCountGT applies the GT predicate on the "build_count" field.
func BuildCountGTE ¶
BuildCountGTE applies the GTE predicate on the "build_count" field.
func BuildCountIn ¶
BuildCountIn applies the In predicate on the "build_count" field.
func BuildCountLT ¶
BuildCountLT applies the LT predicate on the "build_count" field.
func BuildCountLTE ¶
BuildCountLTE applies the LTE predicate on the "build_count" field.
func BuildCountNEQ ¶
BuildCountNEQ applies the NEQ predicate on the "build_count" field.
func BuildCountNotIn ¶
BuildCountNotIn applies the NotIn predicate on the "build_count" field.
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 CreatedBy ¶
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByEQ ¶
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByIn ¶
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByNEQ ¶
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func HasBuildsWith ¶
HasBuildsWith applies the HasEdge predicate on the "builds" edge with a given conditions (other predicates).
func HasCreator ¶
HasCreator applies the HasEdge predicate on the "creator" edge.
func HasCreatorWith ¶
HasCreatorWith applies the HasEdge predicate on the "creator" edge with a given conditions (other predicates).
func HasEnvAliases ¶
HasEnvAliases applies the HasEdge predicate on the "env_aliases" edge.
func HasEnvAliasesWith ¶
HasEnvAliasesWith applies the HasEdge predicate on the "env_aliases" edge with a given conditions (other predicates).
func HasTeamWith ¶
HasTeamWith applies the HasEdge predicate on the "team" edge with a given conditions (other predicates).
func IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID field.
func LastSpawnedAt ¶
LastSpawnedAt applies equality check predicate on the "last_spawned_at" field. It's identical to LastSpawnedAtEQ.
func LastSpawnedAtEQ ¶
LastSpawnedAtEQ applies the EQ predicate on the "last_spawned_at" field.
func LastSpawnedAtGT ¶
LastSpawnedAtGT applies the GT predicate on the "last_spawned_at" field.
func LastSpawnedAtGTE ¶
LastSpawnedAtGTE applies the GTE predicate on the "last_spawned_at" field.
func LastSpawnedAtIn ¶
LastSpawnedAtIn applies the In predicate on the "last_spawned_at" field.
func LastSpawnedAtIsNil ¶
LastSpawnedAtIsNil applies the IsNil predicate on the "last_spawned_at" field.
func LastSpawnedAtLT ¶
LastSpawnedAtLT applies the LT predicate on the "last_spawned_at" field.
func LastSpawnedAtLTE ¶
LastSpawnedAtLTE applies the LTE predicate on the "last_spawned_at" field.
func LastSpawnedAtNEQ ¶
LastSpawnedAtNEQ applies the NEQ predicate on the "last_spawned_at" field.
func LastSpawnedAtNotIn ¶
LastSpawnedAtNotIn applies the NotIn predicate on the "last_spawned_at" field.
func LastSpawnedAtNotNil ¶
LastSpawnedAtNotNil applies the NotNil predicate on the "last_spawned_at" field.
func Public ¶
Public applies equality check predicate on the "public" field. It's identical to PublicEQ.
func SpawnCount ¶
SpawnCount applies equality check predicate on the "spawn_count" field. It's identical to SpawnCountEQ.
func SpawnCountEQ ¶
SpawnCountEQ applies the EQ predicate on the "spawn_count" field.
func SpawnCountGT ¶
SpawnCountGT applies the GT predicate on the "spawn_count" field.
func SpawnCountGTE ¶
SpawnCountGTE applies the GTE predicate on the "spawn_count" field.
func SpawnCountIn ¶
SpawnCountIn applies the In predicate on the "spawn_count" field.
func SpawnCountLT ¶
SpawnCountLT applies the LT predicate on the "spawn_count" field.
func SpawnCountLTE ¶
SpawnCountLTE applies the LTE predicate on the "spawn_count" field.
func SpawnCountNEQ ¶
SpawnCountNEQ applies the NEQ predicate on the "spawn_count" field.
func SpawnCountNotIn ¶
SpawnCountNotIn applies the NotIn predicate on the "spawn_count" field.
func TeamID ¶
TeamID applies equality check predicate on the "team_id" field. It's identical to TeamIDEQ.
func TeamIDNotIn ¶
TeamIDNotIn applies the NotIn predicate on the "team_id" 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 Env queries.
func ByBuildCount ¶
func ByBuildCount(opts ...sql.OrderTermOption) OrderOption
ByBuildCount orders the results by the build_count field.
func ByBuilds ¶
func ByBuilds(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByBuilds orders the results by builds terms.
func ByBuildsCount ¶
func ByBuildsCount(opts ...sql.OrderTermOption) OrderOption
ByBuildsCount orders the results by builds count.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByCreatedBy ¶
func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
ByCreatedBy orders the results by the created_by field.
func ByCreatorField ¶
func ByCreatorField(field string, opts ...sql.OrderTermOption) OrderOption
ByCreatorField orders the results by creator field.
func ByEnvAliases ¶
func ByEnvAliases(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByEnvAliases orders the results by env_aliases terms.
func ByEnvAliasesCount ¶
func ByEnvAliasesCount(opts ...sql.OrderTermOption) OrderOption
ByEnvAliasesCount orders the results by env_aliases count.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLastSpawnedAt ¶
func ByLastSpawnedAt(opts ...sql.OrderTermOption) OrderOption
ByLastSpawnedAt orders the results by the last_spawned_at field.
func ByPublic ¶
func ByPublic(opts ...sql.OrderTermOption) OrderOption
ByPublic orders the results by the public field.
func BySpawnCount ¶
func BySpawnCount(opts ...sql.OrderTermOption) OrderOption
BySpawnCount orders the results by the spawn_count field.
func ByTeamField ¶
func ByTeamField(field string, opts ...sql.OrderTermOption) OrderOption
ByTeamField orders the results by team field.
func ByTeamID ¶
func ByTeamID(opts ...sql.OrderTermOption) OrderOption
ByTeamID orders the results by the team_id field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.