code: function findTriggers (pgTriggers, schemaName, tableName) {
    return pgTriggers
      .filter(t => t.trigger_schema === schemaName && t.event_object_table === tableName)
      .reduce((triggers, trigger) => {
        triggers[trigger.trigger_name] = {
          eventManipulation: trigger.event_manipulation,
          actionCondition: trigger.action_condition,
          actionStatement: trigger.action_statement,
          actionOrientation: trigger.action_orientation,
          actionTiming: trigger.action_timing
        }
        return triggers
      },
      {}
      )
  }
docs: findIndexes