flush method
Flushes the database service. Flushing to disk, or closing network connections could be done here.
Implementation
@override
Future<void> flush() async {
/// a short delay to make sure all network connections are done before we close the connection
_command.pipe_end();
await _connection.close();
}