Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /trisongz_lazyops /tests /_basic /test_pgsql.py
| import os | |
| os.environ['POSTGRES_URI'] = 'test:test@localhost:5432/test' | |
| os.environ['POSTGRES_USER'] = 'postgres' | |
| # os.environ['POSTGRES_PASSWORD'] = 'test' | |
| import asyncio | |
| from lazyops.libs.psqldb import PostgresDB | |
| async def test(): | |
| PostgresDB.prepare_db( | |
| role_user = 'test', | |
| role_password = 'test', | |
| db_name = 'test', | |
| ) | |
| async with PostgresDB.async_session() as sess: | |
| await sess.execute("SELECT 1") | |
| asyncio.run(test()) |
Xet Storage Details
- Size:
- 464 Bytes
- Xet hash:
- 70957fcad6cb914630d087a4f03e0636b30a22bdcf9eb23cb66a8c22feede20b
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.