execute method

Future<SqlDatabaseResult> execute(
  1. Sqler sqler
)

Implementation

Future<SqlDatabaseResult> execute(Sqler sqler) async {
  if (database is Database) {
    return _executeSqlite(database as Database, sqler);
  } else if (database is mysql.MySQLConnection) {
    return _executeMysql(database as mysql.MySQLConnection, sqler);
  } else {
    throw UnsupportedError(
        'Unsupported database type: ${database.runtimeType}');
  }
}