mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-24 03:04:21 +01:00
add initial lsp support
This commit is contained in:
@@ -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 = ?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user