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

Best Doma Alternatives in 2026

Free#7 of 51 in Database Query Builders

The top Doma alternatives are jOOQ, SQLAlchemy and JetBrains Exposed: 15 database query builders our editors would look at instead of Doma, in our ranking order.

7.9/10Editor score
Doma7.9 Visit Doma

Doma: A self-hosted database framework for teams that want generated, type-safe queries. Where it falls short: self-hosted library, not a managed database service..

Switching from Doma? For most database query builders buyers the best Doma alternative is jOOQ, built for java teams needing type-safe SQL and code generation.

Why People Look for a Doma Alternative

  • Self-hosted library, not a managed database service
  • Asynchronous queries are not supported
  • Kotlin projects use the separate doma-kotlin library
  • No async queries — 8 of the alternatives below have it

Quick Picks by What You Need

All 15 Doma Alternatives, Ranked

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.

  1. jOOQ

    Best forJava teams needing type-safe SQL and code generation

    • Better than Doma:
    • Editor score 9.3 vs 7.9

    A fluent SQL framework for JVM teams that want generated, type-safe database access.

    Free plan · 30-day trial Our jOOQ verdict → Visit jOOQ
    9.3/10★★★★★
    Visit jOOQ
  2. Best forPython teams needing SQL construction plus ORM tools

    • Better than Doma:
    • Async queries
    • Editor score 9.1 vs 7.9

    SQL construction, ORM, and database services for Python applications.

    • Async queries
    • Raw SQL support
    • Compile without execution
    9.1/10★★★★★
    Visit SQLAlchemy
  3. Best forKotlin teams wanting a type-safe SQL DSL

    • Better than Doma:
    • Async queries
    • Editor score 9.0 vs 7.9

    A free, open-source Kotlin library with a type-safe SQL DSL and JDBC and R2DBC access.

    • Async queries
    • Raw SQL support
    • Compile without execution
    9.0/10★★★★☆
    Visit JetBrains
  4. Best forLaravel teams building application queries in PHP

    • Better than Doma:
    • Editor score 8.8 vs 7.9

    A Laravel query-building component for fluent CRUD, filtering, and pagination in PHP.

    • Raw SQL support
    • Compile without execution
    8.8/10★★★★☆
    Visit Laravel
  5. Best forPHP teams needing a standalone SQL query builder

    • Better than Doma:
    • Editor score 8.7 vs 7.9

    A free, standalone PHP query builder with broad SQL construction and dialect support.

    • Raw SQL support
    • Compile without execution
    8.7/10★★★★☆
    Visit Doctrine DBAL
  6. gsql

    Best forGo teams seeking typed builders for CRUD queries

    • Better than Doma:
    • Async queries

    Typed CRUD and upsert builders for Go, with SQL generation and database/sql execution.

    • Async queries
    • Compile without execution
    Free plan Our gsql verdict → Visit gsql
    7.9/10★★★★☆
    Visit gsql
  7. Best forTypeScript teams wanting queries and schema migrations

    • Better than Doma:
    • Async queries

    A free, open-source TypeScript ORM for typed queries and SQL migration workflows.

    • Async queries
    • Raw SQL support
    • Compile without execution
    7.9/10★★★★☆
    Visit Drizzle ORM
  8. Kysely

    Best forTypeScript teams prioritizing a type-safe SQL builder

    • Better than Doma:
    • Async queries

    A free, open-source SQL builder for TypeScript teams that want static query typing.

    • Async queries
    • Raw SQL support
    • Compile without execution
    7.9/10★★★★☆
    Visit Kysely
  9. Knex.js

    Best forJavaScript teams needing queries, migrations, and pooling

    • Better than Doma:
    • Async queries

    An open-source JavaScript builder for queries, schemas, migrations and database connections.

    • Async queries
    • Raw SQL support
    • Compile without execution
    7.9/10★★★★☆
    Visit Knex.js
  10. Diesel

    Best forRust teams wanting compile-time query validation

    A free, open-source Rust ORM and query builder with static query and schema validation.

    • Raw SQL support
    • Compile without execution
    7.9/10★★★★☆
    Visit Diesel
  11. Slick

    Best forScala teams needing typed queries and streaming

    • Better than Doma:
    • Async queries

    A Scala library for typed relational queries, async actions, and streaming.

    • Async queries
    • Raw SQL support
    • Compile without execution
    Free plan Our Slick verdict → Visit Slick
    7.9/10★★★★☆
    Visit Slick
  12. Beam

    Best forHaskell teams wanting typed multi-backend SQL

    Beam brings statically checked, composable SQL queries to Haskell applications.

    • Raw SQL support
    • Compile without execution
    Free plan Our Beam verdict → Explore Beam
    7.9/10★★★★☆
    Explore Beam
  13. Sequel

    Best forRuby teams wanting a broad SQL and ORM toolkit

    • Better than Doma:
    • Async queries

    A broad Ruby SQL and ORM toolkit for teams comfortable managing a library themselves.

    • Async queries
    • Raw SQL support
    • Compile without execution
    7.9/10★★★★☆
    Visit Sequel
  14. goqu

    Best forGo teams wanting query building and result scanning

    A Go SQL builder that compiles common statements and can execute queries and scan results.

    • Raw SQL support
    • Compile without execution
    Free plan Our goqu verdict → Visit goqu
    7.7/10★★★★☆
    Visit goqu
  15. Go Jet

    Best forGo teams wanting schema-generated typed SQL builders

    Schema-generated Go code makes typed SQL composition practical without turning Jet into an ORM.

    • Raw SQL support
    • Compile without execution
    7.6/10★★★★☆
    Visit Go Jet

