Write an entire schema or a subset of tables within a schema to a csv for each table to the given path. The csvs are named according to the source table name.
write_schema_to_csvs( conn, schema, ..., path = getwd(), na = "NA", append = FALSE, col_names = !append, quote_escape = "double", eol = "\n" )
conn | Connection to a Postgres database. |
---|---|
... | Optional. Character vectors of names of tables to export. If missing, all the tables in the given schema are exported. |
path | Path to the package root that contains the |
na | String used for missing values. Defaults to NA. Missing values
will never be quoted; strings with the same value as |
append | If |
col_names | If |
quote_escape | |
eol | The end of line character to use. Most commonly either |