ormed_mysql 0.2.0 copy "ormed_mysql: ^0.2.0" to clipboard
ormed_mysql: ^0.2.0 copied to clipboard

MySQL / MariaDB adapter for the routed ORM driver interface.

example/main.dart

import 'package:ormed/ormed.dart';
import 'package:ormed_mysql/ormed_mysql.dart';

void main() async {
  final registry = ModelRegistry();
  final ds = DataSource(
    registry.mySqlDataSourceOptions(
      name: 'default',
      host: 'localhost',
      port: 3306,
      database: 'my_database',
      username: 'root',
      password: 'password',
    ),
  );
  // Initialize if you want to connect:
  // await ds.init();

  print('MySQL DataSource created: ${ds.options.driver.metadata.name}');
}
1
likes
160
points
148
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

MySQL / MariaDB adapter for the routed ORM driver interface.

Repository (GitHub)
View/report issues

Topics

#orm #database #mysql

Funding

Consider supporting this project:

www.buymeacoffee.com

License

MIT (license)

Dependencies

carbonized, decimal, meta, mysql_client_plus, ormed, uuid

More

Packages that depend on ormed_mysql