function

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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.

func Register

func Register(c *sql.Catalog)

Register all the gitquery functions in the SQL catalog.

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) Eval

func (f *CommitHasBlob) Eval(session sql.Session, row sql.Row) (interface{}, error)

Eval implements the Expression interface.

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) Eval

func (f *CommitHasTree) Eval(s sql.Session, row sql.Row) (interface{}, error)

Eval implements the Expression interface.

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) Eval

func (f *HistoryIdx) Eval(session sql.Session, row sql.Row) (interface{}, error)

Eval implements the Expression interface.

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) Eval

func (f *IsRemote) Eval(session sql.Session, row sql.Row) (interface{}, error)

Eval implements the expression interface.

func (IsRemote) String

func (f IsRemote) String() string

func (IsRemote) TransformUp

func (f IsRemote) TransformUp(fn func(sql.Expression) (sql.Expression, error)) (sql.Expression, error)

TransformUp implements the Expression interface.

func (IsRemote) Type

func (IsRemote) Type() sql.Type

Type implements the Expression interface.

type IsTag

type IsTag struct {
	expression.UnaryExpression
}

IsTag checks the given string is a tag name.

func (*IsTag) Eval

func (f *IsTag) Eval(session sql.Session, row sql.Row) (interface{}, error)

Eval implements the expression interface.

func (IsTag) String

func (f IsTag) String() string

func (IsTag) TransformUp

func (f IsTag) TransformUp(fn func(sql.Expression) (sql.Expression, error)) (sql.Expression, error)

TransformUp implements the Expression interface.

func (IsTag) Type

func (IsTag) Type() sql.Type

Type implements the Expression interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL