Namespace Management
A namespace is a logical container for graphs. It helps organize and manage multiple graphs by grouping them together. Each graph must belong to exactly one namespace.
Key points about namespaces:
- Namespaces provide isolation between different graph collections
- Graph names must be unique within a namespace
You can create, drop, and manage namespaces using the commands below.
Create Namespace
Syntax
CREATE NAMESPACE <namespace_name>Example
The following example create a namespace named test_ns.
CREATE NAMESPACE test_nsDrop Namespace
Drop a namespace and all graphs inside.
Syntax
DROP NAMESPACE <namespace_name>Example
The following example drop a namespace named test_ns.
DROP NAMESPACE test_nsDescribe Namespace
Desribe the meta information about namespace
Syntax
DESCRIBE NAMESPACE <namespace_name>Example
DESCRIBE NAMESPACE test_nsList Namespace
List all namespaces. Syntax
LIST NAMESPACEExample
LIST NAMESPACELast updated on