pgwebsocket 0.0.1
Async websocket to PostgreSQL proxy.
Install
python3 -m pip install pgwebsocket
Usage
from pgwebsocket import PgWebsocket
app = PgWebsocket("")
@app.on_connect
async def _on_connect(ctx):
await ctx.execute("LISTEN clients;")
@app.on_disconnect
async def _on_disconnect(ctx):
await ctx.execute("UNLISTEN clients;")
if __name__ == '__main__':
app.run()
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.