Skip to content
pubscout

angel3_orm_mysql

10.0.1, released 3 weeks ago by dukefirehawk.com

MySQL and MariaDB support for Angel3 ORM, including querying and transactions.

$ flutter pub add angel3_orm_mysql
Source repository

What it does

Provides SQL executors (MySqlExecutor and MariaDbExecutor) for Angel3 ORM using the mysql_dart driver. It allows running queries, managing transactions, and handling migrations against MySQL and MariaDB databases.

AI-written summary of version 10.0.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You are building an application with Angel3 ORM and need to connect to MySQL or MariaDB.
  • You need support for database transactions and schema migrations in an Angel3 app.

Skip it when

  • You are using a database other than MySQL or MariaDB.
  • You are not using the Angel3 ORM ecosystem.

Strengths

  • Native integration with Angel3 ORM.
  • Supports both MySQL and MariaDB with dedicated executors for proper DateTime handling.
  • Includes transaction and migration support.

Weaknesses

  • Blob data type mapping is not supported.
  • Requires specific minimum database versions (MySQL 8.0+ or MariaDB 10.2+).

Setup

Kind
Pure Dart
Effort
Medium
Code generation
Yes (build_runner)
Direct dependencies
4

Requires running build_runner to generate entity persistence code and configuring a MySQL or MariaDB database connection.

import 'package:angel3_orm_mysql/angel3_orm_mysql.dart';
import 'package:mysql_dart/mysql_dart.dart';

void main() async {
  var conn = await MySQLConnection.createConnection(
      databaseName: 'orm_test',
      port: 3306,
      host: 'localhost',
      userName: 'test',
      password: 'Test123',
      secure: true);
  await conn.connect(timeoutMs: 10000);

  var executor = MySqlExecutor(conn);
}

Alternatives

Packages that do the same job and could replace angel3_orm_mysql.

  • drift

    If you want a robust, reactive SQLite ORM and query builder for Dart and Flutter without relying on the Angel3 ecosystem.

  • sqflite

    If you just need standard SQLite persistence on mobile/desktop without a heavy ORM layer.

Works with

Packages commonly used together with angel3_orm_mysql: ones it builds on, ones built on it, and its own family.