vania_mysql 1.0.0
vania_mysql: ^1.0.0 copied to clipboard
MySQL ORM, query builder, migrations, and driver for Vania.
1.0.0 #
First release as a thin driver. The ORM, query builder, and migration system it
used to carry now live in vania 2.0.0, so this package is just the MySQL
bridge.
- Requires
vania2.0.0. registerMySqlDriver()registers aMySqlConnectorwith core's shared connection factory. That call inmain.dartis the only place your app names MySQL.- Everything else —
Model,DB, relations,Migration,Schema— is imported frompackage:vania/database.dart. export 'package:vania/database.dart'is kept, so existingimport 'package:vania_mysql/vania_mysql.dart' show Model, DB;still resolves.- Contract-compliance tests assert this package exposes the same symbols, under the same names, as the PostgreSQL and MongoDB drivers.
Upgrading from 0.x #
Replace database imports across your app with
import 'package:vania/database.dart'; and keep the vania_mysql import only
in main.dart, next to registerMySqlDriver().