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

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

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

aarondl/sqlboiler

0
View on GitHub↗
6,989 星标·557 分支·Go·12 次浏览

Sqlboiler

sqlboiler is a database-first ORM generator for Go that analyzes an existing database schema to produce strongly typed structures and query helpers. It functions as a schema-driven code generator, transforming database tables and relationships into executable Go source code.

The project distinguishes itself through a type-safe query builder that uses chainable modifiers to construct SQL statements, eliminating the need for raw string concatenation. It utilizes customizable text templates to generate source code, allowing for the aliasing of schema entities and the creation of custom templates based on database metadata.

The system covers a broad range of relational data mapping capabilities, including foreign key relationship mapping, batch-based eager loading to prevent N+1 performance issues, and type-safe mapping for database enums. It also provides automation for CRUD operations, including support for upserts, soft deletes using timestamps, and lifecycle hooks that trigger before or after database operations.

Features

  • Type-Safe Database Clients - Generates strongly-typed Go interfaces from a database schema to ensure compile-time safety for all database operations.
  • ORM Code Generators - Automatically generates database models and boilerplate CRUD code from existing database schemas.
  • Schema-Driven Code Generators - Analyzes existing database schemas to produce strongly typed Go structures and query helpers at compile time.
  • CRUD Operations - Implements standard insert, update, delete, and retrieve operations via generated methods.
  • Data Querying - Constructs database queries using a chainable system of modifiers and finishers for flexible data retrieval.
  • Database-to-Code Scaffolding - Generates language-specific data classes and helper methods based on an existing database schema.
  • Database ORMs - Functions as a database-first ORM that maps database records to typed Go application objects.
  • Database Query Execution - Executes SQL commands and binds results to strongly typed structures using model-specific helpers.
  • CRUD Interfaces - Provides automated interfaces for common database record modifications based on generated models.
  • Database Schema Mapping - Transforms database tables and views into typed structures using configurable naming and case styles.
  • Relationship Mapping - Generates dedicated getter methods and mapping logic based on database foreign key constraints to navigate table associations.
  • Chainable Modifier Patterns - Provides a type-safe query builder using a chainable modifier pattern to construct SQL statements without raw strings.
  • SQL Query Builders - Implements a chainable modifier system to construct type-safe SQL statements without manual string concatenation.
  • Type-Safe Query Builders - Provides a modular system of query modifiers to build SQL queries with compile-time validation and avoid string concatenation.
  • Model Generators - Creates strongly typed structures and helper methods by analyzing existing database schemas.
  • Template-Based Code Customizers - Allows overriding base templates and applying column filters to control the structure of generated output.
  • Soft Deletion - Marks a timestamp in a designated column to hide records from queries.
  • Database Lifecycle Hooks - Allows registration of custom functions that trigger automatically before or after database CRUD operations.
  • Database Record Querying - Provides a type-safe way to retrieve data from tables using filters and query modifiers.
  • Eager Loading - Retrieves related records in a single or recursive set of queries to prevent N+1 performance degradation.
  • Application-to-Database Enum Mapping - Converts database enum types into language-specific constants to ensure type safety and eliminate raw strings.
  • Model Lifecycle Hooks - Provides mechanisms for triggering custom logic during specific database model events like insert or update.
  • Relational Association Mapping - Provides dedicated mapping and getter methods to navigate foreign key relationships between database tables.
  • Eager Loading - Implements batch-based eager loading to retrieve related records and prevent N+1 query performance issues.
  • Relationship Modeling - Generates dedicated getter methods and mapping logic based on database foreign key constraints.
  • Association Definitions - Provides helper methods to manage associations based on foreign key definitions.
  • Soft Deletion - Implements soft deletion by marking a timestamp in a designated column to hide records from standard queries.
  • Template-Based Code Generators - Uses customizable text templates to transform database metadata into executable Go source code.

Star 历史

aarondl/sqlboiler 的 Star 历史图表aarondl/sqlboiler 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

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

Start searching with AI

Sqlboiler 的开源替代方案

