awesome-repositories.comCatégoriesBlog
MCP
awesome-repositories.com

Découvrez les meilleurs dépôts open-source grâce à notre recherche par IA.

ExplorerRecherches sélectionnéesAlternatives open sourceLogiciels auto-hébergésBlogPlan du site
ProjetServeur MCPÀ proposNotre méthodologiePresse
Mentions légalesConfidentialitéConditions d'utilisation
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
diesel-rs avatar

diesel-rs/diesel

0
View on GitHub↗
14,021 stars·1,183 forks·Rust·apache-2.0·23 vuesdiesel.rs↗

Diesel

This project is a type-safe database toolkit and object-relational mapper designed to enforce structural consistency between database schemas and application code. By leveraging compile-time validation, it ensures that SQL queries and data structures remain synchronized, preventing common errors before the application executes. It provides a comprehensive framework for relational data modeling, allowing developers to define table associations and map database results directly into strongly-typed language objects.

The library distinguishes itself through its focus on compile-time safety and automated schema management. It utilizes procedural macros to inspect database tables and generate corresponding code structures, eliminating the need for manual type definitions. Its expression-based query builder allows for the construction of complex, modular SQL statements that are automatically parameterized to mitigate security risks like SQL injection. Furthermore, the system supports extensive customization, enabling developers to register custom functions and operators or extend the query builder interface to accommodate specific database requirements.

Beyond its core mapping and validation capabilities, the toolkit provides a full suite of operations for managing data persistence. This includes support for batch insertions, relational joins, upsert operations, and the retrieval of related records. The library also handles the bidirectional transformation of data, automatically mapping application structures to database columns for updates and insertions while inferring return types for query results.

Comprehensive documentation and tooling are provided to assist with schema synchronization, ensuring that local code representations remain aligned with the underlying database throughout the development lifecycle.

Features

  • Object-Relational Mappers - Maps relational database results into strongly-typed objects and manages complex table associations.
  • Type-Safe Query Builders - Provides a type-safe database interaction layer that validates queries at compile time.
  • Database Schema - Automatically derives type-safe code definitions from database schemas to ensure structural consistency.
  • Database Schema Validators - Ensures SQL queries and data structures remain synchronized through compile-time validation.
  • SQL Injection Prevention - Provides automated parameter binding for all database queries to prevent SQL injection vulnerabilities.
  • Database ORMs - Acts as a type-safe database abstraction layer that ensures structural alignment between schemas and application models.
  • Database Query Builders - Constructs SQL statements using a fluent, expression-based interface for secure and efficient database commands.
  • Database Injection Prevention - Uses automated parameterization for all inputs to prevent SQL injection vulnerabilities.
  • Procedural Macro Generators - Uses procedural macros to automatically generate type-safe structures from database tables.
  • Row-to-Struct Mappers - Automatically maps database result rows to strongly-typed application objects.
  • Database Schema Migrations - Maintains local code representations by automatically updating definitions when migrations are applied.
  • Database Schema Definitions - Generates type-safe representations of database tables to keep application code synchronized with the schema.
  • Relational Data Modeling - Provides a framework for defining table associations and mapping relational data to application structures.
  • Table-to-Code Mappers - Defines type-safe structures for database tables to ensure compile-time query validation.
  • Databases and Data Tools - Safe ORM and query builder for Rust.
  • Database Query Execution - Executes constructed queries and maps results into native language structures.
  • Database Relationship Mappings - Declares parent-child relationships between data models to enable automated foreign key mapping.
  • Result Converters - Converts query results into typed data structures by matching database columns to object fields.
  • Changeset Generators - Automatically generates update statements from data structures while handling optional values.
  • Struct-to-Row Mappers - Enables type-safe insertion of records by mapping application structures to database columns.
  • Query Composition - Enables modular and reusable SQL query construction through trait-based composition.
  • Batch Insertion Interfaces - Supports efficient batch insertion of multiple records to reduce query overhead.
  • Data Type Mappings - Defines column structures that enforce SQL type safety during query building and data conversion.
  • Query Scopes - Encapsulates common filtering and expression logic into reusable query components.
  • Database Query Joins - Constructs inner or left join queries to combine related data into single result sets.
  • Query Builders - Extends the query builder DSL to support complex SQL patterns and custom operations.
  • Record Updating - Enables type-safe modification of database rows using fluent query construction methods.
  • Upsert Strategies - Handles record conflicts during write operations to ensure data consistency.
  • Database Function Inference - Automatically infers return types for database expressions to simplify data retrieval.
  • Model Persistence - Saves the state of identified records directly to the database by synchronizing fields with table rows.
  • Inserted Record Retrievers - Returns values of newly created rows or specific columns immediately after an insertion operation.
  • Single Record Retrievers - Retrieves child records for parents using efficient batching to prevent performance-degrading query patterns.
  • Custom SQL Function Registrars - Allows registration of custom SQL functions with defined signatures for use in queries.
  • Custom SQL Operator Registrars - Supports registration of custom SQL operators to extend query builder capabilities.

