{"version":3,"file":"indexes-match.mjs","names":[],"sources":["../../../../src/libs/collection/helpers/indexes-match.ts"],"sourcesContent":["type IndexDefinition = {\n\tcolumns: string[];\n\tunique?: boolean;\n};\n\n/** Returns whether two index definitions have the same ordered columns and uniqueness. */\nconst indexesMatch = (left: IndexDefinition, right: IndexDefinition): boolean =>\n\tleft.columns.length === right.columns.length &&\n\tleft.columns.every((column, index) => right.columns[index] === column) &&\n\t(left.unique ?? false) === (right.unique ?? false);\n\nexport default indexesMatch;\n"],"mappings":"AAMA,MAAM,GAAgB,EAAuB,IAC5C,EAAK,QAAQ,SAAW,EAAM,QAAQ,QACtC,EAAK,QAAQ,OAAO,EAAQ,IAAU,EAAM,QAAQ,KAAW,CAAM,IACpE,EAAK,QAAU,OAAY,EAAM,QAAU"}