mkvenv # create + activate venv named after current dir
mkvenv my-name # create + activate venv with explicit name
workon my-project # activate existing venv
deactivate # deactivate current venv
rmvenv # deactivate + remove current venv
rmvenv my-name # deactivate (if active) + remove named venv
lsvenv # list all venvs with linked project pathsTags
#lua #postgres #macos
Example on how to use Lua with luasql-postgres to query a public postgres database. This is more or less a followup to https://gist.github.com/zirkuswurstikus/3689d846cdd0d313a4e5448297127093
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Build & install Lua on macOS | |
| # We will compile Lua 5.1 because it is compatible with openresty/lapis. | |
| # Replace the variables from line 30 ff to install a diffrent version. | |
| # See: https://www.lua.org/manual/5.1/ | |
| # NOTE: | |
| # We create a dedicated directory for the Lua stuff to putt all the stuff in. |