netspective-labs / sql-aide

SQL Aide (SQLa) Typescript template literal text supplier optimized for emitting SQL
https://www.sql-aide.com/
MIT License
10 stars 17 forks source link

Comparing generated SQL with fixtures when using ULIDs or UUIDs #170

Open geovlazar opened 8 months ago

geovlazar commented 8 months ago

When comparing SQL that's generated using ULIDs, UUIDs, and other keys with stored test fixtures is difficult since each time the code is generated, the ULID values are not idempotent. UUIDv5 and similar algorithms create the same output for each input so perhaps we need a way to generate ULIDs in a "fixture comparison friendly way".