Method Sql.pgsql()->select_db()


Method select_db

final void select_db(string dbname)

Description

Due to restrictions of the Postgres frontend-backend protocol, you always already have to be connected to a database. To connect to a different database you have to select the right database while connecting instead. This function is a no-op when specifying the same database, and throws an error otherwise.

See also

create()