scylla-cqlsh 6.0.30__cp314-cp314-musllinux_1_2_aarch64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
cqlshlib/helptopics.py ADDED
@@ -0,0 +1,190 @@
1
+ # Licensed to the Apache Software Foundation (ASF) under one
2
+ # or more contributor license agreements. See the NOTICE file
3
+ # distributed with this work for additional information
4
+ # regarding copyright ownership. The ASF licenses this file
5
+ # to you under the Apache License, Version 2.0 (the
6
+ # "License"); you may not use this file except in compliance
7
+ # with the License. You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+
18
+ class CQL3HelpTopics:
19
+ def get_help_topics(self):
20
+ return [t[5:] for t in dir(self) if t.startswith('help_')]
21
+
22
+ def get_help_topic(self, topic):
23
+ return getattr(self, 'help_' + topic.lower())()
24
+
25
+ def help_types(self):
26
+ return 'types'
27
+
28
+ def help_timestamp(self):
29
+ return 'usingtimestamps'
30
+
31
+ def help_date(self):
32
+ return 'usingdates'
33
+
34
+ def help_time(self):
35
+ return 'usingtime'
36
+
37
+ def help_blob(self):
38
+ return 'constants'
39
+
40
+ def help_uuid(self):
41
+ return 'constants'
42
+
43
+ def help_boolean(self):
44
+ return 'constants'
45
+
46
+ def help_int(self):
47
+ return 'constants'
48
+
49
+ def help_counter(self):
50
+ return 'counters'
51
+
52
+ def help_text(self):
53
+ return 'constants'
54
+ help_ascii = help_text
55
+
56
+ def help_use(self):
57
+ return 'useStmt'
58
+
59
+ def help_insert(self):
60
+ return 'insertStmt'
61
+
62
+ def help_update(self):
63
+ return 'updateStmt'
64
+
65
+ def help_delete(self):
66
+ return 'deleteStmt'
67
+
68
+ def help_select(self):
69
+ return 'selectStmt'
70
+
71
+ def help_json(self):
72
+ return 'json'
73
+
74
+ def help_select_json(self):
75
+ return 'selectJson'
76
+
77
+ def help_insert_json(self):
78
+ return 'insertJson'
79
+
80
+ def help_batch(self):
81
+ return 'batchStmt'
82
+ help_begin = help_batch
83
+ help_apply = help_batch
84
+
85
+ def help_create_keyspace(self):
86
+ return 'createKeyspaceStmt'
87
+
88
+ def help_alter_keyspace(self):
89
+ return 'alterKeyspaceStmt'
90
+
91
+ def help_drop_keyspace(self):
92
+ return 'dropKeyspaceStmt'
93
+
94
+ def help_create_table(self):
95
+ return 'createTableStmt'
96
+ help_create_columnfamily = help_create_table
97
+
98
+ def help_alter_table(self):
99
+ return 'alterTableStmt'
100
+
101
+ def help_drop_table(self):
102
+ return 'dropTableStmt'
103
+ help_drop_columnfamily = help_drop_table
104
+
105
+ def help_create_index(self):
106
+ return 'createIndexStmt'
107
+
108
+ def help_drop_index(self):
109
+ return 'dropIndexStmt'
110
+
111
+ def help_truncate(self):
112
+ return 'truncateStmt'
113
+
114
+ def help_create_type(self):
115
+ return 'createTypeStmt'
116
+
117
+ def help_alter_type(self):
118
+ return 'alterTypeStmt'
119
+
120
+ def help_drop_type(self):
121
+ return 'dropTypeStmt'
122
+
123
+ def help_create_function(self):
124
+ return 'createFunctionStmt'
125
+
126
+ def help_drop_function(self):
127
+ return 'dropFunctionStmt'
128
+
129
+ def help_functions(self):
130
+ return 'functions'
131
+
132
+ def help_create_aggregate(self):
133
+ return 'createAggregateStmt'
134
+
135
+ def help_drop_aggregate(self):
136
+ return 'dropAggregateStmt'
137
+
138
+ def help_aggregates(self):
139
+ return 'aggregates'
140
+
141
+ def help_create_trigger(self):
142
+ return 'createTriggerStmt'
143
+
144
+ def help_drop_trigger(self):
145
+ return 'dropTriggerStmt'
146
+
147
+ def help_create_materialized_view(self):
148
+ return 'createMVStmt'
149
+
150
+ def help_alter_materialized_view(self):
151
+ return 'alterMVStmt'
152
+
153
+ def help_drop_materialized_view(self):
154
+ return 'dropMVStmt'
155
+
156
+ def help_keywords(self):
157
+ return 'appendixA'
158
+
159
+ def help_create_user(self):
160
+ return 'createUserStmt'
161
+
162
+ def help_alter_user(self):
163
+ return 'alterUserStmt'
164
+
165
+ def help_drop_user(self):
166
+ return 'dropUserStmt'
167
+
168
+ def help_list_users(self):
169
+ return 'listUsersStmt'
170
+
171
+ def help_create_role(self):
172
+ return 'createRoleStmt'
173
+
174
+ def help_drop_role(self):
175
+ return 'dropRoleStmt'
176
+
177
+ def help_list_roles(self):
178
+ return 'listRolesStmt'
179
+
180
+ def help_permissions(self):
181
+ return 'permissions'
182
+
183
+ def help_list_permissions(self):
184
+ return 'listPermissionsStmt'
185
+
186
+ def help_grant(self):
187
+ return 'grantRoleStmt'
188
+
189
+ def help_revoke(self):
190
+ return 'revokeRoleStmt'