Skip to content
Corex

WpTableDataWriter

Corex\Config\Data\WpTableDataWriter · class · Config layer

The $wpdb write boundary for a managed custom table (spec 074). Every statement is prepared — identifiers with %i, values with %s/%d — and every write is confined to the columns the caller passed in, which the source has already narrowed to the table’s declared writable fields. A value whose column is not on that list is dropped here rather than trusted, so a malformed CSV row or a mistaken mapping cannot reach a column nobody declared. Deletes and updates are bounded by an explicit id list; there is no path to an unqualified UPDATE/DELETE over a whole table.

insert(string $table, array $columns, array $values): int

Section titled “insert(string $table, array $columns, array $values): int”

update(string $table, array $columns, array $ids, array $values): int

Section titled “update(string $table, array $columns, array $ids, array $values): int”