ormdb-cli-0.1.0 is not a library.
ormdb-cli
Command-line interface for ORMDB.
Overview
ormdb-cli provides an interactive REPL and scripting interface for ORMDB. Features include:
- Interactive REPL - Query and explore your database
- Syntax Highlighting - Colored output for readability
- History - Command history with search
- Scripting - Execute query files
- Table Output - Formatted table display
Installation
# Install from crates.io
# Or build from source
Usage
Interactive Mode
# Connect to local server
# Connect to specific server
# Connect with URL
REPL Commands
ormdb> FETCH User WHERE id = 1 INCLUDE posts
┌────┬─────────┬─────────────────────┐
│ id │ name │ email │
├────┼─────────┼─────────────────────┤
│ 1 │ Alice │ alice@example.com │
└────┴─────────┴─────────────────────┘
ormdb> .tables # List all entities
ormdb> .schema User # Show entity schema
ormdb> .indexes User # Show indexes
ormdb> .help # Show help
ormdb> .quit # Exit
Script Mode
# Execute a query file
# Execute inline query
# Output as JSON
Configuration
Configuration file: ~/.config/ormdb/config.toml
[]
= "ormdb://localhost:5432"
[]
= "table" # table, json, csv
= true
[]
= 1000
License
MIT License - see LICENSE for details.
Part of the ORMDB project.