sqlc_gen_dart 1.0.0
sqlc_gen_dart: ^1.0.0 copied to clipboard
A plugin for SQLC that generates Dart code from SQL queries.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.0.0 - 2025-12-02 #
Added #
- Initial release of sqlc_gen_dart plugin
- Support for generating Dart code from SQL queries
- SQLite database support with in-memory and file-based configurations
- PostgreSQL database support with URI-based and connection object configurations
- Automatic schema generation from SQL DDL statements
- Type-safe query methods generation
- CRUD operations support (Create, Read, Update, Delete)
- Custom
SqlcExceptionfor unified error handling - Automatic database connection management
- Support for multiple query types (
:one,:many,:exec) - Pluralization support for table names
- MIT License
Features #
- Database Support: SQLite and PostgreSQL
- Query Generation: Generates type-safe Dart methods from SQL queries
- Schema Generation: Automatically generates Dart classes from SQL tables
- Error Handling: Custom exception handling with
SqlcException - Connection Management: Automatic database connection and disposal