Generate QR Codes with Pure SQL in PostgreSQL

(tanelpoder.com)

95 points | by tanelpoder 4 days ago

7 comments

  • 6r17 42 minutes ago
    Could be added to SQL test suites tbh
  • userbinator 6 hours ago
    It is... surprisingly readable, if you have any experience with QR code generation.
  • dfajgljsldkjag 11 hours ago
    This brings back memories of trying to do weird things in SQL for fun. It is such a cool concept.
  • rattray 8 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.
  • maarut 8 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.
  • Nora23 10 hours ago
    The pure SQL approach is impressive. Would be interesting to see performance comparisons with traditional QR libraries at scale.
  • sublinear 4 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.