forked from supabase-community/postgres-language-server
-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (62 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
source: crates/parser/tests/statement_parser_test.rs
description: "CREATE CONVERSION myconv FOR 'UTF8' TO 'LATIN1' FROM myfunc;"
---
Parse {
cst: [email protected]
[email protected] "CREATE"
[email protected] "CONVERSION"
[email protected] "myconv"
[email protected] "FOR"
[email protected] "'UTF8'"
[email protected] "TO"
[email protected] "'LATIN1'"
[email protected] "FROM"
[email protected] "myfunc"
,
errors: [],
stmts: [
RawStmt {
stmt: CreateConversionStmt(
CreateConversionStmt {
conversion_name: [
Node {
node: Some(
String(
String {
sval: "myconv",
},
),
),
},
],
for_encoding_name: "UTF8",
to_encoding_name: "LATIN1",
func_name: [
Node {
node: Some(
String(
String {
sval: "myfunc",
},
),
),
},
],
def: false,
},
),
range: 0..59,
},
],
}