postgres.ql
An entity for interacting with a PostgreSQL database.
Constructor | Description |
---|---|
Database(url, username, password) |
Function | Description |
---|---|
static fun createDatabase(host, port, database, username, password) | Create an unauthenticated reference to a database. No connection occurs yet. |
static fun createDatabase(url, username, password) | Create an unauthenticated reference to a database. No connection occurs yet. |
static fun createDatabase(url) | Create an unauthenticated reference to a database. No connection occurs yet. |
native fun createConnection() | Create a connection to the database. |
Create an unauthenticated reference to a database. No connection occurs yet.
host
( string )
|
The hostname of the database |
port
( string )
|
The port of the database |
database
( string )
|
The name of the database to connect to |
username
( string )
|
The username to connect with |
password
( string )
|
The password to connect with |