C++ Runtime Guide
TeaQL generates a C++20 domain library, typed Q/E APIs, model-aware Assist and an editable SQLite console. Use it for native and edge applications that need business queries and audited persistence alongside existing C++ code.
The published runtime is teaql-cpp 0.2.0. SQLite is its only database provider. The initial Conan binary profile is Linux x86_64, Clang 23, libstdc++11, C++20 and Debug; follow the locked native toolchain guide. See Latest Versions for release authorities.
Start here
- Quick Start — generate the tenant/document/entry model, install the published runtime and run the SQLite console.
- First Verification — distinguish public generation, package resolution, smoke execution and the retained graph tests.
- Business Scenarios — choose the relevant Query, Write, Expression, List Page or Stream Assist workflow.
- Customization — assemble trusted runtime services and extend application code while preserving the generated library.
- Debugging — diagnose toolchain, runtime selection, loaded state and Context lifetime failures.
- Data Operations — read and update complete scalar state with the generated application helpers.
Runtime shape
An application owns GlobalContext and creates a UserContext for a unit of
work. Bind Q with user_context.queries<query_factory>(). Queries and saves
execute through that trusted user_context; results borrow its lifetime.
Complete asynchronous work and consume results before closing it. Retaining
data in another scope requires an explicit destination copy.
Application-facing Q/E/model methods use lowerCamelCase. Runtime services and
ownership infrastructure use snake_case, including the audited mutation's
audit_as. Discover exact model methods through generated Assist.
Evidence boundary
The 0.2.0 release and its verification record record an isolated published-package consumer, two native tests and twelve graph observations. The First Verification page separates those results from this documentation check.
The existing Conformance Status, School and Order receipts cover seven earlier runtimes. They do not count C++ as an eighth execution. C++ has its own SQLite example; the seven-language Order tutorials and provider matrix retain their original scope. Other database providers, a browser profile and physical-router execution are outside this C++ guide's verified scope.