express-middleware-streaming-mssql

0.0.3 • Public • Published

An Express Middleware for Streaming SQL

A really simple SQL streaming express middleware using implementation from node-mssql.

Example

import mssql from 'mssql'
import runSqlInPool from 'express-middleware-streaming-mssql'
 
// create your pool first
const pool = new mssql.ConnectionPool(/*config*/)
 
const runSql = runSqlInPool(pool)
 
 
app.get('/', runSql(`select top 1 * from sometable`))
 

/express-middleware-streaming-mssql/

    Package Sidebar

    Install

    npm i express-middleware-streaming-mssql

    Weekly Downloads

    1

    Version

    0.0.3

    License

    MIT

    Last publish

    Collaborators

    • kevinwu