SHORTLIST20
العربية
Englishالعربية中文日本語한국어EspañolFrançaisहिन्दी
البرمجة

Go (Golang) SQL query builders

Libraries that build and run SQL from Go code, ranked by GitHub stars

آخر تحديث · GitHub stars (stars)

لماذا هؤلاء العشرون

Ranked by GitHub stars: how many developers bookmarked the project. Stars measure attention, not quality, so each row also shows forks, licence and the last push. Tools without a public repository have no star count and can't be ranked here.

هل هذه القائمة مفيدة؟
  1. 1

    Squirrel

    Go library that helps you build SQL queries.

    7,988 stars 516 forkslast push 2024-04-24GoNOASSERTION

    موجود أيضًا في: #19 Go database tools and engines#4 Go (Golang) ORMs and SQL query builders

  2. 2

    jet

    Framework for writing type-safe SQL queries in Go, with ability to easily convert database query result into desired arbitrary object structure.

    3,835 stars 198 forkslast push 2026-11-07GoApache-2.0

    موجود أيضًا في: #8 Go (Golang) ORMs and SQL query builders

  3. 3

    goqu

    Idiomatic SQL builder and query library.

    2,677 stars 227 forkslast push 2026-11-19GoMIT

    موجود أيضًا في: #11 Go (Golang) ORMs and SQL query builders

  4. 4

    ozzo-dbx

    Powerful data retrieval methods as well as DB-agnostic query building capabilities.

    674 stars 111 forkslast push 2026-10-27GoMIT

    موجود أيضًا في: #17 Go (Golang) ORMs and SQL query builders

  5. 5

    sqlingo

    A lightweight DSL to build SQL in Go.

    456 stars 25 forkslast push 2026-04-01GoMIT

    موجود أيضًا في: #18 Go (Golang) ORMs and SQL query builders

  6. 6

    dbq

    Zero boilerplate database operations for Go.

    417 stars 20 forkslast push 2021-02-22GoNOASSERTION

    موجود أيضًا في: #19 Go (Golang) ORMs and SQL query builders

  7. 7

    sq

    Type-safe SQL builder and struct mapper for Go.

    200 stars 11 forkslast push 2023-01-15GoMIT

    موجود أيضًا في: #20 Go (Golang) ORMs and SQL query builders

  8. 8

    bqb

    Lightweight and easy to learn query builder.

    195 stars 12 forkslast push 2025-02-11GoMIT

  9. 9

    sqlf

    Fast SQL query builder.

    189 stars 17 forkslast push 2025-02-24GoMIT

  10. 10

    buildsqlx

    Go database query builder library for PostgreSQL.

    185 stars 17 forkslast push 2026-06-21GoMIT

  11. 11

    igor

    Abstraction layer for PostgreSQL that supports advanced functionality and uses gorm-like syntax.

    129 stars 5 forkslast push 2024-04-14GoApache-2.0

  12. 12

    builq

    Easily build SQL queries in Go.

    98 stars 2 forkslast push 2024-04-24GoMIT

  13. 13

    godbal

    Database Abstraction Layer (dbal) for go. Support SQL builder and get result easily.

    60 stars 20 forkslast push 2019-01-30GoMIT

  14. 14

    qrafter

    Type-safe SQL query builder with dialect-aware rendering, schema introspection, and migration generation.

    53 stars 4 forkslast push 2026-06-22GoMIT

  15. 15

    gosql

    SQL Query builder with better null values support.

    37 stars 2 forkslast push 2022-04-12GoMIT

  16. 16

    qry

    Tool that generates constants from files with raw SQL queries.

    35 stars 7 forkslast push 2024-02-20GoMIT

  17. 17

    relica

    Type-safe database query builder with zero production dependencies, LRU statement cache, batch operations, and support for JOINs, subqueries, CTEs, and...

    28 stars 0 forkslast push 2026-11-11GoMIT

  18. 18

    Hotcoal

    Secure your handcrafted SQL against injection.

    23 stars 1 forkslast push 2023-12-23GoMIT

  19. 19

    ormlite

    Lightweight package containing some ORM-like features and helpers for sqlite databases.

    15 stars 3 forkslast push 2023-01-30GoMIT

  20. 20

    sqlh

    Zero-boilerplate SQL helper with struct tags and Go generics (CRUD, UPSERT, JOIN, benchmarks).

    15 stars 0 forkslast push 2026-06-19GoBSD-3-Clause

كيف يتم القياس

Every tool in the SQL Query Builders section(s) of the community list avelino/awesome-go on GitHub with a public repository, ranked by GitHub stars from the GitHub API; archived repositories are left out. Added by the daily list generator.

المراجع

  1. avelino/awesome-go: SQL Query Builders, GitHub community list (list text MIT; star counts from the GitHub API). Checked 2026-11-21 00:36 UTC.
  2. avelino/awesome-go (SQL Query Builders), GitHub community list, 30 tools with a public repository.