Doma Alternatives: Common Questions

What is the best alternative to Doma?

jOOQ: #1 in our Database Query Builders ranking, with an editor score of 9.3 out of 10. A fluent SQL framework for JVM teams that want generated, type-safe database access.

Is there a free alternative to Doma?

Yes. jOOQ, SQLAlchemy, JetBrains Exposed, Laravel Query Builder and Doctrine DBAL QueryBuilder have a free plan or a free tier (15 of the 15 alternatives on this page).

Why do people look for Doma alternatives?

Self-hosted library, not a managed database service; Asynchronous queries are not supported; Kotlin projects use the separate doma-kotlin library.

How do I switch from Doma?

Export your data from Doma (most tools have an export in their settings). Sign up for the alternative; start on its free plan or trial if it has one. Import your export and set up the integrations your team relies on. Run both side by side for a short while, then cancel Doma.

How to Switch from Doma

  1. Export your data from Doma (most tools have an export in their settings).
  2. Sign up for the alternative; start on its free plan or trial if it has one.
  3. Import your export and set up the integrations your team relies on.
  4. Run both side by side for a short while, then cancel Doma.

Doma vs Each Alternative

#ToolFree planPaid fromLanguagesSQL dialectsType safetyAsync queriesScore
7DomaYesNoneJava, KotlinDB2, H2, HSQLDB, Microsoft SQL Server, MySQL, Oracle Database, PostgreSQL, SQLiteStaticNo7.9
1jOOQYes€99/device/yr————9.3
2SQLAlchemyYesNonePythonPostgreSQL, MySQL, MariaDB, SQLite, Oracle, Microsoft SQL ServerOptionalYes9.1
3JetBrains ExposedYesNoneKotlinH2, MariaDB, MySQL, Oracle, PostgreSQL, Amazon Redshift, Microsoft SQL Server, SQLiteStaticYes9.0
4Laravel Query BuilderYesNonePHPMariaDB, MySQL, PostgreSQL, SQLite, SQL ServerNoneNo8.8
5Doctrine DBAL QueryBuilderYesNonePHPMySQL, MariaDB, Oracle, Microsoft SQL Server, PostgreSQL, IBM Db2, SQLiteNoneNo8.7
6gsqlYesNoneGoPostgreSQL, MySQL, SQLiteStaticYes7.9
8Drizzle ORMYesNoneTypeScript, JavaScriptPostgreSQL, MySQL, SQLite, Turso, SingleStore, MSSQL, CockroachDBStaticYes7.9
9KyselyYesNoneTypeScriptPostgreSQL, MySQL, Microsoft SQL Server (MSSQL), SQLite, PGlite; community dialects also availableStaticYes7.9
10Knex.jsYesNoneJavaScript, TypeScriptPostgreSQL, CockroachDB, MSSQL, MySQL, MariaDB, SQLite3, Better-SQLite3, Oracle, Amazon RedshiftOptionalYes7.9
11DieselYesNoneRustPostgreSQL, MySQL, SQLiteStaticNo7.9
12SlickYesNoneScalaDB2, Derby/JavaDB, H2, HSQLDB/HyperSQL, Microsoft SQL Server, MySQL, Oracle, PostgreSQL, SQLiteStaticYes7.9
13BeamYesNoneHaskellANSI SQL; backend-specific SQL for PostgreSQL, SQLite, DuckDB, MySQL/MariaDB, and FirebirdStatic—7.9
14SequelYesNoneRubyPostgreSQL, MySQL, SQLite, Oracle, SQL Server, DB2, Derby, H2, HSQLDB, SQLAnywhereNoneYes7.9
15goquYesNoneGoMySQL, PostgreSQL, SQLite3, SQL ServerOptional—7.7
16Go JetYesNoneGoPostgreSQL, MySQL, SQLite; CockroachDB and MariaDB are tested compatible databasesStaticNo7.6

Head-to-Head

Reviewed by iTechGuides Editors · Editorial team · Updated Oct 2026

Last updated · How we research and update