Skip to content

Postgres wire protocol client library written in Pluto, including SASL SCRAM algorithm.

License

Notifications You must be signed in to change notification settings

PlutoLang/pluto-pg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pluto-pg

Postgres wire protocol client library written in Pluto, including SASL SCRAM algorithm.

Usage Example

require "pg"
local s = require"socket".connect("localhost", 5432)
pgauth(s, "pg", "pg", "test") -- user, pass, db
while pgrecv(s) ~= "Z" do end -- Await ReadyForQuery
print(dumpvar(pgquery(s, [[SELECT * FROM "test" LIMIT $1]], 1)))

About

Postgres wire protocol client library written in Pluto, including SASL SCRAM algorithm.

Topics

Resources

License

Stars

Watchers

Forks

Languages