ping method

  1. @override
Future<bool> ping()
override

Performs a ping to check if the database connection is alive.

Implementation

@override
Future<bool> ping() async {
  try {
    final result = await execute('SELECT 1');
    return result.data.isNotEmpty;
  } catch (_) {
    return false;
  }
}