Data Storage
sql
<50ms global queries Sql with zero-config TypeScript types. Deploy to 300+ edge locations, get instant AI agent access, and scale automatically. type-safe queries start free.
sql
SQL.do
Overview
The sql primitive is part of the .do platform's semantic API system. It follows the $.Subject.verb.Object pattern for consistent, intuitive interactions across SDK, CLI, API, and MCP interfaces.
Semantic Pattern
All sql operations follow the semantic $.Sql.verb.Object pattern:
import { $, sql } from 'sdk.do'
// Create resources
await $.Sql.create.Resource({ /* config */ })
// Query data
await $.Sql.get.Data({ /* params */ })
// Update state
await $.Sql.update.Status({ /* changes */ })Quick Start
import { sql } from 'sdk.do'
// Initialize and use the primitive
const result = await sql.operation({
// configuration parameters
})Access Methods
The sql primitive is accessible through multiple interfaces:
SDK
TypeScript/JavaScript library for programmatic access:
import { sql } from 'sdk.do'
await sql.method({ /* ... */ })CLI
Command-line interface for terminal operations:
do sql <command> [options]API
REST/RPC endpoints for HTTP integration:
curl -X POST https://api.do/v1/sql \
-H "Content-Type: application/json" \
-d '{"key":"value"}'MCP
Model Context Protocol for AI assistant integration:
Use sql primitives with AI assistants via MCPRelated Primitives
See other primitives in the data-storage category.