This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* -------------------------- | |
* | |
* NANO ID on SUPABASE | |
* Modified the original (link below) to work as Supabase function instead of adding to pgcrypto extension. | |
* - remove statements for modifying pgcrypto extension | |
* - commented LEAKPROOF as it requires superadmin which we do not have | |
* - change gen_random_bytes(step); to extensions.gen_random_bytes(step); | |
* | |
* https://github.com/viascom/nanoid-postgres/blob/main/nanoid.sql |