dbWriteTable,DoltConnection,character,data.frame-method | R Documentation |
This method uses dbx::dbxInsert()
as that implementation
is much more performant than the standard method from RMariaDB::dbWriteTable(),
due to the way Dolt handles repeat INSERT
statements.
## S4 method for signature 'DoltConnection,character,data.frame'
dbWriteTable(
conn,
name,
value,
field.types = NULL,
row.names = FALSE,
overwrite = FALSE,
append = FALSE,
temporary = FALSE,
batch_size = NULL
)
conn |
a database connection |
name |
the table name |
value |
A data frame. |
field.types |
Optional, overrides default choices of field types, derived from the classes of the columns in the data frame. See dbDataType() |
row.names |
Either If A string is equivalent to For backward compatibility, |
overwrite |
a logical specifying whether to overwrite an existing table
or not. Its default is |
append |
a logical specifying whether to append to an existing table
in the database If appending, then the table (or temporary table)
must exist, otherwise an error is reported. Its default is |
temporary |
If |
batch_size |
The number of records to insert in a single statement (defaults to all) |
This the dependency on dbx
may be removed if the base issue is resolved: https://github.com/dolthub/dolt/issues/2091.
dolt-read
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.