PackageTrack
Sign in Get early access

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
Release Pre-release

Releases

latest 8
  1. 1.2.1 19 Jun 2026
    Release notes

    1.2.1

    • Fixed #24 issue of unscaped string in QVar for sqlite
    • Fixed reports of dart analyze.
    • Update dependencies
    Open source →
    Release notes
    • Fixed #24 issue of unscaped string in QVar for sqlite
    • Fixed reports of dart analyze.
    • Update dependencies
    Open source →
  2. 1.2.0 18 Oct 2025
    Release notes
    • Sqler().toSQL<Sqlite>()

    • BREAKING CHANGE: Renamed mysql_query.dart to sql_query.dart and mysql_model.dart to sql_model.dart for better generic SQL support
    • NEW: Added SQLite support alongside existing MySQL functionality
    • NEW: Introduced generic SQL types (Mysql and Sqlite) 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) in FieldTypes enum
    • NEW: Proper quotation handling - backticks for MySQL, double quotes for SQLite
    • NEW: SQLite-compatible auto-increment syntax (AUTOINCREMENT vs AUTO_INCREMENT)
    • NEW: Added sqlite3 dependency for SQLite testing support
    • IMPROVED: Updated all test cases to validate both MySQL and SQLite SQL generation
    • IMPROVED: Enhanced MFieldInt to automatically use correct integer type based on target database
    • IMPROVED: Modified all SQL component classes to extend SQL instead of implementing it
    • IMPROVED: Better abstraction for cross-database compatibility while maintaining existing API
    Open source →
  3. 1.1.4 30 Sep 2025
    Release notes
    • Added add() and clear() methods to the Where class.
    • Added allSelectFields() function to MTable to generate a list of all columns for selection.
    • Added whereAnd, whereOr, and whereOne methods to the Sqler class.
    • Added OnOne method to summarize On when there is only one.
    • Added Sqler as a new value for QVar to allow using the Sqler class as a value in conditions.
    Open source →
  4. 1.1.3 14 Aug 2025
    Release notes
    • Fixed table name for JOIN's #23, #21
    Open source →
  5. 1.1.2 09 Aug 2025
    Release notes
    • Password QVar QVar.password('test', hashType: HashType.sha1) support sha1, md5(default), sha256, sha512, HMAC-SHA256
    • SqlExplain class able to generate EXPLAIN details from other SQL. SqlExplain(sqlerQuery).toSQL()
    Open source →
  6. 1.1.0 06 Aug 2025
    Release notes
    • Added DISTINCT for QField #16
    • Improve the Aggregate Functions #1
    • Added Validator functionalty for input variables in MField and MTable
    Open source →
  7. 1.0.1 05 Aug 2025
    Release notes
    • Added MTable and MField classes for table and field abstraction.
    • Implemented SQL generation for CREATE TABLE statements.
    • Improved code structure for easier table definition and management.
    Open source →
  8. 1.0.0 03 Aug 2025
    Release notes
    • Initial version.
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive