.do
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({ /* ... */ })

SDK Documentation

CLI

Command-line interface for terminal operations:

do sql <command> [options]

CLI Documentation

API

REST/RPC endpoints for HTTP integration:

curl -X POST https://api.do/v1/sql \
  -H "Content-Type: application/json" \
  -d '{"key":"value"}'

API Documentation

MCP

Model Context Protocol for AI assistant integration:

Use sql primitives with AI assistants via MCP

MCP Documentation

See other primitives in the data-storage category.