git

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(ext *sqlite.ExtensionApi, opt *options.Options) (_ sqlite.ErrorCode, err error)

Register registers git related functionality as a SQLite extension

Types

type CommitFromTagFn

type CommitFromTagFn struct{}

CommitFromTagFn implements the COMMIT_FROM_TAG(...) sql function

func (*CommitFromTagFn) Apply

func (*CommitFromTagFn) Apply(c *sqlite.Context, values ...sqlite.Value)

func (*CommitFromTagFn) Args

func (*CommitFromTagFn) Args() int

func (*CommitFromTagFn) Deterministic

func (*CommitFromTagFn) Deterministic() bool

type LogModule

type LogModule struct {
	Locator services.RepoLocator
	Context services.Context
}

func (*LogModule) Connect

func (mod *LogModule) Connect(_ *sqlite.Conn, _ []string, declare func(string) error) (sqlite.VirtualTable, error)

type RefModule

type RefModule struct {
	Locator services.RepoLocator
	Context services.Context
}

func (*RefModule) Connect

func (mod *RefModule) Connect(_ *sqlite.Conn, _ []string, declare func(string) error) (sqlite.VirtualTable, error)

Directories

Path Synopsis
Package native provides virtual table implementations for git tables using libgit2 via the git2go bindings (https://github.com/libgit2/git2go).
Package native provides virtual table implementations for git tables using libgit2 via the git2go bindings (https://github.com/libgit2/git2go).

Jump to

Keyboard shortcuts

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