connection_find_by: Find records by column values

View source: R/crud.R

connection_find_byR Documentation

Find records by column values

Description

Finds records in a table matching specified column values. Supports soft-delete patterns where records have a deleted_at column.

Usage

connection_find_by(conn, table_name, ..., with_trashed = FALSE)

Arguments

conn

Database connection

table_name

Name of the table to query

...

Named arguments for column = value pairs (e.g., email = "test@example.com")

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 matching records, or empty data frame if none found


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