Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python async get result

async def run():
   conn = await asyncpg.connect(db_url)
   values = await conn.fetch('''SELECT ... FROM ... WHERE ...;''')
   await conn.close()
   return values
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #async #result
ADD COMMENT
Topic
Name
4+4 =