You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@ln-maf/mysql

Package Overview
Dependencies
Maintainers
0
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ln-maf/mysql

Setup for sql on Node

4.1.1
latest
Source
npmnpm
Version published
Weekly downloads
221
-19.05%
Maintainers
0
Weekly downloads
 
Created
Source

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][dep-image]][dep-url]

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.

Keywords

cucumber-js

FAQs

Package last updated on 31 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts