chore: checkpoint pi lab rust integration work
This commit is contained in:
@@ -3146,10 +3146,14 @@ impl ControlPlaneStore for TursoControlPlaneStore {
|
||||
let conn = self.lock_conn()?;
|
||||
let mut stmt = conn.prepare(
|
||||
"SELECT id, user_id, workspace_id, document_id, session_id, run_id, profile, acp_runtime, event_type, payload_json, created_at
|
||||
FROM ai_runtime_events
|
||||
WHERE user_id = ?1 AND run_id = ?2
|
||||
ORDER BY created_at ASC
|
||||
LIMIT ?3",
|
||||
FROM (
|
||||
SELECT id, user_id, workspace_id, document_id, session_id, run_id, profile, acp_runtime, event_type, payload_json, created_at
|
||||
FROM ai_runtime_events
|
||||
WHERE user_id = ?1 AND run_id = ?2
|
||||
ORDER BY created_at DESC, id DESC
|
||||
LIMIT ?3
|
||||
)
|
||||
ORDER BY created_at ASC, id ASC",
|
||||
)?;
|
||||
let rows = stmt
|
||||
.query_map(
|
||||
|
||||
Reference in New Issue
Block a user