connect method

Future<Connection> connect({
  1. String db = 'test',
  2. String host = "localhost",
  3. int port = 28015,
  4. String user = "admin",
  5. String password = "",
  6. Map? ssl,
})

Create a new connection to the database server. Accepts the following options: host: the host to connect to (default localhost). port: the port to connect on (default 28015). db: the default database (defaults to test). user: the user name for the db (defaults to admin). password: password for the user (default "").

Implementation

Future<Connection> connect({
  String db = 'test',
  String host = "localhost",
  int port = 28015,
  String user = "admin",
  String password = "",
  Map? ssl,
}) =>
    Connection(db, host, port, user, password, ssl).reconnect();