createOrReplaceInsertCompensationTrigger method

List<String> createOrReplaceInsertCompensationTrigger(
  1. QualifiedTablename table,
  2. String childKey,
  3. QualifiedTablename fkTable,
  4. String joinedFkPKs,
  5. ForeignKey foreignKey,
)

Creates a trigger that logs compensations for insertions into the oplog.

Implementation

List<String> createOrReplaceInsertCompensationTrigger(
  QualifiedTablename table,
  String childKey,
  QualifiedTablename fkTable,
  String joinedFkPKs,
  ForeignKey foreignKey,
) {
  return createOrReplaceFkCompensationTrigger(
    'INSERT',
    table,
    childKey,
    fkTable,
    joinedFkPKs,
    foreignKey,
  );
}