05bit / peewee-async

Asynchronous interface for peewee ORM powered by asyncio
http://peewee-async-lib.readthedocs.io
MIT License
734 stars 100 forks source link

get row_sql data #289

Closed ipfred closed 2 months ago

ipfred commented 2 months ago

sql1 = f"SELECT * from task order by task_start_time limit 1" all_objs = await TaskVpInfo.raw(sql1).aio_execute() for obj in all_objs: print(obj)

I want to use the native SQL query results, how to get the result? OBJ = None output this code .this query should select data

kalombos commented 2 months ago

Here is an example Or use just use a connection if you don't need a model at all