sqids-postgresql icon indicating copy to clipboard operation
sqids-postgresql copied to clipboard

Init

Open 4kimov opened this issue 1 year ago • 6 comments

The original Postgres version was written in C: https://github.com/iCyberon/pg_hashids (cc @iCyberon)

@tzvetkoff Any chance that your sqids-c could be linked with Postgres to make this one?

4kimov avatar Jan 20 '24 03:01 4kimov

I would be more than happy to migrate.

iCyberon avatar Jan 22 '24 19:01 iCyberon

Hey @iCyberon, that'd be great! Just sent you a maintainer invite to the repo, so feel free to push as you see fit. I think quite a few people would be happy to see a Postgres version updated (including me).

A bit more on the changes / porting here: https://github.com/sqids/sqids-spec#-how-to-port-sqids-to-another-language

4kimov avatar Jan 22 '24 21:01 4kimov

@iCyberon @4kimov Big upvote for this, many Supabase users would be thrilled. Any timeline or help needed?

JitYc avatar Feb 22 '24 13:02 JitYc

@JitYc Help would be appreciated, yes.

@iCyberon Looks like you should have access to this repo, do you have an approximate ETA on when you might give this a shot?

4kimov avatar Feb 23 '24 00:02 4kimov

I could really use this. Can we put a bounty on it or something?

kryptus36 avatar Apr 16 '24 20:04 kryptus36

For anyone watching this issue, I've implemented a PLPGSQL version at https://github.com/sqids/sqids-plpgsql

Happy to take feedback, PRs, etc.

kryptus36 avatar Apr 28 '24 18:04 kryptus36

Pushed a work-in-progress, works ok in development env. Still missing tests + better error handling. Going to close this general issue, please open new ones as you see specific problems appear.

Of course improvement PRs are welcome.

4kimov avatar Jun 30 '24 15:06 4kimov