DBQC in VS Code

DBQC brings the definition-to-SQL feedback loop into the place where application query logic is written. It uses discovered schema definitions to help construct a DBQC query, invokes the DBQC compiler for diagnostics and emitted SQL, then carries that same definition into tests and CI. The editor does not take over connections, transactions, or query execution: the emitted SQL continues to run through the driver and runtime already used by the application.

A code editor with a schema warning flows through DBQC compiler validation into an SQL artifact, then separately into the application's existing driver and database.

The feedback loop

  1. Write with schema context. The extension recognizes DBQC definitions in

Python, TypeScript, Java, Rust, Scala, and .dbqc.json files. After schema discovery, it can suggest table and column names, show type information on hover, and flag names missing from the cached schema.

  1. Compile the definition where you work. A compile action hands the DBQC

definition and chosen dialect to the DBQC compiler. The emitted SQL, ordered parameters, result schema, errors, and warnings are available in VS Code. It does not run the host application or scrape SQL from program output.

  1. Carry the evidence forward. The same definition can be compiled in a

unit test or with the CI check command. Keep a generated SQL fixture, review its diff, or use Query Comparison when a refactor needs stronger behavioral evidence.

  1. Execute with your stack. Pass the SQL and ordered parameters to JDBC,

psycopg, node-postgres, sqlx, Skunk, Doobie, or the driver your application already uses. Connection pooling, retries, transactions, and result handling remain there.

What the extension provides

local schema diagnostics from the discovered schema cache.

selected target dialect, without executing application code.

ordered parameters, and result schema inspectable before the application executes anything.

TypeScript, Java, Rust, and Scala, plus the portable JSON representation.

Local schema feedback is intentionally helpful rather than authoritative: a fresh schema discovery updates the cache, while the DBQC compiler remains the source of complete structural and dialect checks. See Schema Discovery for creating the definitions and refreshing the schema model.

A practical first use

Choose one existing query workflow. Discover its schema, express the query as a DBQC definition in the client language, and use the editor to inspect emitted SQL and diagnostics. Then execute that SQL through the existing application code and add a CI check or a focused test. The evaluation is about whether the feedback and evidence improve that workflow—not about replacing the execution stack.

For a realistic schema-change example, start with one query change, caught before it runs. For a bounded evaluation plan, use the pilot.

Commercial teams can use the Free plan for a 30-day evaluation. Personal and nonprofit use can continue without a time limit, in each case within the plan's daily compilation allocation. See Pricing for the full terms.