File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ pub enum ClauseType {
7
7
Select ,
8
8
Where ,
9
9
From ,
10
+ Update ,
11
+ Delete ,
10
12
}
11
13
12
14
impl From < & str > for ClauseType {
@@ -15,6 +17,8 @@ impl From<&str> for ClauseType {
15
17
"select" => Self :: Select ,
16
18
"where" => Self :: Where ,
17
19
"from" => Self :: From ,
20
+ "update" => Self :: Update ,
21
+ "delete" => Self :: Delete ,
18
22
_ => panic ! ( "Unimplemented ClauseType: {}" , value) ,
19
23
}
20
24
}
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ use sqlx::Executor;
4
4
5
5
use crate :: CompletionParams ;
6
6
7
- pub static CURSOR_POS : & str = "XXX " ;
7
+ pub static CURSOR_POS : & str = "€ " ;
8
8
9
9
pub ( crate ) async fn get_test_deps (
10
10
setup : & str ,
Original file line number Diff line number Diff line change @@ -5,5 +5,6 @@ pub fn to_completion_kind(
5
5
) -> lsp_types:: CompletionItemKind {
6
6
match kind {
7
7
pg_completions:: CompletionItemKind :: Table => lsp_types:: CompletionItemKind :: CLASS ,
8
+ pg_completions:: CompletionItemKind :: Function => lsp_types:: CompletionItemKind :: FUNCTION ,
8
9
}
9
10
}
You can’t perform that action at this time.
0 commit comments