Closed ipfred closed 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
Here is an example Or use just use a connection if you don't need a model at all
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