connection_find: Find a record by ID

View source: R/queries.R

connection_findR Documentation

Find a record by ID

Description

Finds a single record in a table by its ID. Supports soft-delete patterns where records have a deleted_at column.

Usage

connection_find(conn, table_name, id, with_trashed = FALSE)

Arguments

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.

Value

A data frame with the record, or empty data frame if not found


framework documentation built on Feb. 18, 2026, 1:07 a.m.