2.0.6 • Published 1 year ago

@ln-maf/mysql v2.0.6

Weekly downloads
217
License
Apache-2.0
Repository
github
Last release
1 year ago

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.

2.0.6

1 year ago

3.0.0-beta.2

1 year ago

2.0.5

1 year ago

3.0.0-beta.1

1 year ago

2.0.4

1 year ago

2.0.3

1 year ago

3.0.0-beta.0

1 year ago

2.0.2

2 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.6.2

3 years ago

1.6.1

3 years ago

1.6.0

3 years ago

1.5.0

4 years ago

1.4.5

4 years ago

1.4.4

4 years ago

1.4.3

4 years ago

1.3.11

4 years ago

1.3.10

4 years ago

1.3.7

4 years ago

1.3.6

4 years ago

1.3.8

4 years ago

1.3.5

4 years ago

1.3.3

4 years ago

1.3.2

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.0

4 years ago

1.2.1

4 years ago

1.1.7

4 years ago

1.1.6

4 years ago

1.1.1

4 years ago

1.1.5

4 years ago

1.1.3

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago