You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Availability to use Oj to dump JSON rather than using to_json
Potentially convert ruby types ourselves to make the process quicker, e.g
def jsonb_quote_value(value)
case value
when String then "'\"#{connection.quote_string(value)}\"'"
when Date, Time then "'\"#{value.iso8601}\"'"
when nil then %('null')
when Hash then %('#{value.to_json}')
else %('#{value}')
end
end
The text was updated successfully, but these errors were encountered:
antoinemacia
changed the title
Add potential extension with Oj gem
Refactor jsonb_quote_value method
Jul 23, 2018
Availability to use
Oj
to dump JSON rather than usingto_json
Potentially convert ruby types ourselves to make the process quicker, e.g
The text was updated successfully, but these errors were encountered: