| connection_insert | R Documentation |
Inserts a new record into a table with automatic timestamp handling. If the table has created_at/updated_at columns, they will be set automatically.
connection_insert(conn, table_name, values, auto_timestamps = TRUE)
conn |
Database connection |
table_name |
Name of the table |
values |
Named list of column-value pairs |
auto_timestamps |
Whether to automatically set created_at/updated_at (default: TRUE) |
The ID of the inserted record (if auto-increment ID exists), or number of rows affected
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.