peewee-async icon indicating copy to clipboard operation
peewee-async copied to clipboard

get row_sql data

Open ipfred opened this issue 1 year ago • 1 comments

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

ipfred avatar Aug 29 '24 08:08 ipfred

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

kalombos avatar Aug 29 '24 09:08 kalombos