Documentation
¶
Index ¶
- Constants
- func DefaultNeo4jCSVNornicSchemaPath(dir string) string
- func DefaultNeo4jCSVSchemaPath(dir string) string
- func DiscoverNeo4jCSVSources(dir string, opts Options) (nodeSources []string, relSources []string, err error)
- func ExportNeo4jCSV(engine storage.ExportableEngine, opts Neo4jCSVExportOptions) error
- type Error
- type Neo4jCSVExportOptions
- type Options
- type Report
Constants ¶
View Source
const ( ExitOK = 0 ExitCSV = 2 ExitBadRelationship = 3 ExitDuplicateID = 4 ExitConstraintViolation = 5 ExitUnsupported = 6 )
View Source
const Neo4jCSVNornicSchemaFileName = "schema.nornic.json"
View Source
const Neo4jCSVSchemaFileName = "schema.cypher"
Variables ¶
This section is empty.
Functions ¶
func DiscoverNeo4jCSVSources ¶
func ExportNeo4jCSV ¶
func ExportNeo4jCSV(engine storage.ExportableEngine, opts Neo4jCSVExportOptions) error
Types ¶
type Error ¶
type Error struct {
ExitCode int
Message string
LocalizedMessage localization.Message
Err error
}
func NewLocalizedError ¶ added in v1.3.1
func NewLocalizedError(exitCode int, message localization.Message, err error) *Error
NewLocalizedError creates an import error with a stable exit code and message descriptor.
type Neo4jCSVExportOptions ¶
type Options ¶
type Options struct {
DatabaseName string
NodeSources []string
RelSources []string
DataDir string
Delimiter rune
ArrayDelimiter rune
VectorDelimiter rune
Quote rune
IDType string
NormalizeTypes bool
IgnoreExtraColumns bool
IgnoreEmptyStrings bool
BadTolerance int
SkipBadRelationships bool
SkipDuplicateNodes bool
ReportFile string
SchemaFile string
BuildIndexes bool
ChunkSize int
Now time.Time
Verbose bool
}
type Report ¶
type Report struct {
DatabaseName string `json:"databaseName"`
NodesImported int64 `json:"nodesImported"`
RelationshipsImported int64 `json:"relationshipsImported"`
BadRelationships int64 `json:"badRelationships"`
DuplicateNodesSkipped int64 `json:"duplicateNodesSkipped"`
IndexesBuilt bool `json:"indexesBuilt"`
StartedAt time.Time `json:"startedAt"`
CompletedAt time.Time `json:"completedAt"`
Duration time.Duration `json:"durationNanos"`
Status string `json:"status"`
Errors []string `json:"errors,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.