Introduction to KaiwaDB
KaiwaDB generates database queries without ever accessing your data. You simply provide your database schema, and our AI generates the query without seeing any actual data.
Our models construct queries using our proprietary DSL (Domain Specific Language), which are then compiled for your specific database engine. This DSL is designed to prevent destructive operations, making the generated queries generaly safe.
You maintain full control by running the queries yourself (unless you’re using our agent service).
Since queries are generated solely from schema information, they can be cached and reused, significantly reducing latency for repeated questions.
Key Benefits
This approach unlocks powerful new use cases:
- Proactive AI: Use generated queries on change streams to enable proactive AI responses
- Seamless Multi-tenancy: Handle multi-tenant scenarios effortlessly using Row Level Security (RLS)
- Complex Database Integration: Create simple AI connections to complex database systems
- Legacy Schema Enhancement: Improve AI understanding by aliasing poorly named tables and fields, and providing semantic meaning to cryptic enums
Agent Service
The Agent service is designed for lazy/impatient developers who prefer not to build custom integrations using our REST API or SDKs.
The Agent is a lightweight, open-source binary that you run on your server (typically behind a VPN) with database access. It connects to our servers and forwards generated queries from the dashboard to your database.
The agent is available for Mac, Linux, and Windows.
Deploying the agent grants external access to your database infrastructure.