-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels