Skip to content

onepub-dev/mysql_cli_client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mysql_cli_client

A simple wrapper for calling the mysql command line client from Dart.

  final mysql =
      MySQL(user: 'root', password: config.adminPassword!, schema: dbSchema);

  // wait for mysql to start.
  await mysql.waitForMysql();

  print('Running backup of $dbSchema.');
  mysql.backup(selectedBackupFile);

  mysql.dropSchema();
  mysql.createSchema();

  mysql.restore(selectedBackupFile);

  mysql.createUser(username: 'brett', password: 'a apasswrod');

  var results = mysql.toList('select * from user');

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages