code: function findColumns (pgColumns, schemaName, tableName) {
    return pgColumns
      .filter(o => o.table_schema === schemaName && o.table_name === tableName)
      .reduce((columns, col) => {
        const columnInfo = {
          columnDefault: col.column_default,
          isNullable: col.is_nullable,
          dataType: col.data_type,
          characterMaximumLength: col.character_maximum_length,
          numericScale: col.numeric_scale,
          comment: col.column_comment
        }
        if (columnInfo.dataType === 'ARRAY') {
          columnInfo.array = true
          columnInfo.dataType = col.array_element_type.slice(1)
        } else {
          columnInfo.array = false
        }
        columns[col.column_name] = columnInfo
        return columns
      },
      {}
      )
  }
docs: primaryKeyColumns