setProperties method

void setProperties(
  1. String server,
  2. int port,
  3. String dbName,
  4. String userName,
  5. String password,
  6. String connectionDriver,
)

Implementation

void setProperties(String server, int port, String dbName, String userName,
    String password, String connectionDriver) {
  _connectionDriver = connectionDriver;

  if (_connectionDriver == 'postgresql') {
    PostgreSQLConnection connection = PostgreSQLConnection(
      server,
      port,
      dbName,
      username: userName,
      password: password,
    );

    _postgres = PostgresDartnateDatabase();
    _postgres.connection = connection;
  }
}