Neumann Shell
Interactive CLI shell for the Neumann unified tensor database.
Installation
Quick Install (Recommended)
|
From crates.io
From Source
Usage
# Start interactive shell
# Execute a single query
# Run queries from a file
Features
- Interactive REPL with readline support
- Syntax highlighting and auto-completion
- Write-ahead logging for crash recovery
- Multi-engine query support (relational, graph, vector)
- Table-formatted output with color support
Query Examples
-- Relational queries
(id INT, name STRING, email STRING);
INSERT INTO users (id, name, email) VALUES (1, 'Alice', 'alice@example.com');
SELECT * FROM users WHERE id = 1;
-- Graph queries
NODE CREATE person { name: 'Bob', age: 30 };
EDGE CREATE 1 -> 2 : knows;
NEIGHBORS 1 knows OUTGOING;
PATH 1 -> 2;
-- Vector queries
EMBED STORE 'doc1' [0.1, 0.2, 0.3, 0.4];
SIMILAR 'doc1' LIMIT 10;
Configuration
The shell reads configuration from ~/.neumann/config.toml:
[]
= "~/.neumann/history"
= 10000
= "neumann> "
[]
= "table" # table, json, csv
= true
License
MIT OR Apache-2.0