awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
sqlc-dev avatar

sqlc-dev/sqlc

0
View on GitHub↗
17,882 星标·1,057 分支·Go·MIT·5 次浏览sqlc.dev↗

Sqlc

sqlc is a code generation tool that compiles raw SQL queries into type-safe application code. By analyzing SQL statements against database schema definitions during the build process, it eliminates the need for manual data mapping and prevents runtime type errors.

The project functions as a schema-aware generator that translates database column types into native language primitives. It distinguishes itself through a modular, plugin-based architecture that allows for the extension of the generation pipeline to support diverse programming languages and custom frameworks beyond its default capabilities.

Beyond basic generation, the tool provides automated validation of SQL queries and schema compatibility, ensuring that database interactions remain consistent with the underlying schema before code is deployed. It also supports the creation of transactional query blocks and strongly-typed update functions to maintain data integrity across application logic.

Features

  • Type-Safe - Compiles raw SQL queries into type-safe application code to eliminate manual data mapping and runtime errors.
  • Type-Safe Database Clients - Generates strongly-typed interfaces for database operations to eliminate manual data mapping and runtime errors.
  • Schema-Driven Code Generators - Generates idiomatic, type-safe application code by cross-referencing SQL queries against database schema definitions.
  • SQL Schema Validators - Verifies SQL queries against database schema definitions during the build process to catch breaking changes.
  • Schema Compatibility Validators - Verifies SQL queries against database schema definitions during the build process to ensure compatibility and prevent deployment failures.
  • Database Automation Tools - Automates the creation of boilerplate-free database interaction code to ensure reliable storage layer communication.
  • Type-Safe Client Generators - Creates language-specific code interfaces from SQL queries to prevent runtime type errors.
  • Compile-Time Validators - Verifies SQL query validity against database schema definitions during the build process.
  • Database Tools - Listed in the “Database Tools” section of the Awesome Go awesome list.
  • Databases and Storage - Generates type-safe code from SQL queries.
  • Code Generators - Provides a modular, plugin-based system to generate specialized, type-safe database access code for various programming languages.
  • SQL Query Execution - Validates SQL statements against the database schema during compilation to confirm syntax and type compatibility.
  • Plugin-Based Architectures - Provides a modular architecture allowing external plugins to extend the code generation pipeline.
  • Type Mapping Utilities - Translates database column types into native language primitives to ensure type safety in generated code.
  • Code Generation Pipelines - Provides extensible build pipelines to produce specialized database access code for various frameworks.
  • Code Generation - Enables the addition of custom plugins to the compilation pipeline for specialized code generation.

Star 历史

sqlc-dev/sqlc 的 Star 历史图表sqlc-dev/sqlc 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

Sqlc 的开源替代方案

相似的开源项目,按与 Sqlc 的功能重合度排序。
  • digitallyinduced/ihpdigitallyinduced 的头像

    digitallyinduced/ihp

    5,294在 GitHub 上查看↗

    ihp is a type-safe web framework and full-stack application orchestrator designed for PostgreSQL. It functions as a server-side rendering framework and a type-safe ORM that automatically generates record types from SQL schemas to ensure compile-time query validation. The platform distinguishes itself by verifying routing, database queries, and templates at compile time to prevent runtime crashes. It implements real-time web interfaces using WebSockets for instant data synchronization and employs server-driven hypermedia for partial DOM patching. The framework covers a broad range of integrat

    Haskellframeworkhacktoberfesthaskell
    在 GitHub 上查看↗5,294
  • ent/entent 的头像

    ent/ent

    17,110在 GitHub 上查看↗

    Ent is a statically typed entity framework for Go that models database structures as a graph of nodes and edges. It functions as a code generation engine that transforms schema definitions into type-safe database clients, query builders, and migration scripts. By representing data as interconnected entities, the framework enables intuitive traversal of complex relationships and ensures that database interactions remain consistent with the application model at compile time. The framework distinguishes itself through its graph-based approach to data modeling and its reliance on compile-time cod

    Goententity-frameworkorm
    在 GitHub 上查看↗17,110
  • kyleconroy/sqlckyleconroy 的头像

    kyleconroy/sqlc

    17,886在 GitHub 上查看↗

    sqlc is a SQL compiler and code generator that creates type-safe database client code from raw SQL queries. It transforms SQL statements into typed definitions and functions, eliminating the need for manual row mapping between database results and application structures. The tool ensures compile-time safety by validating SQL queries against the database schema before the application is run. This workflow integrates the database schema directly into the application code, deriving types from the underlying SQL definitions to prevent runtime errors. The system utilizes AST-based query analysis

    Go
    在 GitHub 上查看↗17,886
  • jooq/jooqjOOQ 的头像

    jOOQ/jOOQ

    6,666在 GitHub 上查看↗

    jOOQ is a type-safe SQL query builder for Java that generates code from live database schemas, enabling compile-time validation of SQL syntax and data types. Its core identity is built around a fluent DSL that mirrors SQL structure, a code generator that maps tables, views, and routines to Java objects, and a multi-dialect engine that translates the same DSL into vendor-specific SQL for over 30 databases. The project also includes a SQL parser and transformer for refactoring or dialect conversion, reactive stream integration for non-blocking query execution, and a JDBC proxy diagnostics tool f

    Javacode-generatordatabasedb2
    在 GitHub 上查看↗6,666
查看 Sqlc 的所有 30 个替代方案→

常见问题解答

sqlc-dev/sqlc 是做什么的?

sqlc is a code generation tool that compiles raw SQL queries into type-safe application code. By analyzing SQL statements against database schema definitions during the build process, it eliminates the need for manual data mapping and prevents runtime type errors.

sqlc-dev/sqlc 的主要功能有哪些?

sqlc-dev/sqlc 的主要功能包括:Type-Safe, Type-Safe Database Clients, Schema-Driven Code Generators, SQL Schema Validators, Schema Compatibility Validators, Database Automation Tools, Type-Safe Client Generators, Compile-Time Validators。

sqlc-dev/sqlc 有哪些开源替代品?

sqlc-dev/sqlc 的开源替代品包括: digitallyinduced/ihp — ihp is a type-safe web framework and full-stack application orchestrator designed for PostgreSQL. It functions as a… ent/ent — Ent is a statically typed entity framework for Go that models database structures as a graph of nodes and edges. It… kyleconroy/sqlc — sqlc is a SQL compiler and code generator that creates type-safe database client code from raw SQL queries. It… jooq/jooq — jOOQ is a type-safe SQL query builder for Java that generates code from live database schemas, enabling compile-time… geldata/gel — Gel is an object-relational database system that models data as a graph of interconnected objects. By utilizing a… stephenafamo/bob — This project is a database toolkit for Go that provides schema-to-object mapping, fluent query construction, and…