dispose method

  1. @override
void dispose()
override

Implementation

@override
void dispose() {
  if (conn != nullptr) {
    pq.PQfinish(conn);
    conn = nullptr;
  }
}