sqler
Package for building SQL queries in Dart, focusing on MySQL support.
1.2.1
17K downloads/mo
#2382 most downloaded on pub.dev
uproid/sqler
What this package is like to depend on
Last release 2 months ago
19 Jun 2026
Ships unpredictably
gaps range from 1 weeks to 8 months
Nearly every release is documented
notes for 8 of 8 stable releases
Nothing withdrawn
no release was ever pulled
1 years old
8 releases · first in 2025
3 releases in the last 12 months
see the full history below
Release timeline
8 releases · Aug 2025 to Jun 2026
2026
Releases
latest 8-
1.2.119 Jun 2026Release notes
Open source →1.2.1
- Fixed #24 issue of unscaped string in QVar for sqlite
- Fixed reports of dart analyze.
- Update dependencies
Release notes
Open source →- Fixed #24 issue of unscaped string in QVar for sqlite
- Fixed reports of dart analyze.
- Update dependencies
-
1.2.018 Oct 2025Release notes
Open source →-
Sqler().toSQL<Sqlite>() - BREAKING CHANGE: Renamed
mysql_query.darttosql_query.dartandmysql_model.darttosql_model.dartfor better generic SQL support - NEW: Added SQLite support alongside existing MySQL functionality
- NEW: Introduced generic SQL types (
MysqlandSqlite) for database-specific SQL generation - NEW: All
toSQL()methods now accept a generic type parameter to generate database-specific SQL - NEW: Added SQLite-specific field types (
INTEGER,REAL) inFieldTypesenum - NEW: Proper quotation handling - backticks for MySQL, double quotes for SQLite
- NEW: SQLite-compatible auto-increment syntax (
AUTOINCREMENTvsAUTO_INCREMENT) - NEW: Added
sqlite3dependency for SQLite testing support - IMPROVED: Updated all test cases to validate both MySQL and SQLite SQL generation
- IMPROVED: Enhanced
MFieldIntto automatically use correct integer type based on target database - IMPROVED: Modified all SQL component classes to extend
SQLinstead of implementing it - IMPROVED: Better abstraction for cross-database compatibility while maintaining existing API
-
-
1.1.430 Sep 2025Release notes
Open source →- Added
add()andclear()methods to theWhereclass. - Added
allSelectFields()function toMTableto generate a list of all columns for selection. - Added
whereAnd,whereOr, andwhereOnemethods to theSqlerclass. - Added
OnOnemethod to summarizeOnwhen there is only one. - Added
Sqleras a new value forQVarto allow using theSqlerclass as a value in conditions.
- Added
-
1.1.314 Aug 2025 -
1.1.209 Aug 2025Release notes
Open source →- Password QVar
QVar.password('test', hashType: HashType.sha1)support sha1, md5(default), sha256, sha512, HMAC-SHA256 SqlExplainclass able to generate EXPLAIN details from other SQL.SqlExplain(sqlerQuery).toSQL()
- Password QVar
-
1.1.006 Aug 2025Release notes
Open source →- Added DISTINCT for QField #16
- Improve the Aggregate Functions #1
- Added Validator functionalty for input variables in MField and MTable
-
1.0.105 Aug 2025Release notes
Open source →- Added
MTableandMFieldclasses for table and field abstraction. - Implemented SQL generation for
CREATE TABLEstatements. - Improved code structure for easier table definition and management.
- Added
-
1.0.003 Aug 2025