leafo / pgmoon

A pure Lua Postgres driver for use in OpenResty & more
MIT License
390 stars 93 forks source link

how to disable type conversion for json objects #104

Closed zcaudate closed 3 years ago

zcaudate commented 3 years ago

is there a way to get the raw string for a query returning a json object?

leafo commented 3 years ago

You can turn override the type deserializer for json in the instance of pgmoon to nil, or you can cast the json object to text in your postgres query.

zcaudate commented 3 years ago

sweet that works really well.