@ln-maf/mysql

2.0.6 • Public • Published

Node Sql Setup

This module is created to allow other projects to easily utilize SQL when writing test cases. Additionally, a utility function is used to test using this.

npm package GitHub Actions Dependencies

Setup

To use this you must require this library after installing using npm.

npm i @ln-maf/mysql

Set up configs

Keytar is used to store access to the username and password for sql.
To setup an sql config please run the following from project root:

node node_modules/@ln-maf/mysql/config.js

Note: Please run the Setup step first.

Steps

Add a step definition file with the following line:

require('@ln-maf/mysql)

Given mysql config from {jsonObject}

Utilizes the sql system associated with the item provided. By default will use mysql.sqlConfig.json in the root directory of the project if none is provided.

When mysql query from {jsonObject} is run

Runs a query from the provided item. Allows templated args as per the global cucumber projects. Stores the results in this.results.lastRun. Usable in cucubmer as ${lastRun} or the it keyword.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.0.6172latest

Version History

VersionDownloads (Last 7 Days)Published
2.0.6172
3.0.0-beta.20
2.0.50
3.0.0-beta.10
2.0.467
2.0.31
3.0.0-beta.00
2.0.20
2.0.11
2.0.00
1.6.20
1.6.11
1.6.01
1.5.01
1.4.51
1.4.40
1.4.30
1.3.111
1.3.100
1.3.80
1.3.70
1.3.60
1.3.51
1.3.31
1.3.20
1.2.41
1.2.30
1.2.20
1.2.10
1.2.01
1.1.71
1.1.61
1.1.51
1.1.31
1.1.11
1.0.90
1.0.80
1.0.71

Package Sidebar

Install

npm i @ln-maf/mysql

Weekly Downloads

256

Version

2.0.6

License

Apache-2.0

Unpacked Size

1.97 MB

Total Files

44

Last publish

Collaborators

  • martdo02
  • ejezisek