相似的开源项目,按与 Sqlboiler 的功能重合度排序。
  • seaql/sea-ormSeaQL 的头像

    SeaQL/sea-orm

    9,410在 GitHub 上查看↗

    Sea-ORM is an asynchronous SQL object-relational mapper and database toolkit for mapping relational tables to strongly typed objects. It provides a relational database mapper for performing CRUD operations across MySQL, PostgreSQL, and SQLite, and includes a programmatic dynamic query builder for constructing complex SQL statements. The project distinguishes itself by providing a GraphQL schema generator that transforms database entities into typed schemas with built-in pagination and filters. It also features a dedicated database migration tool for defining and applying versioned schema chan

    Rustdatabasehacktoberfestloco
    在 GitHub 上查看↗9,410
  • codeigniter4/codeigniter4codeigniter4 的头像

    codeigniter4/CodeIgniter4

    5,924在 GitHub 上查看↗

    CodeIgniter is a PHP web framework built on the Model-View-Controller pattern, designed for building full-stack web applications. It provides a lightweight toolkit with minimal configuration, organizing application logic into controllers, models, and views for clean separation of concerns. The framework includes a fluent query builder for constructing SQL statements programmatically, PSR-4 autoloading with namespace mapping, and a service-based dependency injection container for managing shared class instances. The framework distinguishes itself through its comprehensive set of built-in tools

    PHPcodeignitercodeigniter4framework-php
    在 GitHub 上查看↗5,924
  • stephenafamo/bobstephenafamo 的头像

    stephenafamo/bob

    1,739在 GitHub 上查看↗

    This project is a database toolkit for Go that provides schema-to-object mapping, fluent query construction, and automated code generation. It functions as a framework for type-safe database access, enabling developers to interact with relational databases by generating models and interfaces directly from existing database schemas. The toolkit distinguishes itself through a workflow that parses hand-written SQL files to generate type-safe functions, allowing for the integration of custom SQL while maintaining consistent result mapping. It supports modular customization through a plugin-based

    Godatabasegolanghacktoberfest
    在 GitHub 上查看↗1,739
  • jeremyevans/sequeljeremyevans 的头像

    jeremyevans/sequel

    5,076在 GitHub 上查看↗

    Sequel is a relational database toolkit for Ruby that provides object-relational mapping, a fluent SQL query builder, and schema migration capabilities. It maps database tables to Ruby classes with support for associations, validations, lifecycle hooks, and eager loading, offering a comprehensive ORM layer for building data-centric applications. Sequel distinguishes itself through a plugin-based extension architecture that allows composable customization of models, databases, and datasets without relying on deep inheritance hierarchies. It includes a thread-safe connection pool with support f

    Ruby
    在 GitHub 上查看↗5,076
查看 Sqlboiler 的所有 30 个替代方案→

常见问题解答

aarondl/sqlboiler 是做什么的?

sqlboiler is a database-first ORM generator for Go that analyzes an existing database schema to produce strongly typed structures and query helpers. It functions as a schema-driven code generator, transforming database tables and relationships into executable Go source code.

aarondl/sqlboiler 的主要功能有哪些?

aarondl/sqlboiler 的主要功能包括:Type-Safe Database Clients, ORM Code Generators, Schema-Driven Code Generators, CRUD Operations, Data Querying, Database-to-Code Scaffolding, Database ORMs, Database Query Execution。

aarondl/sqlboiler 有哪些开源替代品?

aarondl/sqlboiler 的开源替代品包括: seaql/sea-orm — Sea-ORM is an asynchronous SQL object-relational mapper and database toolkit for mapping relational tables to strongly… codeigniter4/codeigniter4 — CodeIgniter is a PHP web framework built on the Model-View-Controller pattern, designed for building full-stack web… stephenafamo/bob — This project is a database toolkit for Go that provides schema-to-object mapping, fluent query construction, and… jeremyevans/sequel — Sequel is a relational database toolkit for Ruby that provides object-relational mapping, a fluent SQL query builder,… linq2db/linq2db — linq2db is a type-safe object-relational mapper that translates LINQ expressions into optimized SQL queries for… seaql/sea-query — Sea-query is a database abstraction library for Rust that provides a fluent builder pattern for constructing type-safe…