executeScript method
Execute a SQL script (multiple statements)
Implementation
@override
Future<void> executeScript(String script) async {
try {
// Split script into individual statements and execute
final statements = script.split(';').where((s) => s.trim().isNotEmpty);
for (final statement in statements) {
await _connection.execute(statement.trim());
}
} catch (e) {
throw AdapterError(
'Failed to execute script: ${e.toString()}',
code: _extractErrorCode(e),
originalError: e,
);
}
}