Documentation ¶
Index ¶
- Constants
- func ToRevKey(revHash string) *revKey
- func WorkspaceConfigFromKey(key string) (*object.WorkspaceConfig, error)
- type Driver
- type TiKVDriver
- func (t *TiKVDriver) CreateClazzFile(wc *object.WorkspaceConfig, c *extractor.ClazzFileResult, ctx context.Context) error
- func (t *TiKVDriver) CreateFuncContext(wc *object.WorkspaceConfig, f *sibyl2.FunctionContext, ctx context.Context) error
- func (t *TiKVDriver) CreateFuncFile(wc *object.WorkspaceConfig, f *extractor.FunctionFileResult, ...) error
- func (t *TiKVDriver) CreateWorkspace(wc *object.WorkspaceConfig, ctx context.Context) error
- func (t *TiKVDriver) DeferDriver() error
- func (t *TiKVDriver) DeleteWorkspace(wc *object.WorkspaceConfig, ctx context.Context) error
- func (t *TiKVDriver) GetType() object.DriverType
- func (t *TiKVDriver) InitDriver(_ context.Context) error
- func (t *TiKVDriver) ReadClasses(wc *object.WorkspaceConfig, path string, ctx context.Context) ([]*sibyl2.ClazzWithPath, error)
- func (t *TiKVDriver) ReadClassesWithLines(wc *object.WorkspaceConfig, path string, lines []int, ctx context.Context) ([]*sibyl2.ClazzWithPath, error)
- func (t *TiKVDriver) ReadFiles(wc *object.WorkspaceConfig, ctx context.Context) ([]string, error)
- func (t *TiKVDriver) ReadFunctionContextWithSignature(wc *object.WorkspaceConfig, signature string, ctx context.Context) (*sibyl2.FunctionContext, error)
- func (t *TiKVDriver) ReadFunctionContextsWithLines(wc *object.WorkspaceConfig, path string, lines []int, ctx context.Context) ([]*sibyl2.FunctionContext, error)
- func (t *TiKVDriver) ReadFunctionWithSignature(wc *object.WorkspaceConfig, signature string, ctx context.Context) (*sibyl2.FunctionWithPath, error)
- func (t *TiKVDriver) ReadFunctions(wc *object.WorkspaceConfig, path string, ctx context.Context) ([]*sibyl2.FunctionWithPath, error)
- func (t *TiKVDriver) ReadFunctionsWithLines(wc *object.WorkspaceConfig, path string, lines []int, ctx context.Context) ([]*sibyl2.FunctionWithPath, error)
- func (t *TiKVDriver) ReadRepos(_ context.Context) ([]string, error)
- func (t *TiKVDriver) ReadRevs(repoId string, _ context.Context) ([]string, error)
- func (t *TiKVDriver) UpdateFileProperties(wc *object.WorkspaceConfig, path string, k string, v any, ctx context.Context) error
- func (t *TiKVDriver) UpdateFuncProperties(wc *object.WorkspaceConfig, signature string, k string, v any, ...) error
- func (t *TiKVDriver) UpdateRevProperties(wc *object.WorkspaceConfig, k string, v any, ctx context.Context) error
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 WorkspaceConfigFromKey ¶
func WorkspaceConfigFromKey(key string) (*object.WorkspaceConfig, error)
Types ¶
type Driver ¶
type Driver interface {
// contains filtered or unexported methods
}
func InitDriver ¶
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 (t *TiKVDriver) CreateClazzFile(wc *object.WorkspaceConfig, c *extractor.ClazzFileResult, ctx context.Context) error
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 (t *TiKVDriver) CreateFuncFile(wc *object.WorkspaceConfig, f *extractor.FunctionFileResult, ctx context.Context) error
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) 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
Click to show internal directories.
Click to hide internal directories.