πŸ±πŸ’€ Woken by a cat and armed with ChatGPT Pro, our hero decides to cram a QR code generator into a single #SQL statement, because who needs practicality when you have insomnia? πŸ˜‚ Oh, and it runs faster on PostgreSQL 17, because clearly that's the version everyone is using for their enterprise-grade QR code needs. πŸš€
https://tanelpoder.com/posts/generate-qr-code-with-pure-sql-in-postgres/ #InsomniaCoding #QRcode #PostgreSQL17 #ChatGPTPro #HackerNews #ngated
pqr.sql: Generate QR Codes with Pure SQL in PostgreSQL - Tanel Poder Blog

As my cat woke me up way too early for a Saturday morning, I decided to put all this extra time (and my ChatGPT Pro subscription) into good use and generated a QR-code generator for PostgreSQL, written as a single pure SQL statement. No external libraries or Postgres extension installation needed! The pqr.sql example usage is simple: $ psql -qf pqr.sql -v payload='Hello, World!' There’s also a bit more complex version pqrsafe. - Linux, Oracle, SQL performance tuning and troubleshooting training & writing.