Skip to content

Conversation

Drazke
Copy link

@Drazke Drazke commented Sep 4, 2016

Issue #284

New function :

db.driver.createPool(cb) --> return connectionId;
db.driver.releasePool(connectionId);

Updated function :

Model.create(data, connectionId, cb)
Instance.useConnection(connectionId).chainFunction()

@dxg
Copy link
Collaborator

dxg commented Sep 5, 2016

Looks pretty good, thanks.
@dresende what do you think?

@dresende
Copy link
Owner

dresende commented Sep 10, 2016

If it doesn't break anything, it's all good to me 👍

@qq85911308
Copy link

qq85911308 commented Feb 16, 2017

SELECT ... FOR UPDATE

Model.find().where("id = 1 FOR UPDATE").run(function(err, result){
...
});

in transaction i want to lock by select
is method useConnectionId can't use in model ?
@Drazke @dxg @dresende

@Ottunger
Copy link

Ottunger commented Jul 5, 2018

@Drazke @dresende Any update on this one, should it reach npm or should I check it out locally?
Same question for dresende/node-orm-transaction#6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants