connection_update: Update a record in a table

View source: R/crud.R

connection_updateR Documentation

Update a record in a table

Description

Updates an existing record in a table with automatic timestamp handling. If the table has an updated_at column, it will be set automatically.

Usage

connection_update(conn, table_name, id, values, auto_timestamps = TRUE)

Arguments

conn

Database connection

table_name

Name of the table

id

The ID of the record to update

values

Named list of column-value pairs to update

auto_timestamps

Whether to automatically set updated_at (default: TRUE)

Value

Number of rows affected


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