https://github.com/percona-lab/codeceptjs-postgresqlhelper
CodeceptJS helper to execute queries on PostgreSQL database
https://github.com/percona-lab/codeceptjs-postgresqlhelper
Last synced: about 1 year ago
JSON representation
CodeceptJS helper to execute queries on PostgreSQL database
- Host: GitHub
- URL: https://github.com/percona-lab/codeceptjs-postgresqlhelper
- Owner: Percona-Lab
- License: agpl-3.0
- Created: 2022-05-09T08:33:03.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-12T15:14:04.000Z (almost 4 years ago)
- Last Synced: 2025-03-18T11:12:29.387Z (about 1 year ago)
- Language: JavaScript
- Size: 15.6 KB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# codeceptjs-postgresqlhelper
CodeceptJS helper to execute queries on PostgreSQL database
## Installation
```js
npm i codeceptjs-postgresqlhelper
```
## Configuration
This helper should be configured in `codecept.conf.js`
Example:
```js
{
//...
helpers: {
PostgresqlDBHelper: {
require: 'codeceptjs-postgresqlhelper',
host: '127.0.0.1',
port: 5432,
user: 'postgres',
password: 'postgres',
database: 'postgres',
},
//...
}
```
To use this helper you need to provide the following info:
- `host`: hostname or IP address of the PostgreSQL instance
- `port`: port
- `user`: username
- `password`: password
- `database`: database to which you want to connect