cc "maco" young

Results 9 comments of cc "maco" young

I like your idea, but is not a `prepared statement` http://www.postgresql.org/docs/current/static/sql-prepare.html something like this: db.query( "prepare emp_update( int, varchar ) as update emp set name=$2 where emp_id=$1", {} ); db.query(...

1. I am not suggesting that your db.query() create a prepared statement - although some implementation do this. I'm suggesting that the developer create a set of commonly used dml...

once I get up to snuff on Dart, will be happy to contribute. have written drivers for pg before. when ready to begin, will contact you. On Sun, Nov 24,...

my pleasure. will be start in about a week (unless I'm stupider in Dart than expected) ;) On Mon, Nov 25, 2013 at 2:43 AM, xxgreg [email protected] wrote: > Great....

ran same test as above using `prepare` instead of `query` and got same results - the Promise's `resolve()` not passing to the Promise's `then()`

here is the same test using `pg = require('pg').native` - this works fine // test.pg.js 'use strict'; const pg = require('pg').native; exports.testQuery = function(cl) { return new Promise( (resolve,reject) =>...

for what it's worth, after reporting this, I wrote a new Promise-base node module based on node-libpq, https://github.com/trailsandtribulations/PrPq. the uv_poll code lifted from from node-pg. it works with no problem,...

more testing from my PrPq. Promises no longer work when another service, in this case nodejs-websocket, is enabled. changed consume(): instead of startReader() messaging now using setTimeout() polling. works successfully....

@brianc - have not tried with other Promise systems - running `node --harmony --use_strict`. assume that, in the end, this stuff will work. agree that `setTimeout()` is epic hack. but...