edge-sql.js como definir o connectionString?
var edge = require('edge');
var getProduct = edge.func('sql', function () {/*
select * from Products
where ProductId = @myProductId
*/});
getProduct({ myProductId: 10 }, function (error, result) {
if (error) throw error;
console.log(result);
});
Este código funciona bem, mas me sinto desconfortável com a configuração do ConnectionString como ENVIROMENT_VARIALBE!
set EDGE_SQL_CONNECTION_STRING=Data Source=localhost;Initial Catalog=Northwind;Integrated Security=True
Mas não consigo encontrar uma maneira diferente de fazer isso! Mesmo emGitHub Não consigo encontrar outra maneira de configurar o ConnectionString! Então, eu imagino que seja possível no OOB edge-sql.js definir o ConnectionString no Code?