Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/qavajs/steps-sql
Step library to work with relational databases
https://github.com/qavajs/steps-sql
qa test-automation testing
Last synced: 2 months ago
JSON representation
Step library to work with relational databases
- Host: GitHub
- URL: https://github.com/qavajs/steps-sql
- Owner: qavajs
- License: mit
- Created: 2022-12-16T14:23:33.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-29T12:18:58.000Z (3 months ago)
- Last Synced: 2024-10-29T13:30:54.270Z (3 months ago)
- Topics: qa, test-automation, testing
- Language: TypeScript
- Size: 654 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# @qavajs/steps-sql
Step library to work with relational databases## Installation
`npm install @qavajs/steps-sql`## Configuration
```javascript
const { MySQLClient, PgClient } = require('@qavajs/steps-sql/clients');
module.exports = {
default: {
require: [
'@qavajs/steps-sql'
],
// provide map contains client that implemennts DBClient interface
// if only one client exist it can be defined as default property
dbClients: {
default: new MySQLClient({
host: 'http://127.0.0.1',
port: 3306,
database: 'qavajsdb',
user: 'username',
password: 'password'
}),
pg: new MySQLClient({
host: 'http://127.0.0.1',
port: 3306,
database: 'qavajsdb2',
username: 'username',
password: 'password'
}),
}
}
}
```## Implemented Clients
Corresponding DB packages need to be installed separately| client | description |
|-------------|---------------------------------------------------------------------|
| MySQLClient | MySQL client. Works on top of https://www.npmjs.com/package/mysql2 |
| PgClient | PostgreSQL client. Works on top of https://www.npmjs.com/package/pg |