execute method

Future<CliResult> execute({
  1. required String statement,
  2. required String user,
  3. required String database,
  4. String? host,
  5. int? port,
  6. String? password,
  7. String? workingDirectory,
  8. bool produceXml = false,
})

Implementation

Future<CliResult> execute({
  required String statement,
  required String user,
  required String database,
  String? host,
  int? port,
  String? password,
  String? workingDirectory,
  bool produceXml = false,
}) {
  return _execute(
    statement: statement,
    user: user,
    database: database,
    password: password,
    workingDirectory: workingDirectory,
    host: host,
    port: port,
    extraArgs: [
      if (produceXml) "--xml",
    ],
  );
}