Historique des stars

Graphique de l'historique des stars pour diesel-rs/dieselGraphique de l'historique des stars pour diesel-rs/diesel

Recherche par IA

Explorez plus de dépôts awesome

Décrivez vos besoins en langage naturel — l'IA classe des milliers de projets open source sélectionnés par pertinence.

Start searching with AI

Alternatives open source à Diesel

Projets open source similaires, classés selon le nombre de fonctionnalités partagées avec Diesel.
  • simolus3/driftAvatar de simolus3

    simolus3/drift

    3,231Voir sur GitHub↗

    Drift is a type-safe SQL persistence library and relational mapper that provides a structured way to map database tables to classes and execute SQL queries with build-time validation. It functions as a type-safe query builder and a wrapper for SQLite and PostgreSQL, eliminating manual result set parsing by binding query outputs to native objects. The project distinguishes itself through a build-time code generation system that produces type-safe APIs and validates raw SQL statements against database versions before execution. It features reactive query streaming, which transforms SQL queries

    Dartdartdart-build-systemflutter
    Voir sur GitHub↗3,231
  • fastapi/sqlmodelAvatar de fastapi

    fastapi/sqlmodel

    18,137Voir sur GitHub↗

    SQLModel is a type-safe object-relational mapping library for Python that integrates database schema definitions with data validation logic. By combining these two roles into a single class, it allows developers to manage relational data structures and enforce data integrity for web APIs simultaneously. The framework is built to support asynchronous database operations, enabling high-performance applications to execute queries and transactions without blocking the main execution thread. The library distinguishes itself by leveraging Python type hints to provide IDE autocompletion and compile-

    Pythonfastapijsonjson-schema
    Voir sur GitHub↗18,137
  • dapperlib/dapperAvatar de DapperLib

    DapperLib/Dapper

    18,331Voir sur GitHub↗

    Dapper is a lightweight object-relational mapper for .NET that functions as a high-performance data access library. It operates by extending standard database connection interfaces, allowing developers to execute raw SQL queries while automating the mapping of database results to strongly-typed objects. The library distinguishes itself through its use of runtime code generation, which creates high-performance instructions to map database rows to object properties with minimal overhead. It provides flexible data retrieval options, supporting both memory-buffered loading for speed and row-by-ro

    C#ado-netdappersql
    Voir sur GitHub↗18,331
  • seaql/sea-ormAvatar de SeaQL

    SeaQL/sea-orm

    9,410Voir sur 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
    Voir sur GitHub↗9,410
Voir les 30 alternatives à Diesel→

Questions fréquentes

Que fait diesel-rs/diesel ?

This project is a type-safe database toolkit and object-relational mapper designed to enforce structural consistency between database schemas and application code. By leveraging compile-time validation, it ensures that SQL queries and data structures remain synchronized, preventing common errors before the application executes. It provides a comprehensive framework for relational data modeling, allowing developers to define table associations and map database results…

Quelles sont les fonctionnalités principales de diesel-rs/diesel ?

Les fonctionnalités principales de diesel-rs/diesel sont : Object-Relational Mappers, Type-Safe Query Builders, Database Schema, Database Schema Validators, SQL Injection Prevention, Database ORMs, Database Query Builders, Database Injection Prevention.

Quelles sont les alternatives open-source à diesel-rs/diesel ?

Les alternatives open-source à diesel-rs/diesel incluent : simolus3/drift — Drift is a type-safe SQL persistence library and relational mapper that provides a structured way to map database… fastapi/sqlmodel — SQLModel is a type-safe object-relational mapping library for Python that integrates database schema definitions with… dapperlib/dapper — Dapper is a lightweight object-relational mapper for .NET that functions as a high-performance data access library. It… seaql/sea-orm — Sea-ORM is an asynchronous SQL object-relational mapper and database toolkit for mapping relational tables to strongly… typeorm/typeorm — TypeORM is an object-relational mapper for TypeScript and JavaScript that bridges the gap between object-oriented… vincit/objection.js — Objection.js is an object-relational mapper for Node.js that maps SQL database tables to classes and rows to model…