forked from DerekStride/tree-sitter-sql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomment_stat.txt
104 lines (85 loc) · 2.64 KB
/
comment_stat.txt
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
================================================================================
Comment on table
================================================================================
COMMENT ON TABLE my_schema.my_table IS "this table is a test";
--------------------------------------------------------------------------------
(program
(statement
(comment_statement
(keyword_comment)
(keyword_on)
(keyword_table)
(object_reference
schema: (identifier)
name: (identifier))
(keyword_is)
(literal))))
================================================================================
Comment on column is null
================================================================================
COMMENT ON COLUMN my_schema.my_table.my_column IS NULL;
--------------------------------------------------------------------------------
(program
(statement
(comment_statement
(keyword_comment)
(keyword_on)
(keyword_column)
(object_reference
(object_reference
(identifier)
(identifier))
(identifier))
(keyword_is)
(keyword_null))))
================================================================================
Comment on cast
================================================================================
COMMENT ON CAST (varchar AS text) IS "convert varchar to text";
--------------------------------------------------------------------------------
(program
(statement
(comment_statement
(keyword_comment)
(keyword_on)
(cast
(keyword_cast)
(field
(identifier))
(keyword_as)
(keyword_text))
(keyword_is)
(literal))))
================================================================================
Comment on materialized view
================================================================================
COMMENT ON MATERIALIZED VIEW matview IS "this view is materialized";
--------------------------------------------------------------------------------
(program
(statement
(comment_statement
(keyword_comment)
(keyword_on)
(keyword_materialized)
(keyword_view)
(object_reference
(identifier))
(keyword_is)
(literal))))
================================================================================
Comment on trigger
================================================================================
COMMENT ON TRIGGER on_insert ON users IS "new user has been added";
--------------------------------------------------------------------------------
(program
(statement
(comment_statement
(keyword_comment)
(keyword_on)
(keyword_trigger)
(identifier)
(keyword_on)
(object_reference
name: (identifier))
(keyword_is)
(literal))))