vania_mysql 1.0.0 copy "vania_mysql: ^1.0.0" to clipboard
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 vania 2.0.0.
  • registerMySqlDriver() registers a MySqlConnector with core's shared connection factory. That call in main.dart is the only place your app names MySQL.
  • Everything else — Model, DB, relations, Migration, Schema — is imported from package:vania/database.dart.
  • export 'package:vania/database.dart' is kept, so existing import '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().

0
likes
150
points
84
downloads

Documentation

Documentation
API reference

Publisher

verified publishervdart.dev

Weekly Downloads

MySQL ORM, query builder, migrations, and driver for Vania.

Homepage
Repository (GitHub)
View/report issues

Topics

#server #backend #database #orm #vania

License

MIT (license)

Dependencies

meta, mysql_client, vania

More

Packages that depend on vania_mysql