GraphDbBindings class
Bindings for src/graph_db.h.
Regenerate bindings with dart run ffigen --config ffigen.yaml.
Constructors
- GraphDbBindings(DynamicLibrary dynamicLibrary)
-
The symbols are looked up in
dynamicLibrary. -
GraphDbBindings.fromLookup(Pointer<
T> lookup<T extends NativeType>(String symbolName) ) -
The symbols are looked up with
lookup.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
graphdb_build_edge_index(
Pointer< Box> box) → void -
graphdb_build_node_index(
Pointer< Box> box) → void - Build indexes manually (optional, usually called internally)
-
graphdb_estimate_nodes_size(
Pointer< Box> box, Pointer<Char> jsonData) → int - Estimate node chunk size from JSON (returns size in bytes)
-
graphdb_free_string(
Pointer< Char> str) → void - Free memory returned by load_node/load_edges
-
graphdb_init(
Pointer< Char> boxName) → Pointer<Box> - Initialize the storage (creates Storage instance)
-
graphdb_load_edges(
Pointer< Box> box, Pointer<Char> nodeId) → Pointer<Char> - Load edges for a node (returns malloc'ed JSON string)
-
graphdb_load_node(
Pointer< Box> box, Pointer<Char> nodeId) → Pointer<Char> - Load a single node by ID (returns malloc'ed string, free with graphdb_free_string)
-
graphdb_save_edges(
Pointer< Box> box, Pointer<Char> jsonData) → void -
graphdb_save_nodes(
Pointer< Box> box, Pointer<Char> jsonData) → void - Save nodes / edges from JSON string
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited