Prepare R objects for sending to postgresql
register_return_formatter(pgoid, f)format_for_send(obj)
the PostgreSQL type Oid
a function
any object
The function f must accept a vector of character values and return a vector of values formated appropriately.
R objects that will be written to postgresql must be converted to
characters as all data is transferred to the server as text. The S3 method
foramt_for_send
accomplishes this. It accepts any object and returns
a character representation.
You can define new conversions by supplying your own S3 override of
format_for_send
.