New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@qavajs/steps-sql

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@qavajs/steps-sql

steps to interact with relational databases

latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
3
Created
Source

@qavajs/steps-sql

Step library to work with relational databases

Installation

npm install @qavajs/steps-sql

Configuration

import { MySQLClient, PgClient } from '@qavajs/steps-sql/clients';
export 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

clientdescription
MySQLClientMySQL client. Works on top of https://www.npmjs.com/package/mysql2
PgClientPostgreSQL client. Works on top of https://www.npmjs.com/package/pg

FAQs

Package last updated on 05 Dec 2024

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