[13sequel] 15StanislavNaumov opened issue #1524: Converting resultset to json return noMethodError 02https://git.io/vhXVm
[13sequel] 15jeremyevans closed issue #1524: Converting resultset to json return noMethodError 02https://git.io/vhXVm
[13sequel] 15jeremyevans commented on issue #1524: You have to add `disabled` and `selected` methods to `BoxberryPackage` use the json_serializer plugin in this case (the json_serializer plugin calls methods for each of the keys in the hash). Alternatively, since you aren't actually using the json_serializer specific options, you can do: `packages.map(&:values).to_json`. 02https://git.io/vhXw2
I have a table `secrets` with a fk `resource_id` -- the resource is a variable like a password, and when you change it you add a record to `secrets`, which automatically gets the highest sequential version number. when i'm creating a new secret with sequel `Secret.create(...)`, I'd like to lock it so that no secrets with that resource id can be read (for_update can do this part) AND no other creates on the resource_id can be
added. How do I achieve this part?
JJonah: Not sure if there is a good way to do that. Ask on the appropriate forum for your database the best way to do it in SQL, and if you can provide the SQL you want to use, I can help with the Sequel part.