angel3_orm_mysql
10.0.1, released 3 weeks ago by dukefirehawk.com
MySQL and MariaDB support for Angel3 ORM, including querying and transactions.
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.
Works with
Packages commonly used together with angel3_orm_mysql: ones it builds on, ones built on it, and its own family.
- loggingangel3_orm_mysql depends on itProvides configurable logging with levels and stream listeners for Dart apps.
- mysql_dartangel3_orm_mysql depends on itNative MySQL and MariaDB client written in Dart.
- angel3_ormangel3_orm_mysql depends on itRuntime support and query builder for Angel3 ORM.
- optionalangel3_orm_mysql depends on itAn implementation of the Optional type to help avoid null reference errors.
- angel3_frameworkSame familyA high‑powered Dart HTTP server framework with DI, routing and extensible plugins.
- angel3_websocketSame familyWebSockets support and event broadcasting for the Angel3 framework.
- angel3_graphqlSame familyServe GraphQL APIs over HTTP and WebSockets using the Angel3 framework.