3 ms·
Use dollar-quoting for automatic string conversion: insert into my_table values ($$ json_goes_here $$); Works for all stringy things.
by dizzystar 12y ago
Use dollar-quoting for automatic string conversion:
insert into my_table values
($$ json_goes_here $$);
Works for all stringy things.
- sk5t 12y agoCool, thanks. Last time around I used a pg-driver-specific datatype to hold the parameter on its way through sql2o, and felt rather guilty about doing so.