3.0.0-beta.2 • Published 11 days ago

@ln-maf/mysql v3.0.0-beta.2

Weekly downloads
217
License
Apache-2.0
Repository
github
Last release
11 days 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.

3.0.0-beta.2

11 days ago

2.0.5

11 days ago

3.0.0-beta.1

19 days ago

2.0.4

19 days ago

2.0.3

3 months ago

3.0.0-beta.0

3 months ago

2.0.2

9 months ago

2.0.1

2 years ago

2.0.0

2 years ago

1.6.2

2 years ago

1.6.1

2 years ago

1.6.0

2 years ago

1.5.0

2 years ago

1.4.5

3 years ago

1.4.4

3 years ago

1.4.3

3 years ago

1.3.11

3 years ago

1.3.10

3 years ago

1.3.7

3 years ago

1.3.6

3 years ago

1.3.8

3 years ago

1.3.5

3 years ago

1.3.3

3 years ago

1.3.2

3 years ago

1.2.4

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.0

3 years ago

1.2.1

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.1

3 years ago

1.1.5

3 years ago

1.1.3

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago