0.0.3 • Published 7 years ago
express-middleware-streaming-mssql v0.0.3
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`))