express-middleware-streaming-mssql
v0.0.3
Published
An Express Middleware using node-mssql and streaming outputs
Maintainers
Readme
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`))
