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
create or replace function sendgrid_eid24_to_uuid(eid text) | |
returns uuid language sql immutable strict parallel safe | |
as $function$ | |
select encode(decode(translate(eid, '-_', '+/'), 'base64'), 'hex')::uuid; | |
$function$; | |
create or replace function sendgrid_eid48_to_uuid(eid text) | |
returns uuid language sql immutable strict parallel safe | |
as $function$ |
NewerOlder