Announce: Alpha release of postgres.js

113 views
Skip to first unread message

Joshua D. Drake

unread,
Oct 11, 2010, 5:40:45 PM10/11/10
to nodejs
Hello,

Postgres.js is a fork of Tim Caswell's fine postgres-pure.js, a pure
JavaScript implementation of the PostgreSQL protocol in JavaScript,
allowing you to develop native applications using Javascript and node.js
for PostgreSQL.

The first Alpha release of postgres.js driver brings support for
parameterized queries, using Postgresql itself to handle escaping and
correctly sandboxing potentially malicious data.

Other improvements include initial support for in-Javascript
transactions, to permit grouping of queries into a logical block. This
feature will be very useful for environments such as a web applications,
allowing each request to have its own queries able to be scheduled as a
single unit.

For more information on postgres.js please see the git repository:

http://github.com/commandprompt/postgres-js

Or to learn from the expert register for PostgreSQL Conference West 2010
where Aurynn Shaw will be speaking on postgres.js:

https://www.postgresqlconference.org/

Sincerely,

Joshua D. Drake
--
PostgreSQL.org Major Contributor
Command Prompt, Inc: http://www.commandprompt.com/ - 509.416.6579
Consulting, Training, Support, Custom Development, Engineering
http://twitter.com/cmdpromptinc | http://identi.ca/commandprompt

Tim Caswell

unread,
Oct 11, 2010, 6:02:08 PM10/11/10
to nod...@googlegroups.com
Neat, I'm glad my project helped! my postgres-js library was one of my first node.js libraries.

> --
> You received this message because you are subscribed to the Google Groups "nodejs" group.
> To post to this group, send email to nod...@googlegroups.com.
> To unsubscribe from this group, send email to nodejs+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/nodejs?hl=en.
>

brianc

unread,
Oct 28, 2010, 4:08:40 PM10/28/10
to nodejs
Yah! Mr Caswell's library was an EXCELLENT point of reference for my
node.js -> PostgreSQL client as well.

I chose not to fork due to the monkey-patching of the Buffer object
and the no unit tests. It looked like more of a proof of concept,
albeit an inspirational one. I've been developing my own client in
the dark for the past couple weeks.

So far I'm sitting at 152 tests, 798 assertions in 0.084 seconds.
It's tests on Ubuntu and OS X against PostgreSQL server 8.4 and
PostgreSQL 9.0. Still a _major_ work in progress though. Would
appreciate some thoughts on the prepared statement api.

http://gist.github.com/651937

and of course, contributions are beautiful and welcome

<3
@briancarlson
> > Command Prompt, Inc:http://www.commandprompt.com/- 509.416.6579
Reply all
Reply to author
Forward
0 new messages