From jason at dickson.st Wed Nov 2 04:16:23 2016 From: jason at dickson.st (Jason Lewis) Date: Wed, 2 Nov 2016 15:16:23 +1100 Subject: [dancer-users] Dancer2::Plugin::Database Set transaction isolation level read uncommitted in quick_select Message-ID: <90289781-0d01-e560-e578-1762192a93b6@dickson.st> Fellow dancers, Is there some way can get database->quick_select in Dancer2::Plugin::Database to execute some sql statement prior to the select? Specifically I need to execute "Set transaction isolation level read uncommitted" in order to avoid my queries being blocked. What would be really nice is if there was an additional parameter you could pass into quick_select of whatever sql to execute before the quick_select. Any ideas? Thanks Jason -- Jason Lewis http://emacstragic.net From racke at linuxia.de Wed Nov 2 07:24:34 2016 From: racke at linuxia.de (Stefan Hornburg (Racke)) Date: Wed, 02 Nov 2016 08:24:34 +0100 Subject: [dancer-users] Dancer2::Plugin::Database Set transaction isolation level read uncommitted in quick_select In-Reply-To: <90289781-0d01-e560-e578-1762192a93b6@dickson.st> References: <90289781-0d01-e560-e578-1762192a93b6@dickson.st> Message-ID: Hello Jason, the object returned by the database keyword is essentially a DBI handle, so you can use it for any SQL operation like DBI does. Regards Racke On 2 November 2016 05:16:23 CET, Jason Lewis wrote: >Fellow dancers, > >Is there some way can get database->quick_select in >Dancer2::Plugin::Database to execute some sql statement prior to the >select? > >Specifically I need to execute "Set transaction isolation level read >uncommitted" in order to avoid my queries being blocked. > >What would be really nice is if there was an additional parameter you >could pass into quick_select of whatever sql to execute before the >quick_select. > >Any ideas? > >Thanks > >Jason >-- >Jason Lewis >http://emacstragic.net >_______________________________________________ >dancer-users mailing list >dancer-users at dancer.pm >http://lists.preshweb.co.uk/mailman/listinfo/dancer-users -------------- next part -------------- An HTML attachment was scrubbed... URL: