Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
10 lines
512 B
Plaintext
10 lines
512 B
Plaintext
import type { FlattenedField } from 'payload';
|
|
/**
|
|
* Checks whether we should use the upsertRow function for the passed data and otherwise use a simple SQL SET call.
|
|
* We need to use upsertRow only when the data has arrays, blocks, hasMany select/text/number, localized fields, complex relationships.
|
|
*/
|
|
export declare const shouldUseOptimizedUpsertRow: ({ data, fields, }: {
|
|
data: Record<string, unknown>;
|
|
fields: FlattenedField[];
|
|
}) => any;
|
|
//# sourceMappingURL=shouldUseOptimizedUpsertRow.d.ts.map |