npx skills add ...
npx skills add convex-dev/convex --skill convex-db
Use Convex DB — a lattice-backed SQL database. Use when helping users write queries, connect via JDBC or PostgreSQL clients, create tables, insert/query data, or use the direct lattice API.
npx skills add convex-dev/convex --skill convex-db
Convex DB provides SQL access over lattice data. Connect via JDBC, PostgreSQL wire protocol, or the direct lattice API.
Reference: convex-db/README.md for full documentation including replication, PostgreSQL server setup, and architecture details.
Driver auto-registers via ServiceLoader. Class: convex.db.jdbc.ConvexDriver
Column 0 (first column) is always the primary key. Types are inferred from inserted data.
For bulk loading, use prepared statements with batch:
CREATE TABLE, DROP TABLEINSERT, UPDATE, DELETESELECT, WHERE, ORDER BY, LIMIT, OFFSETINNER JOIN, LEFT JOIN, RIGHT JOIN, CROSS JOINGROUP BY, HAVING, COUNT, SUM, AVG, MIN, MAXCASE WHEN, COALESCE, CAST, BETWEEN, IN, LIKE, IS NULLABS, FLOOR, CEIL, SQRT, UPPER, LOWER, TRIM, SUBSTRING, LENGTH, CONCAT| SQL Type | CVM Type | Notes |
|---|---|---|
| BIGINT / INTEGER | CVMLong | 64-bit signed integer |
| DOUBLE | CVMDouble | 64-bit float |
| VARCHAR | AString | Unicode string |
| BOOLEAN | CVMBool | true/false |
| VARBINARY / BLOB | ABlob | Binary data |
| TIMESTAMP | CVMLong | Milliseconds since epoch |
| ANY | ACell | Dynamic type |
For programmatic access without SQL overhead:
WHERE id = ?) for point queries — O(log n) via index pushdownRun from the repository root — see the build-convex skill.