classifyApplyStrategy
classifyApplyStrategy(
columns):ApplyStrategy
Defined in: packages/contracts/src/apply-strategy.ts:119
Chooses the bulk-insert strategy for a table from its column types (ADR-0009 decision 3):
- every column COPY-safe →
copy; - else every column COPY-safe ∪ array/json/jsonb →
json; - else →
insert(the always-correct floor for anything not positively whitelisted).
Pure and total: an empty column list falls to insert.
Parameters
Section titled “Parameters”columns
Section titled “columns”readonly SyncColumnType[]