News for hackers. Stuff that matters.
Re:Node.js, MongoDB, and you: an intro in parts by twerquie on Thursday January 16, 2014 @02:54PM (#7072090)
I feel you - I recently started a node project on LevelDB and ultimately switched over to an SQL database. The difference though is I went for Postgres 9.3, which has incredible native JSON support, allowing you to slice parts of your JSON data out as a record set, join them against tables, as well as other crazy things like partial indexes on deeply nested JSON values which may or may not be present.

I really think Pg is starting to blow Mongo out of the water.

Re:Node.js, MongoDB, and you: an intro in parts by hkarthik on Thursday January 16, 2014 @03:56PM (#7072503)
Any suggestions on ORMs or npm packages to use with pg and node?
Re:Node.js, MongoDB, and you: an intro in parts by twerquie on Friday January 17, 2014 @01:25PM (#7077465)
I'm a big fan of ORMs in other ecosystems (Rails and Django, for example), but in node I like to write more functional-style code, composing small modules into larger applications.

For this, check out the fantastic node-postgres adapter from brianc as well as his node-sql package for authoring SQL statements.

https://github.com/brianc/node-postgres https://github.com/brianc/node-sql

Re:Node.js, MongoDB, and you: an intro in parts by sync on Thursday January 16, 2014 @04:34PM (#7072693)
Stars is a great ranking technique, e.g.http://www.node-modules.com/search?q=postgresql&u=
Re:Node.js, MongoDB, and you: an intro in parts by dlau1 on Thursday January 16, 2014 @09:01PM (#7073839)
I'm using knex [0] which I am pretty happy with. There is also a higher level version built on top of it called bookshelf [1]

0 : https://github.com/tgriesser/knex 1 : https://github.com/tgriesser/bookshelf