Back

Generate QR Codes with Pure SQL in PostgreSQL

80 points5 daystanelpoder.com
userbinator3 hours ago

It is... surprisingly readable, if you have any experience with QR code generation.

rattray5 hours ago

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.

maarut6 hours ago

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.

catlifeonmars5 hours ago

Everyone loves a good Easter egg

dfajgljsldkjag9 hours ago

This brings back memories of trying to do weird things in SQL for fun. It is such a cool concept.

Nora237 hours ago

The pure SQL approach is impressive. Would be interesting to see performance comparisons with traditional QR libraries at scale.

sublinear2 hours ago

> 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.