@Turtle, I overlooked the fact that you use aiosqlite, which you didn't mention explicitly, but was visible in the output. Anyway, according to docs it should work - there is an example.
Anyway, can you show the full traceback and ideally the full minimal reproducible code.
The strange thing is, that assuming
This should work, tested with sample дb
Anyway, can you show the full traceback and ideally the full minimal reproducible code.
The strange thing is, that assuming
db
is Connection
object, db.execute()
should return Cursor
object, which has .fetchone()
method. However according to error it's Result
object.This should work, tested with sample дb
import aiosqlite import asyncio async def main(): async with aiosqlite.connect('your_db.sqlite') as db: cursor = await db.execute("SELECT * FROM meetingData ORDER BY meeting_id DESC LIMIT 1") row = await cursor.fetchone() print(row) # rows = await cursor.fetchall() # print(rows) # async for row in cursor: # print(row) asyncio.run(main())
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs