leafo / pgmoon

A pure Lua Postgres driver for use in OpenResty & more
MIT License
390 stars 93 forks source link

port #101 to moonscript #111

Closed KoffeinKaio closed 2 years ago

KoffeinKaio commented 2 years ago

Port PR #101 to moonscript

voting for removal of ngx.base64 dependency and switch to maybe 'require base64'

leafo commented 2 years ago

I was actually working on this concurrently with you. I already verified what I had done so I'm going to close this one. Thanks for helping though.

Regarding base64, luasocket includes a base64 implementation that can be used in the mime library. I updated the util library to conditionally choose a library based on what's available.