Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Repo) predicate.Repo
- func CreatedAt(v time.Time) predicate.Repo
- func CreatedAtEQ(v time.Time) predicate.Repo
- func CreatedAtGT(v time.Time) predicate.Repo
- func CreatedAtGTE(v time.Time) predicate.Repo
- func CreatedAtIn(vs ...time.Time) predicate.Repo
- func CreatedAtLT(v time.Time) predicate.Repo
- func CreatedAtLTE(v time.Time) predicate.Repo
- func CreatedAtNEQ(v time.Time) predicate.Repo
- func CreatedAtNotIn(vs ...time.Time) predicate.Repo
- func DefaultBranch(v string) predicate.Repo
- func DefaultBranchContains(v string) predicate.Repo
- func DefaultBranchContainsFold(v string) predicate.Repo
- func DefaultBranchEQ(v string) predicate.Repo
- func DefaultBranchEqualFold(v string) predicate.Repo
- func DefaultBranchGT(v string) predicate.Repo
- func DefaultBranchGTE(v string) predicate.Repo
- func DefaultBranchHasPrefix(v string) predicate.Repo
- func DefaultBranchHasSuffix(v string) predicate.Repo
- func DefaultBranchIn(vs ...string) predicate.Repo
- func DefaultBranchIsNil() predicate.Repo
- func DefaultBranchLT(v string) predicate.Repo
- func DefaultBranchLTE(v string) predicate.Repo
- func DefaultBranchNEQ(v string) predicate.Repo
- func DefaultBranchNotIn(vs ...string) predicate.Repo
- func DefaultBranchNotNil() predicate.Repo
- func DeletedAt(v time.Time) predicate.Repo
- func DeletedAtEQ(v time.Time) predicate.Repo
- func DeletedAtGT(v time.Time) predicate.Repo
- func DeletedAtGTE(v time.Time) predicate.Repo
- func DeletedAtIn(vs ...time.Time) predicate.Repo
- func DeletedAtIsNil() predicate.Repo
- func DeletedAtLT(v time.Time) predicate.Repo
- func DeletedAtLTE(v time.Time) predicate.Repo
- func DeletedAtNEQ(v time.Time) predicate.Repo
- func DeletedAtNotIn(vs ...time.Time) predicate.Repo
- func DeletedAtNotNil() predicate.Repo
- func Description(v string) predicate.Repo
- func DescriptionContains(v string) predicate.Repo
- func DescriptionContainsFold(v string) predicate.Repo
- func DescriptionEQ(v string) predicate.Repo
- func DescriptionEqualFold(v string) predicate.Repo
- func DescriptionGT(v string) predicate.Repo
- func DescriptionGTE(v string) predicate.Repo
- func DescriptionHasPrefix(v string) predicate.Repo
- func DescriptionHasSuffix(v string) predicate.Repo
- func DescriptionIn(vs ...string) predicate.Repo
- func DescriptionLT(v string) predicate.Repo
- func DescriptionLTE(v string) predicate.Repo
- func DescriptionNEQ(v string) predicate.Repo
- func DescriptionNotIn(vs ...string) predicate.Repo
- func Enabled(v bool) predicate.Repo
- func EnabledEQ(v bool) predicate.Repo
- func EnabledNEQ(v bool) predicate.Repo
- func GitProjectID(v int32) predicate.Repo
- func GitProjectIDEQ(v int32) predicate.Repo
- func GitProjectIDGT(v int32) predicate.Repo
- func GitProjectIDGTE(v int32) predicate.Repo
- func GitProjectIDIn(vs ...int32) predicate.Repo
- func GitProjectIDIsNil() predicate.Repo
- func GitProjectIDLT(v int32) predicate.Repo
- func GitProjectIDLTE(v int32) predicate.Repo
- func GitProjectIDNEQ(v int32) predicate.Repo
- func GitProjectIDNotIn(vs ...int32) predicate.Repo
- func GitProjectIDNotNil() predicate.Repo
- func GitProjectName(v string) predicate.Repo
- func GitProjectNameContains(v string) predicate.Repo
- func GitProjectNameContainsFold(v string) predicate.Repo
- func GitProjectNameEQ(v string) predicate.Repo
- func GitProjectNameEqualFold(v string) predicate.Repo
- func GitProjectNameGT(v string) predicate.Repo
- func GitProjectNameGTE(v string) predicate.Repo
- func GitProjectNameHasPrefix(v string) predicate.Repo
- func GitProjectNameHasSuffix(v string) predicate.Repo
- func GitProjectNameIn(vs ...string) predicate.Repo
- func GitProjectNameIsNil() predicate.Repo
- func GitProjectNameLT(v string) predicate.Repo
- func GitProjectNameLTE(v string) predicate.Repo
- func GitProjectNameNEQ(v string) predicate.Repo
- func GitProjectNameNotIn(vs ...string) predicate.Repo
- func GitProjectNameNotNil() predicate.Repo
- func HasProjects() predicate.Repo
- func HasProjectsWith(preds ...predicate.Project) predicate.Repo
- func ID(id int) predicate.Repo
- func IDEQ(id int) predicate.Repo
- func IDGT(id int) predicate.Repo
- func IDGTE(id int) predicate.Repo
- func IDIn(ids ...int) predicate.Repo
- func IDLT(id int) predicate.Repo
- func IDLTE(id int) predicate.Repo
- func IDNEQ(id int) predicate.Repo
- func IDNotIn(ids ...int) predicate.Repo
- func MarsConfigIsNil() predicate.Repo
- func MarsConfigNotNil() predicate.Repo
- func Name(v string) predicate.Repo
- func NameContains(v string) predicate.Repo
- func NameContainsFold(v string) predicate.Repo
- func NameEQ(v string) predicate.Repo
- func NameEqualFold(v string) predicate.Repo
- func NameGT(v string) predicate.Repo
- func NameGTE(v string) predicate.Repo
- func NameHasPrefix(v string) predicate.Repo
- func NameHasSuffix(v string) predicate.Repo
- func NameIn(vs ...string) predicate.Repo
- func NameLT(v string) predicate.Repo
- func NameLTE(v string) predicate.Repo
- func NameNEQ(v string) predicate.Repo
- func NameNotIn(vs ...string) predicate.Repo
- func NeedGitRepo(v bool) predicate.Repo
- func NeedGitRepoEQ(v bool) predicate.Repo
- func NeedGitRepoNEQ(v bool) predicate.Repo
- func Not(p predicate.Repo) predicate.Repo
- func Or(predicates ...predicate.Repo) predicate.Repo
- func UpdatedAt(v time.Time) predicate.Repo
- func UpdatedAtEQ(v time.Time) predicate.Repo
- func UpdatedAtGT(v time.Time) predicate.Repo
- func UpdatedAtGTE(v time.Time) predicate.Repo
- func UpdatedAtIn(vs ...time.Time) predicate.Repo
- func UpdatedAtLT(v time.Time) predicate.Repo
- func UpdatedAtLTE(v time.Time) predicate.Repo
- func UpdatedAtNEQ(v time.Time) predicate.Repo
- func UpdatedAtNotIn(vs ...time.Time) predicate.Repo
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDefaultBranch(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByEnabled(opts ...sql.OrderTermOption) OrderOption
- func ByGitProjectID(opts ...sql.OrderTermOption) OrderOption
- func ByGitProjectName(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByNeedGitRepo(opts ...sql.OrderTermOption) OrderOption
- func ByProjects(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByProjectsCount(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the repo type in the database. Label = "repo" // 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" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldDefaultBranch holds the string denoting the default_branch field in the database. FieldDefaultBranch = "default_branch" // FieldGitProjectName holds the string denoting the git_project_name field in the database. FieldGitProjectName = "git_project_name" // FieldGitProjectID holds the string denoting the git_project_id field in the database. FieldGitProjectID = "git_project_id" // FieldEnabled holds the string denoting the enabled field in the database. FieldEnabled = "enabled" // FieldNeedGitRepo holds the string denoting the need_git_repo field in the database. FieldNeedGitRepo = "need_git_repo" // FieldMarsConfig holds the string denoting the mars_config field in the database. FieldMarsConfig = "mars_config" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // EdgeProjects holds the string denoting the projects edge name in mutations. EdgeProjects = "projects" // Table holds the table name of the repo in the database. Table = "repos" // ProjectsTable is the table that holds the projects relation/edge. ProjectsTable = "projects" // ProjectsInverseTable is the table name for the Project entity. // It exists in this package in order to avoid circular dependency with the "project" package. ProjectsInverseTable = "projects" // ProjectsColumn is the table column denoting the projects relation/edge. ProjectsColumn = "repo_id" )
Variables ¶
var ( Hooks [1]ent.Hook Interceptors [1]ent.Interceptor // 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 // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // DefaultBranchValidator is a validator for the "default_branch" field. It is called by the builders before save. DefaultBranchValidator func(string) error // DefaultEnabled holds the default value on creation for the "enabled" field. DefaultEnabled bool // DefaultNeedGitRepo holds the default value on creation for the "need_git_repo" field. DefaultNeedGitRepo bool // DefaultDescription holds the default value on creation for the "description" field. DefaultDescription string )
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/duc-cnzj/mars/v5/internal/ent/runtime"
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, FieldName, FieldDefaultBranch, FieldGitProjectName, FieldGitProjectID, FieldEnabled, FieldNeedGitRepo, FieldMarsConfig, FieldDescription, }
Columns holds all SQL columns for repo fields.
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 DefaultBranch ¶
DefaultBranch applies equality check predicate on the "default_branch" field. It's identical to DefaultBranchEQ.
func DefaultBranchContains ¶
DefaultBranchContains applies the Contains predicate on the "default_branch" field.
func DefaultBranchContainsFold ¶
DefaultBranchContainsFold applies the ContainsFold predicate on the "default_branch" field.
func DefaultBranchEQ ¶
DefaultBranchEQ applies the EQ predicate on the "default_branch" field.
func DefaultBranchEqualFold ¶
DefaultBranchEqualFold applies the EqualFold predicate on the "default_branch" field.
func DefaultBranchGT ¶
DefaultBranchGT applies the GT predicate on the "default_branch" field.
func DefaultBranchGTE ¶
DefaultBranchGTE applies the GTE predicate on the "default_branch" field.
func DefaultBranchHasPrefix ¶
DefaultBranchHasPrefix applies the HasPrefix predicate on the "default_branch" field.
func DefaultBranchHasSuffix ¶
DefaultBranchHasSuffix applies the HasSuffix predicate on the "default_branch" field.
func DefaultBranchIn ¶
DefaultBranchIn applies the In predicate on the "default_branch" field.
func DefaultBranchIsNil ¶
DefaultBranchIsNil applies the IsNil predicate on the "default_branch" field.
func DefaultBranchLT ¶
DefaultBranchLT applies the LT predicate on the "default_branch" field.
func DefaultBranchLTE ¶
DefaultBranchLTE applies the LTE predicate on the "default_branch" field.
func DefaultBranchNEQ ¶
DefaultBranchNEQ applies the NEQ predicate on the "default_branch" field.
func DefaultBranchNotIn ¶
DefaultBranchNotIn applies the NotIn predicate on the "default_branch" field.
func DefaultBranchNotNil ¶
DefaultBranchNotNil applies the NotNil predicate on the "default_branch" field.
func DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" 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 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 Enabled ¶
Enabled applies equality check predicate on the "enabled" field. It's identical to EnabledEQ.
func EnabledNEQ ¶
EnabledNEQ applies the NEQ predicate on the "enabled" field.
func GitProjectID ¶
GitProjectID applies equality check predicate on the "git_project_id" field. It's identical to GitProjectIDEQ.
func GitProjectIDEQ ¶
GitProjectIDEQ applies the EQ predicate on the "git_project_id" field.
func GitProjectIDGT ¶
GitProjectIDGT applies the GT predicate on the "git_project_id" field.
func GitProjectIDGTE ¶
GitProjectIDGTE applies the GTE predicate on the "git_project_id" field.
func GitProjectIDIn ¶
GitProjectIDIn applies the In predicate on the "git_project_id" field.
func GitProjectIDIsNil ¶
GitProjectIDIsNil applies the IsNil predicate on the "git_project_id" field.
func GitProjectIDLT ¶
GitProjectIDLT applies the LT predicate on the "git_project_id" field.
func GitProjectIDLTE ¶
GitProjectIDLTE applies the LTE predicate on the "git_project_id" field.
func GitProjectIDNEQ ¶
GitProjectIDNEQ applies the NEQ predicate on the "git_project_id" field.
func GitProjectIDNotIn ¶
GitProjectIDNotIn applies the NotIn predicate on the "git_project_id" field.
func GitProjectIDNotNil ¶
GitProjectIDNotNil applies the NotNil predicate on the "git_project_id" field.
func GitProjectName ¶
GitProjectName applies equality check predicate on the "git_project_name" field. It's identical to GitProjectNameEQ.
func GitProjectNameContains ¶
GitProjectNameContains applies the Contains predicate on the "git_project_name" field.
func GitProjectNameContainsFold ¶
GitProjectNameContainsFold applies the ContainsFold predicate on the "git_project_name" field.
func GitProjectNameEQ ¶
GitProjectNameEQ applies the EQ predicate on the "git_project_name" field.
func GitProjectNameEqualFold ¶
GitProjectNameEqualFold applies the EqualFold predicate on the "git_project_name" field.
func GitProjectNameGT ¶
GitProjectNameGT applies the GT predicate on the "git_project_name" field.
func GitProjectNameGTE ¶
GitProjectNameGTE applies the GTE predicate on the "git_project_name" field.
func GitProjectNameHasPrefix ¶
GitProjectNameHasPrefix applies the HasPrefix predicate on the "git_project_name" field.
func GitProjectNameHasSuffix ¶
GitProjectNameHasSuffix applies the HasSuffix predicate on the "git_project_name" field.
func GitProjectNameIn ¶
GitProjectNameIn applies the In predicate on the "git_project_name" field.
func GitProjectNameIsNil ¶
GitProjectNameIsNil applies the IsNil predicate on the "git_project_name" field.
func GitProjectNameLT ¶
GitProjectNameLT applies the LT predicate on the "git_project_name" field.
func GitProjectNameLTE ¶
GitProjectNameLTE applies the LTE predicate on the "git_project_name" field.
func GitProjectNameNEQ ¶
GitProjectNameNEQ applies the NEQ predicate on the "git_project_name" field.
func GitProjectNameNotIn ¶
GitProjectNameNotIn applies the NotIn predicate on the "git_project_name" field.
func GitProjectNameNotNil ¶
GitProjectNameNotNil applies the NotNil predicate on the "git_project_name" field.
func HasProjects ¶
HasProjects applies the HasEdge predicate on the "projects" edge.
func HasProjectsWith ¶
HasProjectsWith applies the HasEdge predicate on the "projects" edge with a given conditions (other predicates).
func MarsConfigIsNil ¶
MarsConfigIsNil applies the IsNil predicate on the "mars_config" field.
func MarsConfigNotNil ¶
MarsConfigNotNil applies the NotNil predicate on the "mars_config" field.
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 NeedGitRepo ¶
NeedGitRepo applies equality check predicate on the "need_git_repo" field. It's identical to NeedGitRepoEQ.
func NeedGitRepoEQ ¶
NeedGitRepoEQ applies the EQ predicate on the "need_git_repo" field.
func NeedGitRepoNEQ ¶
NeedGitRepoNEQ applies the NEQ predicate on the "need_git_repo" 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 Repo queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDefaultBranch ¶
func ByDefaultBranch(opts ...sql.OrderTermOption) OrderOption
ByDefaultBranch orders the results by the default_branch field.
func ByDeletedAt ¶
func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
ByDeletedAt orders the results by the deleted_at field.
func ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByEnabled ¶
func ByEnabled(opts ...sql.OrderTermOption) OrderOption
ByEnabled orders the results by the enabled field.
func ByGitProjectID ¶
func ByGitProjectID(opts ...sql.OrderTermOption) OrderOption
ByGitProjectID orders the results by the git_project_id field.
func ByGitProjectName ¶
func ByGitProjectName(opts ...sql.OrderTermOption) OrderOption
ByGitProjectName orders the results by the git_project_name 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 ByNeedGitRepo ¶
func ByNeedGitRepo(opts ...sql.OrderTermOption) OrderOption
ByNeedGitRepo orders the results by the need_git_repo field.
func ByProjects ¶
func ByProjects(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByProjects orders the results by projects terms.
func ByProjectsCount ¶
func ByProjectsCount(opts ...sql.OrderTermOption) OrderOption
ByProjectsCount orders the results by projects count.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.