Documentation
      ¶
    
    
  
    
  
    Index ¶
- func NewCommitHasBlob(commitHash, blob sql.Expression) sql.Expression
 - func NewCommitHasTree(commit, tree sql.Expression) sql.Expression
 - func NewHistoryIdx(start, target sql.Expression) sql.Expression
 - func NewIsRemote(e sql.Expression) sql.Expression
 - func NewIsTag(e sql.Expression) sql.Expression
 - func Register(c *sql.Catalog)
 - type CommitHasBlob
 - func (f *CommitHasBlob) Eval(session sql.Session, row sql.Row) (interface{}, error)
 - func (f CommitHasBlob) IsNullable() bool
 - func (f CommitHasBlob) Resolved() bool
 - func (f CommitHasBlob) String() string
 - func (f CommitHasBlob) TransformUp(fn func(sql.Expression) (sql.Expression, error)) (sql.Expression, error)
 - func (CommitHasBlob) Type() sql.Type
 
- type CommitHasTree
 - type HistoryIdx
 - type IsRemote
 - type IsTag
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCommitHasBlob ¶
func NewCommitHasBlob(commitHash, blob sql.Expression) sql.Expression
NewCommitHasBlob creates a new commit_has_blob function.
func NewCommitHasTree ¶
func NewCommitHasTree(commit, tree sql.Expression) sql.Expression
NewCommitHasTree creates a new CommitHasTree function.
func NewHistoryIdx ¶
func NewHistoryIdx(start, target sql.Expression) sql.Expression
NewHistoryIdx creates a new HistoryIdx udf.
func NewIsRemote ¶
func NewIsRemote(e sql.Expression) sql.Expression
NewIsRemote creates a new IsRemote function.
func NewIsTag ¶
func NewIsTag(e sql.Expression) sql.Expression
NewIsTag creates a new IsTag function.
Types ¶
type CommitHasBlob ¶
type CommitHasBlob struct {
	// contains filtered or unexported fields
}
    CommitHasBlob is a function that checks whether a blob is in a commit.
func (CommitHasBlob) IsNullable ¶
func (f CommitHasBlob) IsNullable() bool
IsNullable implements the Expression interface.
func (CommitHasBlob) Resolved ¶
func (f CommitHasBlob) Resolved() bool
Resolved implements the Expression interface.
func (CommitHasBlob) String ¶
func (f CommitHasBlob) String() string
func (CommitHasBlob) TransformUp ¶
func (f CommitHasBlob) TransformUp(fn func(sql.Expression) (sql.Expression, error)) (sql.Expression, error)
TransformUp implements the Expression interface.
func (CommitHasBlob) Type ¶
func (CommitHasBlob) Type() sql.Type
Type implements the Expression interface.
type CommitHasTree ¶
type CommitHasTree struct {
	expression.BinaryExpression
}
    CommitHasTree is a function that checks whether a tree is part of a commit or not.
func (CommitHasTree) String ¶
func (f CommitHasTree) String() string
func (*CommitHasTree) TransformUp ¶
func (f *CommitHasTree) TransformUp(fn func(sql.Expression) (sql.Expression, error)) (sql.Expression, error)
TransformUp implements the Expression interface.
func (CommitHasTree) Type ¶
func (CommitHasTree) Type() sql.Type
Type implements the Expression interface.
type HistoryIdx ¶
type HistoryIdx struct {
	expression.BinaryExpression
}
    HistoryIdx is a function that returns the index of a commit in the history of another commit.
func (HistoryIdx) String ¶
func (f HistoryIdx) String() string
func (*HistoryIdx) TransformUp ¶
func (f *HistoryIdx) TransformUp(fn func(sql.Expression) (sql.Expression, error)) (sql.Expression, error)
TransformUp implements the Expression interface.
func (HistoryIdx) Type ¶
func (HistoryIdx) Type() sql.Type
Type implements the Expression interface.
type IsRemote ¶
type IsRemote struct {
	expression.UnaryExpression
}
    IsRemote checks the given string is a remote reference.
func (IsRemote) TransformUp ¶
func (f IsRemote) TransformUp(fn func(sql.Expression) (sql.Expression, error)) (sql.Expression, error)
TransformUp implements the Expression interface.
type IsTag ¶
type IsTag struct {
	expression.UnaryExpression
}
    IsTag checks the given string is a tag name.
func (IsTag) TransformUp ¶
func (f IsTag) TransformUp(fn func(sql.Expression) (sql.Expression, error)) (sql.Expression, error)
TransformUp implements the Expression interface.