import asyncio
import aiosqlite

async def check():
    async with aiosqlite.connect('db/memos.db') as db:
        db.row_factory = aiosqlite.Row
        async with db.execute('SELECT id, email, username, password_hash FROM cuccu_users') as c:
            rows = await c.fetchall()
            for r in rows:
                d = dict(r)
                print(f"id={d['id']} email={d['email']} username={d['username']} hash={d['password_hash'][:20]}...")

asyncio.run(check())
