dresende / node-orm2

Object Relational Mapping
http://github.com/dresende/node-orm2
MIT License
3.07k stars 377 forks source link

Is there a way to configure pool options like node-mysql in orm2? #548

Open yuklai opened 10 years ago

yuklai commented 10 years ago

Something like connectionLimit and acquireTimeout: https://github.com/felixge/node-mysql#user-content-pool-options

Thanks!

dxg commented 10 years ago

Not at the moment. This has been mentioned before, but at the time, the pg package did not allow specifying pool size.

I think this has changed with newer versions of pg so should be easy to implement.

yuklai commented 10 years ago

Sorry if I wasn't clear. I was more interested in the mysql implementation of orm2. Is that the same case? Anyone know what the default is set at? Thanks again!

mhuggins commented 10 years ago

I don't think you weren't clear, I think what @dxg was getting at is that all drivers need to support an options to enable it. At the time that node-orm was created, pg didn't allow it, so this package didn't support it all around.

yuklai commented 10 years ago

@mhuggins @dxg Sorry, I thought pg meant postgres. Would you mind clarifying? Was it because postgres didn't support these settings so orm didn't support it for other db too? Is it possible to have db specific settings? Thanks in advance!