leafo / pgmoon

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

cannot connect to postgresql #112

Open thoughtworks-caihu opened 2 years ago

thoughtworks-caihu commented 2 years ago

image

lua version : Lua 5.4.3 Copyright (C) 1994-2021 Lua.org, PUC-Rio

leafo commented 2 years ago

mime is a library provided by LuaSocket that provides base64 encoding and decoding.

Depending on the environment you're running it in, you will need to provide some kind of socket library as outlined in the readme:

Can you tell me how you're trying to use pgmoon? I notice now that if you've only installed cqueues then no base64 implementation would be available and that's an oversight on my end.