Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Worktree) predicate.Worktree
- func BaseCommitSha(v string) predicate.Worktree
- func BaseCommitShaContains(v string) predicate.Worktree
- func BaseCommitShaContainsFold(v string) predicate.Worktree
- func BaseCommitShaEQ(v string) predicate.Worktree
- func BaseCommitShaEqualFold(v string) predicate.Worktree
- func BaseCommitShaGT(v string) predicate.Worktree
- func BaseCommitShaGTE(v string) predicate.Worktree
- func BaseCommitShaHasPrefix(v string) predicate.Worktree
- func BaseCommitShaHasSuffix(v string) predicate.Worktree
- func BaseCommitShaIn(vs ...string) predicate.Worktree
- func BaseCommitShaLT(v string) predicate.Worktree
- func BaseCommitShaLTE(v string) predicate.Worktree
- func BaseCommitShaNEQ(v string) predicate.Worktree
- func BaseCommitShaNotIn(vs ...string) predicate.Worktree
- func BranchName(v string) predicate.Worktree
- func BranchNameContains(v string) predicate.Worktree
- func BranchNameContainsFold(v string) predicate.Worktree
- func BranchNameEQ(v string) predicate.Worktree
- func BranchNameEqualFold(v string) predicate.Worktree
- func BranchNameGT(v string) predicate.Worktree
- func BranchNameGTE(v string) predicate.Worktree
- func BranchNameHasPrefix(v string) predicate.Worktree
- func BranchNameHasSuffix(v string) predicate.Worktree
- func BranchNameIn(vs ...string) predicate.Worktree
- func BranchNameLT(v string) predicate.Worktree
- func BranchNameLTE(v string) predicate.Worktree
- func BranchNameNEQ(v string) predicate.Worktree
- func BranchNameNotIn(vs ...string) predicate.Worktree
- func HasSession() predicate.Worktree
- func HasSessionWith(preds ...predicate.Session) predicate.Worktree
- func ID(id int) predicate.Worktree
- func IDEQ(id int) predicate.Worktree
- func IDGT(id int) predicate.Worktree
- func IDGTE(id int) predicate.Worktree
- func IDIn(ids ...int) predicate.Worktree
- func IDLT(id int) predicate.Worktree
- func IDLTE(id int) predicate.Worktree
- func IDNEQ(id int) predicate.Worktree
- func IDNotIn(ids ...int) predicate.Worktree
- func Not(p predicate.Worktree) predicate.Worktree
- func Or(predicates ...predicate.Worktree) predicate.Worktree
- func RepoPath(v string) predicate.Worktree
- func RepoPathContains(v string) predicate.Worktree
- func RepoPathContainsFold(v string) predicate.Worktree
- func RepoPathEQ(v string) predicate.Worktree
- func RepoPathEqualFold(v string) predicate.Worktree
- func RepoPathGT(v string) predicate.Worktree
- func RepoPathGTE(v string) predicate.Worktree
- func RepoPathHasPrefix(v string) predicate.Worktree
- func RepoPathHasSuffix(v string) predicate.Worktree
- func RepoPathIn(vs ...string) predicate.Worktree
- func RepoPathLT(v string) predicate.Worktree
- func RepoPathLTE(v string) predicate.Worktree
- func RepoPathNEQ(v string) predicate.Worktree
- func RepoPathNotIn(vs ...string) predicate.Worktree
- func SessionName(v string) predicate.Worktree
- func SessionNameContains(v string) predicate.Worktree
- func SessionNameContainsFold(v string) predicate.Worktree
- func SessionNameEQ(v string) predicate.Worktree
- func SessionNameEqualFold(v string) predicate.Worktree
- func SessionNameGT(v string) predicate.Worktree
- func SessionNameGTE(v string) predicate.Worktree
- func SessionNameHasPrefix(v string) predicate.Worktree
- func SessionNameHasSuffix(v string) predicate.Worktree
- func SessionNameIn(vs ...string) predicate.Worktree
- func SessionNameLT(v string) predicate.Worktree
- func SessionNameLTE(v string) predicate.Worktree
- func SessionNameNEQ(v string) predicate.Worktree
- func SessionNameNotIn(vs ...string) predicate.Worktree
- func ValidColumn(column string) bool
- func WorktreePath(v string) predicate.Worktree
- func WorktreePathContains(v string) predicate.Worktree
- func WorktreePathContainsFold(v string) predicate.Worktree
- func WorktreePathEQ(v string) predicate.Worktree
- func WorktreePathEqualFold(v string) predicate.Worktree
- func WorktreePathGT(v string) predicate.Worktree
- func WorktreePathGTE(v string) predicate.Worktree
- func WorktreePathHasPrefix(v string) predicate.Worktree
- func WorktreePathHasSuffix(v string) predicate.Worktree
- func WorktreePathIn(vs ...string) predicate.Worktree
- func WorktreePathLT(v string) predicate.Worktree
- func WorktreePathLTE(v string) predicate.Worktree
- func WorktreePathNEQ(v string) predicate.Worktree
- func WorktreePathNotIn(vs ...string) predicate.Worktree
- type OrderOption
- func ByBaseCommitSha(opts ...sql.OrderTermOption) OrderOption
- func ByBranchName(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByRepoPath(opts ...sql.OrderTermOption) OrderOption
- func BySessionField(field string, opts ...sql.OrderTermOption) OrderOption
- func BySessionName(opts ...sql.OrderTermOption) OrderOption
- func ByWorktreePath(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the worktree type in the database. Label = "worktree" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldRepoPath holds the string denoting the repo_path field in the database. FieldRepoPath = "repo_path" // FieldWorktreePath holds the string denoting the worktree_path field in the database. FieldWorktreePath = "worktree_path" // FieldSessionName holds the string denoting the session_name field in the database. FieldSessionName = "session_name" // FieldBranchName holds the string denoting the branch_name field in the database. FieldBranchName = "branch_name" // FieldBaseCommitSha holds the string denoting the base_commit_sha field in the database. FieldBaseCommitSha = "base_commit_sha" // EdgeSession holds the string denoting the session edge name in mutations. EdgeSession = "session" // Table holds the table name of the worktree in the database. Table = "worktrees" // SessionTable is the table that holds the session relation/edge. SessionTable = "worktrees" // SessionInverseTable is the table name for the Session entity. // It exists in this package in order to avoid circular dependency with the "session" package. SessionInverseTable = "sessions" // SessionColumn is the table column denoting the session relation/edge. SessionColumn = "session_worktree" )
Variables ¶
var ( // RepoPathValidator is a validator for the "repo_path" field. It is called by the builders before save. RepoPathValidator func(string) error // WorktreePathValidator is a validator for the "worktree_path" field. It is called by the builders before save. WorktreePathValidator func(string) error // SessionNameValidator is a validator for the "session_name" field. It is called by the builders before save. SessionNameValidator func(string) error // BranchNameValidator is a validator for the "branch_name" field. It is called by the builders before save. BranchNameValidator func(string) error // BaseCommitShaValidator is a validator for the "base_commit_sha" field. It is called by the builders before save. BaseCommitShaValidator func(string) error )
var Columns = []string{ FieldID, FieldRepoPath, FieldWorktreePath, FieldSessionName, FieldBranchName, FieldBaseCommitSha, }
Columns holds all SQL columns for worktree fields.
var ForeignKeys = []string{
"session_worktree",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "worktrees" table and are not defined as standalone fields in the schema.
Functions ¶
func BaseCommitSha ¶
BaseCommitSha applies equality check predicate on the "base_commit_sha" field. It's identical to BaseCommitShaEQ.
func BaseCommitShaContains ¶
BaseCommitShaContains applies the Contains predicate on the "base_commit_sha" field.
func BaseCommitShaContainsFold ¶
BaseCommitShaContainsFold applies the ContainsFold predicate on the "base_commit_sha" field.
func BaseCommitShaEQ ¶
BaseCommitShaEQ applies the EQ predicate on the "base_commit_sha" field.
func BaseCommitShaEqualFold ¶
BaseCommitShaEqualFold applies the EqualFold predicate on the "base_commit_sha" field.
func BaseCommitShaGT ¶
BaseCommitShaGT applies the GT predicate on the "base_commit_sha" field.
func BaseCommitShaGTE ¶
BaseCommitShaGTE applies the GTE predicate on the "base_commit_sha" field.
func BaseCommitShaHasPrefix ¶
BaseCommitShaHasPrefix applies the HasPrefix predicate on the "base_commit_sha" field.
func BaseCommitShaHasSuffix ¶
BaseCommitShaHasSuffix applies the HasSuffix predicate on the "base_commit_sha" field.
func BaseCommitShaIn ¶
BaseCommitShaIn applies the In predicate on the "base_commit_sha" field.
func BaseCommitShaLT ¶
BaseCommitShaLT applies the LT predicate on the "base_commit_sha" field.
func BaseCommitShaLTE ¶
BaseCommitShaLTE applies the LTE predicate on the "base_commit_sha" field.
func BaseCommitShaNEQ ¶
BaseCommitShaNEQ applies the NEQ predicate on the "base_commit_sha" field.
func BaseCommitShaNotIn ¶
BaseCommitShaNotIn applies the NotIn predicate on the "base_commit_sha" field.
func BranchName ¶
BranchName applies equality check predicate on the "branch_name" field. It's identical to BranchNameEQ.
func BranchNameContains ¶
BranchNameContains applies the Contains predicate on the "branch_name" field.
func BranchNameContainsFold ¶
BranchNameContainsFold applies the ContainsFold predicate on the "branch_name" field.
func BranchNameEQ ¶
BranchNameEQ applies the EQ predicate on the "branch_name" field.
func BranchNameEqualFold ¶
BranchNameEqualFold applies the EqualFold predicate on the "branch_name" field.
func BranchNameGT ¶
BranchNameGT applies the GT predicate on the "branch_name" field.
func BranchNameGTE ¶
BranchNameGTE applies the GTE predicate on the "branch_name" field.
func BranchNameHasPrefix ¶
BranchNameHasPrefix applies the HasPrefix predicate on the "branch_name" field.
func BranchNameHasSuffix ¶
BranchNameHasSuffix applies the HasSuffix predicate on the "branch_name" field.
func BranchNameIn ¶
BranchNameIn applies the In predicate on the "branch_name" field.
func BranchNameLT ¶
BranchNameLT applies the LT predicate on the "branch_name" field.
func BranchNameLTE ¶
BranchNameLTE applies the LTE predicate on the "branch_name" field.
func BranchNameNEQ ¶
BranchNameNEQ applies the NEQ predicate on the "branch_name" field.
func BranchNameNotIn ¶
BranchNameNotIn applies the NotIn predicate on the "branch_name" field.
func HasSession ¶
HasSession applies the HasEdge predicate on the "session" edge.
func HasSessionWith ¶
HasSessionWith applies the HasEdge predicate on the "session" edge with a given conditions (other predicates).
func RepoPath ¶
RepoPath applies equality check predicate on the "repo_path" field. It's identical to RepoPathEQ.
func RepoPathContains ¶
RepoPathContains applies the Contains predicate on the "repo_path" field.
func RepoPathContainsFold ¶
RepoPathContainsFold applies the ContainsFold predicate on the "repo_path" field.
func RepoPathEQ ¶
RepoPathEQ applies the EQ predicate on the "repo_path" field.
func RepoPathEqualFold ¶
RepoPathEqualFold applies the EqualFold predicate on the "repo_path" field.
func RepoPathGT ¶
RepoPathGT applies the GT predicate on the "repo_path" field.
func RepoPathGTE ¶
RepoPathGTE applies the GTE predicate on the "repo_path" field.
func RepoPathHasPrefix ¶
RepoPathHasPrefix applies the HasPrefix predicate on the "repo_path" field.
func RepoPathHasSuffix ¶
RepoPathHasSuffix applies the HasSuffix predicate on the "repo_path" field.
func RepoPathIn ¶
RepoPathIn applies the In predicate on the "repo_path" field.
func RepoPathLT ¶
RepoPathLT applies the LT predicate on the "repo_path" field.
func RepoPathLTE ¶
RepoPathLTE applies the LTE predicate on the "repo_path" field.
func RepoPathNEQ ¶
RepoPathNEQ applies the NEQ predicate on the "repo_path" field.
func RepoPathNotIn ¶
RepoPathNotIn applies the NotIn predicate on the "repo_path" field.
func SessionName ¶
SessionName applies equality check predicate on the "session_name" field. It's identical to SessionNameEQ.
func SessionNameContains ¶
SessionNameContains applies the Contains predicate on the "session_name" field.
func SessionNameContainsFold ¶
SessionNameContainsFold applies the ContainsFold predicate on the "session_name" field.
func SessionNameEQ ¶
SessionNameEQ applies the EQ predicate on the "session_name" field.
func SessionNameEqualFold ¶
SessionNameEqualFold applies the EqualFold predicate on the "session_name" field.
func SessionNameGT ¶
SessionNameGT applies the GT predicate on the "session_name" field.
func SessionNameGTE ¶
SessionNameGTE applies the GTE predicate on the "session_name" field.
func SessionNameHasPrefix ¶
SessionNameHasPrefix applies the HasPrefix predicate on the "session_name" field.
func SessionNameHasSuffix ¶
SessionNameHasSuffix applies the HasSuffix predicate on the "session_name" field.
func SessionNameIn ¶
SessionNameIn applies the In predicate on the "session_name" field.
func SessionNameLT ¶
SessionNameLT applies the LT predicate on the "session_name" field.
func SessionNameLTE ¶
SessionNameLTE applies the LTE predicate on the "session_name" field.
func SessionNameNEQ ¶
SessionNameNEQ applies the NEQ predicate on the "session_name" field.
func SessionNameNotIn ¶
SessionNameNotIn applies the NotIn predicate on the "session_name" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func WorktreePath ¶
WorktreePath applies equality check predicate on the "worktree_path" field. It's identical to WorktreePathEQ.
func WorktreePathContains ¶
WorktreePathContains applies the Contains predicate on the "worktree_path" field.
func WorktreePathContainsFold ¶
WorktreePathContainsFold applies the ContainsFold predicate on the "worktree_path" field.
func WorktreePathEQ ¶
WorktreePathEQ applies the EQ predicate on the "worktree_path" field.
func WorktreePathEqualFold ¶
WorktreePathEqualFold applies the EqualFold predicate on the "worktree_path" field.
func WorktreePathGT ¶
WorktreePathGT applies the GT predicate on the "worktree_path" field.
func WorktreePathGTE ¶
WorktreePathGTE applies the GTE predicate on the "worktree_path" field.
func WorktreePathHasPrefix ¶
WorktreePathHasPrefix applies the HasPrefix predicate on the "worktree_path" field.
func WorktreePathHasSuffix ¶
WorktreePathHasSuffix applies the HasSuffix predicate on the "worktree_path" field.
func WorktreePathIn ¶
WorktreePathIn applies the In predicate on the "worktree_path" field.
func WorktreePathLT ¶
WorktreePathLT applies the LT predicate on the "worktree_path" field.
func WorktreePathLTE ¶
WorktreePathLTE applies the LTE predicate on the "worktree_path" field.
func WorktreePathNEQ ¶
WorktreePathNEQ applies the NEQ predicate on the "worktree_path" field.
func WorktreePathNotIn ¶
WorktreePathNotIn applies the NotIn predicate on the "worktree_path" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Worktree queries.
func ByBaseCommitSha ¶
func ByBaseCommitSha(opts ...sql.OrderTermOption) OrderOption
ByBaseCommitSha orders the results by the base_commit_sha field.
func ByBranchName ¶
func ByBranchName(opts ...sql.OrderTermOption) OrderOption
ByBranchName orders the results by the branch_name field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByRepoPath ¶
func ByRepoPath(opts ...sql.OrderTermOption) OrderOption
ByRepoPath orders the results by the repo_path field.
func BySessionField ¶
func BySessionField(field string, opts ...sql.OrderTermOption) OrderOption
BySessionField orders the results by session field.
func BySessionName ¶
func BySessionName(opts ...sql.OrderTermOption) OrderOption
BySessionName orders the results by the session_name field.
func ByWorktreePath ¶
func ByWorktreePath(opts ...sql.OrderTermOption) OrderOption
ByWorktreePath orders the results by the worktree_path field.