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. |
| Field | Description |
|---|---|
| string url | The full connection URL. |
| string username | The username used to connect to the database. |
| string password | The password used to connect to the database. |
Create an unauthenticated reference to a database. No connection occurs yet.
Create an unauthenticated reference to a database. No connection occurs yet.
url
( string )
|
The URL of the database |