coresmart / persistencejs

persistence.js is an asynchronous Javascript database mapper library. You can use it in the browser, as well on the server (and you can share data models between them).
http://persistencejs.org
1.72k stars 240 forks source link

Updates for Node 0.6 #64

Closed jacobmumm closed 9 years ago

jacobmumm commented 12 years ago

Zef,

I just pushed my setup from node 0.4.11 to 0.6.1. I also updated all the modules, which I had not done in a good while. Here are the changes that I had to make to get persistence to work again.

The SYS module is now called UTIL. I was lazy and just changed the require lines.

The node_mysql module creates connections differently now. You're supposed to use mysql.createClient() instead of new Client(). Also, you can't call the connect() method on your mysql client.

I'm pretty sure these changes will break things for people who aren't up to date, so I wouldn't pull this if you aren't ready to force everyone to upgrade.

Cheers, Jake

EDIT: Would this make more sense as a branch? Feel free to kill this pull if you think we should treat it differently.