add initial lsp support

This commit is contained in:
Kujtim Hoxha
2025-04-03 15:20:15 +02:00
parent afd9ad0560
commit cfdd687216
47 changed files with 13996 additions and 456 deletions

View File

@@ -14,25 +14,18 @@ INSERT INTO messages (
id,
session_id,
role,
finished,
content,
tool_calls,
tool_results,
parts,
created_at,
updated_at
) VALUES (
?, ?, ?, ?, ?, ?, ?, strftime('%s', 'now'), strftime('%s', 'now')
?, ?, ?, ?, strftime('%s', 'now'), strftime('%s', 'now')
)
RETURNING *;
-- name: UpdateMessage :exec
UPDATE messages
SET
content = ?,
thinking = ?,
tool_calls = ?,
tool_results = ?,
finished = ?,
parts = ?,
updated_at = strftime('%s', 'now')
WHERE id = ?;