Generate QR Codes with Pure SQL in PostgreSQL
tanelpoder.com94 points by tanelpoder 5 days ago
94 points by tanelpoder 5 days ago
Could be added to SQL test suites tbh
It is... surprisingly readable, if you have any experience with QR code generation.
This brings back memories of trying to do weird things in SQL for fun. It is such a cool concept.
Reading the code felt a little eye opening about what programming can be. Slightly like learning a bit of Haskell. Even though sql is so familiar.
I think if this could be run in a production environment, it would also be fun. Even though it has been stated that it is only for personal enjoyment.
The pure SQL approach is impressive. Would be interesting to see performance comparisons with traditional QR libraries at scale.
> I did this purely for fun and learning, I don’t think this is going to be the best way for generating QR codes in production.
And yet, someone somewhere is under pressure to "just get it done" and generate QR codes from URLs in a database.