Suggestions appear as you type. Use the up and down arrows to choose one and Enter to open it.

This page's audience real numbers from our own analytics — open to see them
–Visitors
–Page views
–Clicks to vendors
–Time on page
–Reading now
Clicks to vendors, by tool
  • –
Top countries
  • –
Devices
  • –

– · counted by iTechGuides's own first-party analytics, bots removed, every figure rounded down · how we count

Lightweight

Free#23 of 51 in Database Query Builders

Lightweight: An open-source C++ library for typed query construction and asynchronous ODBC access. Ranked #23 of 51 in Database Query Builders by our editors (6.7/10); pricing: Free plan; best for C++ teams needing typed async database queries.

6.7/10Editor score
Lightweight6.7 Visit Lightweight

At a glance

  • Editor score
    6.7 / 10
  • Pricing
    Free plan
  • Best for
    C++ teams needing typed async database queries
  • Free plan
    Yes
  • Paid from
    None
  • Type safety
    Static
  • Facts checked
    4 Oct 2026
  • Where it wins

    • Builds typed CRUD queries with joins, filtering, ordering, and pagination
    • Async coroutine API offloads blocking ODBC calls to worker threads
    • Includes migrations, connection pooling, and a data mapper
  • Where it doesn't

    • Supports only SQL Server, PostgreSQL, and SQLite
    • Requires a modern C++ compiler and appropriate ODBC drivers
    • Self-hosted library with community and documentation support

Our verdict on Lightweight

Lightweight is an open-source C++23 database library for applications that connect to Microsoft SQL Server, PostgreSQL, or SQLite through ODBC. Its typed query builder composes SELECT, INSERT, UPDATE, and DELETE statements, with joins, filtering, ordering, grouping, and pagination. C++ teams that want database access in their application code, rather than a hosted query service, are its natural audience; it is documented for Windows and Linux.

The query builder is one part of a broader database toolkit. Applications can use raw SQL when builder composition is not a fit, map database rows to C++ records and relationships, and manage versioned schema migrations. Connection pooling is included as well. The async coroutine API offloads blocking ODBC calls to worker threads, which lets teams use an asynchronous interface while working with those drivers. This scope suits projects that want query construction and several database operations in one library, though it is focused on three listed SQL dialects rather than a broad database ecosystem.

Lightweight is self-hosted and open source, so teams integrate the library into their C++ applications and provide the compiler and ODBC drivers it requires. The published support channels are community and documentation. Choose it if static typing, async access, migrations, and pooling align with a C++ application's needs and one of its three supported databases. Teams seeking a managed database service, wider dialect coverage, or vendor-provided support channels beyond community and docs should look elsewhere.

Your product? Our editors can test Lightweight in depth and publish a review, labelled as paid · from $99/mo →

Lightweight pricing

Plans Free planFree Free to use — no paid tier required for the core job.
See plans on github.com

Lightweight fact sheet

Free planYes
Paid fromNone
LanguagesC++
SQL dialectsMicrosoft SQL Server, PostgreSQL, SQLite
Type safetyStatic
Async queriesYes
Raw SQL supportYes
Compile without executionNo
DeploymentSelf-hosted
PlatformsWindows, Linux
SupportCommunity, Docs
Built forSolo, Small business, Mid-market, Enterprise (editorial estimate)
PricingFree plan
Websitegithub.com
Facts checked4 Oct 2026

Alternatives to Lightweight

See all Lightweight alternatives →

Used Lightweight? Be the first to review it

The editor score above is our own research. What this page doesn't have yet is a reader's view — what you used Lightweight for, what worked and what didn't. No stars are seeded and no review is paid for; an editor reads every one before it appears.

Write a reviewTwo minutes · verified accounts only · read by an editor before it appears

Reviews come only from verified accounts. Sign in or create an account first — your e-mail is never shown.

Your rating

0 characters · at least 80, up to 3,000

Posted from your verified account. Reviews appear after an editor reads them, usually within two working days.

Featured on iTechGuides

Featured on iTechGuides — Lightweight 6.7/10

Lightweight is listed in our Database Query Builders directory. Add the badge to your site — it links back to this page.

<a href="https://www.itechguides.com/products/lightweight/"><img src="https://www.itechguides.com/best/badge/lightweight.svg" alt="Featured on iTechGuides" width="230" height="46"></a>

Reviewed by iTechGuides Editors · Editorial team · Updated Oct 2026

Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. How we rank.

Last updated · How we research and update