sqler 1.2.0
sqler: ^1.2.0 copied to clipboard
Package for building SQL queries in Dart, focusing on MySQL support.
1.2.0 #
-
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.4 #
- 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.
1.1.3 #
- Fixed table name for JOIN's #23, #21
1.1.2 #
- 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()
1.1.0 #
- Added DISTINCT for QField #16
- Improve the Aggregate Functions #1
- Added Validator functionalty for input variables in MField and MTable
1.0.1 #
- Added
MTableandMFieldclasses for table and field abstraction. - Implemented SQL generation for
CREATE TABLEstatements. - Improved code structure for easier table definition and management.
1.0.0 #
- Initial version.