You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 524cdb7
Browse filesBrowse the repository at this point in the historyBrowse files
letmut db = rusqlite::Connection::open(&path).unwrap();
528
+
let tx = db.transaction().unwrap();
529
+
tx.execute("INSERT INTO sessions(id,workspace,created_at,updated_at,status,title) VALUES('old-session','/old',1,1,'idle','Older conversation')",[]).unwrap();
530
+
tx.execute(
531
+
"INSERT INTO desktop_jobs(id,payload) VALUES('old-job','not decoded by ID lookup')",
532
+
[],
533
+
)
534
+
.unwrap();
535
+
tx.execute("WITH RECURSIVE n(i) AS (VALUES(1) UNION ALL SELECT i+1 FROM n WHERE i<10050) INSERT INTO sessions(id,workspace,created_at,updated_at,status,title) SELECT printf('new-%05d',i),'/new',i+1,i+1,'idle','Newer conversation' FROM n",[]).unwrap();
536
+
tx.execute("WITH RECURSIVE n(i) AS (VALUES(1) UNION ALL SELECT i+1 FROM n WHERE i<1100) INSERT INTO desktop_jobs(id,payload) SELECT printf('new-job-%05d',i),'not decoded by ID lookup' FROM n",[]).unwrap();
historyDb.prepare("INSERT INTO sessions(id,workspace,created_at,updated_at,status,title) VALUES(?,?,1,1,'idle','Old project history')").run("old-project-session",oldProject);
382
+
historyDb.exec("WITH RECURSIVE n(i) AS (VALUES(1) UNION ALL SELECT i+1 FROM n WHERE i<10050) INSERT INTO sessions(id,workspace,created_at,updated_at,status,title) SELECT printf('noise-session-%05d',i),'/noise',9999999999,9999999999,'idle','Newer fixture' FROM n");
383
+
constputHistoryJob=historyDb.prepare("INSERT INTO desktop_jobs(id,payload) VALUES(?,?)");
0 commit comments