Documentation
¶
Overview ¶
Package graphdb to access the Kuzu graph database
Index ¶
Constants ¶
View Source
const ConnectionDuration = 20 * time.Minute
View Source
const MaintenanceInterval = 1 * time.Minute
View Source
const MaxBufferSize = 200 * 1024 * 1024 // 200 MB
View Source
const MaxConnections = 10 // maximum number of connections to single database
View Source
const MinBufferSize = 10 * 1024 * 1024 // 10 MB
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GraphDB ¶ added in v1.4.0
type GraphDB struct {
NamespaceID uint64 // namespace ID (currently only project namespace ID)
GraphIndexDir string
NamespaceBaseDataDir string
DbPath string // kuzu database file path
MetadataPath string // kuzu database file path
}
func NewGraphDb ¶ added in v1.4.0
func (*GraphDB) CommitGraphDatabase ¶ added in v1.4.0
func (client *GraphDB) CommitGraphDatabase(_ context.Context, temporaryGraphDatabasePath string, metadata *GraphDBMetadata) error
CommitGraphDatabase indexing using knowledge-graph to a temporary graph directory, this function should be used to commit the temporary graph directory into the namespace graph database directory
func (*GraphDB) GetNewGraphDBTemporaryPath ¶ added in v1.4.0
func (*GraphDB) Metadata ¶ added in v1.4.0
func (client *GraphDB) Metadata() (*GraphDBMetadata, error)
func (*GraphDB) RepoDatabaseExists ¶ added in v1.4.0
Click to show internal directories.
Click to hide internal directories.