testapi6-sql
TypeScript icon, indicating that this package has built-in type declarations

1.2.3 • Public • Published

testapi6-sql

A plugin to create tag to execute sql(mysql, postgres...)

Features

  • Execute sql

Read document details

How to use

Installation

// install via npm
npm install -g testapi6-sql

// install via yarn
yarn global add testapi6-sql

Configuration

Read knex

Use in yaml

- testapi6-sql.Sql:
    connection: mysql://root:root@localhost/mydb
    # connection: postgres://root:root@localhost/mydb
    queries: 
      - select * from user
      - title: Get users
        sql: select * from users where id = ?
        prms: 
          - 123
        var: rs
- Echo: ${rs}

Readme

Keywords

none

Package Sidebar

Install

npm i testapi6-sql

Weekly Downloads

2

Version

1.2.3

License

MIT

Unpacked Size

25.7 kB

Total Files

19

Last publish

Collaborators

  • doanthuanthanh88