cosq-0.5.0 is not a library.
Quick Start
# Install (macOS / Linux)
# Or via cargo
# Login to Azure
# Initialize with a Cosmos DB account
# Run a query
# Output as table or CSV
# Pipe-friendly (JSON to stdout, metadata to stderr)
|
Stored Queries
Save and reuse parameterized queries as .cosq files:
# Create a stored query (opens in editor)
# List all stored queries
# Run a stored query (interactive parameter prompts)
# Run with parameters from the command line
# Browse and pick a query interactively
AI Query Generation
Generate stored queries from natural language — the AI samples your actual documents for field-accurate SQL and auto-generates output templates:
# Set up AI (auto-detects Claude, Codex, Copilot, Ollama, or Azure OpenAI)
# Fully interactive: pick database, container, describe your query
# Or provide a description directly
# Target a specific database/container
See INSTALL.md for all installation methods, shell completions, and platform-specific instructions.
Development
License
MIT