Commit message
new commit message
well, another commit message
First not-working version of our beloved easy-to-use deferred PG client
crashes (sometimes) when pg server is restarted during query processing
module provides following functions now: query, queryOne, queryAll, insert, update, begin, commit, rollback
debug
It doesn't crash finally, if the pgdb server is restarted right in the middle of query processing
minor changes in the source code and better code documentation
queuePull modified to make queue changes more atomic, this removed
few ugly failures in tests as well
possible to use connection object or connection string
new tests and modifications for insert, update and upsert

upsert and paginate are not working properly now due to their design
UPSERT repaired. It is whole done in one query in the database, not
as a combination of two queries. The original way led to following:
we want to upsert val = 1 to val = 1

original solution
query: upsert1, upsert2 ... in db exists val = 1? no -> insert later
query: upsert2, insert1 ... in db exists val = 1? no -> insert later
query: insert1, insert2 ... in db insert val = 1
query: insert2          ... in db insert val = 1
query:

right (current) solution
query: upsert1, upsert2 ... in db exists val = 1? no -> insert now!
query: upsert2          ... in db exists val = 1? yes -> update now!
query:
Test order
unused spawn
travis create db
glob
repository package
travis password
Client constructor accepts both, connection object or connection string, client can be stopped using kill() -stops it immediately, may cause some errors in current query processing
Added new test for deferred initialisation, kill and connection param evaluation
Merge branch 'develop' of github.com:falsecz/easy-pg into develop
travis password
log errors
Test changed to take minimum of db connections