| connection_find | R Documentation |
Finds a single record in a table by its ID. Supports soft-delete patterns where records have a deleted_at column.
connection_find(conn, table_name, id, with_trashed = FALSE)
conn |
Database connection |
table_name |
Name of the table to query |
id |
The ID to look up (integer or string) |
with_trashed |
Whether to include soft-deleted records (default: FALSE). Only applies if deleted_at column exists in the table. |
A data frame with the record, or empty data frame if not found
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.