create_sql_table | R Documentation |
These functions simply wrap DBI functions to use the standard connection
defined in start_sql_connection()
.
create_sql_table()
wraps DBI::dbCreateTable()
drop_sql_table()
wraps DBI::dbRemoveTable()
read_sql_table()
wraps DBI::dbReadTable()
write_sql_table()
wraps DBI::dbWriteTable()
append_sql_table()
wraps DBI::dbAppendTable()
create_sql_table(name, fields, ..., temporary = FALSE)
drop_sql_table(name, ...)
read_sql_table(name, ...)
write_sql_table(value, name, ...)
append_sql_table(value, name, ...)
name |
The table name, passed on to
|
fields |
Either a character vector or a data frame. A named character vector: Names are column names, values are types.
Names are escaped with A data frame: field types are generated using
|
... |
Other parameters passed on to methods. |
temporary |
If |
value |
a data.frame (or coercible to data.frame). |
See the DBI
documentation for further information on each function.
name
will be simply interpreted by sql_identifier()
. If it is a character
string containing a fully qualified name (i.e. my_schema.my_table
), call
sql_identifier()
yourself and set parse = TRUE
.
write_
and append_sql_table()
have the value
argument come first,
before name
. This is an intentional change from their respective DBI
functions, so as to facilitate their use with pipes.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.