Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Set configuration parameters not working in Knex 0.6.x (postgres) #351
I use a configuration parameter in my transactions that triggers reference during row mutation, for the purpose of keeping a journal on who made changes to the database. I had this working fine in Knex 0.5.x but it fails in Knex 0.6.x -- the configuration parameter is not available to the trigger.
Knex 0.5.x example (working):
Knex 0.6.x example (not working):
Knex 0.6.x alternative example (not working either):
Still need to cut the patch release, but that one line should fix it for the time being. I was looking to add some tests and realized I need to do a bit more work internally to ensure events are handled within transactions properly. I'll try to get a patch release out by the end of the day regardless.