FLUTTER ECOSYSTEM

mysql1

A library for connecting to and querying MySQL & MariaDB databases.

Latest version
0.20.0
30-day downloads
15.5K
Likes
493
Pub points
140

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

The mysql1 package is a Dart library that enables Flutter applications to connect to and query MySQL and MariaDB databases. It provides a straightforward API for executing SQL statements, handling transactions, and managing database connections efficiently. Designed for cross-platform use, it supports Android, iOS, macOS, Windows, and Linux, making it ideal for backend integration in mobile and desktop apps. The library is actively maintained and built on top of the native MySQL protocol, ensuring reliable performance and compatibility with modern database features.

Use cases
  • Connecting Flutter apps to MySQL/MariaDB databases
  • Executing dynamic SQL queries in real-time
  • Managing database transactions
  • Building backend services for mobile apps
  • Integrating with existing MySQL-based systems
Key features
  • Cross-platform support (Android, iOS, macOS, Windows, Linux)
  • Support for MySQL and MariaDB
  • Efficient connection pooling
  • Transaction management
  • Async/await compatible API
Suitable for
  • Mobile and desktop apps needing database access
  • Backend services using MySQL/MariaDB
  • Developers building full-stack Flutter applications
  • Teams integrating with existing MySQL infrastructure
Considerations
  • Requires network access to database server
  • Needs proper error handling for connection issues
  • May require additional configuration for SSL/TLS
  • Not suitable for local file-based databases
Supported platformsAndroidiOSmacOSWindowsLinux

Install package

flutter pub add mysql1

Categories

Dependencies

Dependency list 4 items

Source repository

Related projects