FLUTTER ECOSYSTEM

sqlparser

Parses sqlite statements and performs static analysis on them

Latest version
0.44.4
30-day downloads
588.6K
Likes
35
Pub points
140

Package Overview

Selection guidance generated from public package information. For reference only.

Overview

The sqlparser package is a Dart library designed to parse SQLite statements and perform static analysis on them. It enables developers to validate, inspect, and manipulate SQL queries programmatically without executing them. Ideal for tools that require deep understanding of SQL syntax, such as code generators, linters, or database migration utilities. The parser supports standard SQLite syntax and integrates well with drift, a popular SQLite ORM for Dart. It runs across all major platforms including Android, iOS, Web, macOS, Windows, and Linux.

Use cases
  • SQL query validation
  • Database migration tooling
  • Code generation from SQL
  • Static analysis of SQL scripts
  • Linting SQL in development workflows
Key features
  • SQLite syntax parsing
  • Static analysis capabilities
  • Cross-platform support
  • Integration with drift
  • Robust error reporting
Suitable for
  • Dart developers using SQLite
  • Tools requiring SQL inspection
  • Database schema management
  • Code generation pipelines
  • Development-time SQL validation
Considerations
  • Limited to SQLite syntax
  • Does not execute queries
  • Requires careful handling of complex SQL
  • Best used in build or dev tools
  • Not intended for runtime query execution
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add sqlparser

Categories

Source repository

Related projects