(pool)
| 27 | |
| 28 | |
| 29 | async def create_table(pool): |
| 30 | async with pool.acquire() as conn: |
| 31 | await conn.execute(''' |
| 32 | CREATE TABLE IF NOT EXISTS user_data ( |
| 33 | name SYMBOL, |
| 34 | email VARCHAR, |
| 35 | age LONG, |
| 36 | created_at TIMESTAMP |
| 37 | ) timestamp(created_at) partition by hour; |
| 38 | ''') |
| 39 | |
| 40 | |
| 41 | def generate_test_data(num_records): |