Skip to content

asyncgp is a database interface library based on asyncpg for GreenPlum and Python/asyncio.

License

Notifications You must be signed in to change notification settings

MyColorfulDays/asyncgp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

asyncgp -- A database interface library based on asyncpg for GreenPlum and Python/asyncio

asyncgp is a database interface library based on asyncpg for GreenPlum and Python/asyncio.

asyncgp requires Python 3.5 or later and add supported for GreenPlum versions 5.x.

Documentation

You can refer to asyncpg document here.

Installation

asyncgp is available on PyPI. Use pip to install:

$ pip install asyncgp

or:

$ git clone https://github.com/MyColorfulDays/asyncgp.git
$ cd asyncgp
$ python setup.py install

Basic Usage

import asyncio
import asyncgp as asyncpg

async def run():
    conn = await asyncpg.connect(user='user', password='password', database='database', host='127.0.0.1')
    values = await conn.fetch('''SELECT * FROM mytable''')
    await conn.close()

loop = asyncio.get_event_loop()
loop.run_until_complete(run())

About

asyncgp is a database interface library based on asyncpg for GreenPlum and Python/asyncio.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages