getPostgresConnectionFromConfig function

Future<PostgreSQLConnection> getPostgresConnectionFromConfig()

Implementation

Future<PostgreSQLConnection> getPostgresConnectionFromConfig() async {
  var cnValues = await getDbConnectionValuesFromConfig();

  var connection = PostgreSQLConnection(
    cnValues.host,
    cnValues.port,
    cnValues.db,
    username: cnValues.username,
    password: cnValues.password,
  );

  return connection;
}