binding

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TemplateMergeFunc = `` /* 349-byte string literal not displayed */

	TemplateMatchFuncFull = `` /* 156-byte string literal not displayed */

	TemplateMergeLinkInclude       = "MERGE (%s)-[:INCLUDE]->(%s)"
	TemplateMergeLinkFuncReference = "WITH func%d, func%d MERGE (%s)-[:FUNC_REFERENCE]->(%s)"
)

indexes and constraint (neo4j 5.x avoid some conflicts

Variables

This section is empty.

Functions

func ToRevKey added in v0.9.0

func ToRevKey(revHash string) *revKey

func WorkspaceConfigFromKey

func WorkspaceConfigFromKey(key string) (*object.WorkspaceConfig, error)

Types

type Driver

type Driver interface {
	// contains filtered or unexported methods
}

func InitDriver

func InitDriver(config object.ExecuteConfig, ctx context.Context) (Driver, error)

func NewNeo4jDriver

func NewNeo4jDriver(dwc neo4j.DriverWithContext) (Driver, error)

type TiKVDriver added in v0.9.0

type TiKVDriver struct {
	// contains filtered or unexported fields
}

func (*TiKVDriver) CreateClazzFile added in v0.10.0

func (*TiKVDriver) CreateFuncContext added in v0.9.0

func (t *TiKVDriver) CreateFuncContext(wc *object.WorkspaceConfig, f *sibyl2.FunctionContext, ctx context.Context) error

func (*TiKVDriver) CreateFuncFile added in v0.9.0

func (*TiKVDriver) CreateWorkspace added in v0.9.0

func (t *TiKVDriver) CreateWorkspace(wc *object.WorkspaceConfig, ctx context.Context) error

func (*TiKVDriver) DeferDriver added in v0.9.0

func (t *TiKVDriver) DeferDriver() error

func (*TiKVDriver) DeleteWorkspace added in v0.9.0

func (t *TiKVDriver) DeleteWorkspace(wc *object.WorkspaceConfig, ctx context.Context) error

func (*TiKVDriver) GetType added in v0.9.0

func (t *TiKVDriver) GetType() object.DriverType

func (*TiKVDriver) InitDriver added in v0.9.0

func (t *TiKVDriver) InitDriver(_ context.Context) error

func (*TiKVDriver) ReadClasses added in v0.10.0

func (t *TiKVDriver) ReadClasses(wc *object.WorkspaceConfig, path string, ctx context.Context) ([]*sibyl2.ClazzWithPath, error)

func (*TiKVDriver) ReadClassesWithLines added in v0.10.0

func (t *TiKVDriver) ReadClassesWithLines(wc *object.WorkspaceConfig, path string, lines []int, ctx context.Context) ([]*sibyl2.ClazzWithPath, error)

func (*TiKVDriver) ReadFiles added in v0.9.0

func (t *TiKVDriver) ReadFiles(wc *object.WorkspaceConfig, ctx context.Context) ([]string, error)

func (*TiKVDriver) ReadFunctionContextWithSignature added in v0.9.0

func (t *TiKVDriver) ReadFunctionContextWithSignature(wc *object.WorkspaceConfig, signature string, ctx context.Context) (*sibyl2.FunctionContext, error)

func (*TiKVDriver) ReadFunctionContextsWithLines added in v0.10.0

func (t *TiKVDriver) ReadFunctionContextsWithLines(wc *object.WorkspaceConfig, path string, lines []int, ctx context.Context) ([]*sibyl2.FunctionContext, error)

func (*TiKVDriver) ReadFunctionWithSignature added in v0.9.0

func (t *TiKVDriver) ReadFunctionWithSignature(wc *object.WorkspaceConfig, signature string, ctx context.Context) (*sibyl2.FunctionWithPath, error)

func (*TiKVDriver) ReadFunctions added in v0.9.0

func (t *TiKVDriver) ReadFunctions(wc *object.WorkspaceConfig, path string, ctx context.Context) ([]*sibyl2.FunctionWithPath, error)

func (*TiKVDriver) ReadFunctionsWithLines added in v0.9.0

func (t *TiKVDriver) ReadFunctionsWithLines(wc *object.WorkspaceConfig, path string, lines []int, ctx context.Context) ([]*sibyl2.FunctionWithPath, error)

func (*TiKVDriver) ReadRepos added in v0.9.0

func (t *TiKVDriver) ReadRepos(_ context.Context) ([]string, error)

func (*TiKVDriver) ReadRevs added in v0.9.0

func (t *TiKVDriver) ReadRevs(repoId string, _ context.Context) ([]string, error)

func (*TiKVDriver) UpdateFileProperties added in v0.9.0

func (t *TiKVDriver) UpdateFileProperties(wc *object.WorkspaceConfig, path string, k string, v any, ctx context.Context) error

func (*TiKVDriver) UpdateFuncProperties added in v0.9.0

func (t *TiKVDriver) UpdateFuncProperties(wc *object.WorkspaceConfig, signature string, k string, v any, ctx context.Context) error

func (*TiKVDriver) UpdateRevProperties added in v0.9.0

func (t *TiKVDriver) UpdateRevProperties(wc *object.WorkspaceConfig, k string, v any, ctx context.Context) error

Jump to

Keyboard shortcuts

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