keli-ui 0.3.6 → 0.3.8

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.
Files changed (31) hide show
  1. package/dist/ApprovalRecord-D0D_XZrT.js +112 -0
  2. package/dist/{ApprovalRecord-CBHg5KYG.js.map → ApprovalRecord-D0D_XZrT.js.map} +1 -1
  3. package/dist/api-DaVr-Kai.js +4474 -0
  4. package/dist/{api-VujlHEgc.js.map → api-DaVr-Kai.js.map} +1 -1
  5. package/dist/components/AppComponent/AppFormRender.vue.d.ts +17 -17
  6. package/dist/components/AppComponent/DynamicDialogHost.vue.d.ts +21 -0
  7. package/dist/components/AppComponent/index.d.ts +2 -1
  8. package/dist/components/FormComponent/FormSelectAsync/FormSelectAsync.vue.d.ts +8 -8
  9. package/dist/components/FormComponent/FormSelectRemote/FormSelectRemote.vue.d.ts +8 -8
  10. package/dist/components/FormComponent/FormTableSelectAsync/FormTableSelectAsync.vue.d.ts +8 -8
  11. package/dist/components/TableComponent/TableCardRender/TableCardRender.vue.d.ts +28 -28
  12. package/dist/components/TableComponent/TableRender/TableRender.vue.d.ts +28 -28
  13. package/dist/java-XIxqoWBD.js +2295 -0
  14. package/dist/{java-BrZSNBDG.js.map → java-XIxqoWBD.js.map} +1 -1
  15. package/dist/keli-ui.css +1 -1
  16. package/dist/keli-ui.js +63759 -68235
  17. package/dist/keli-ui.js.map +1 -1
  18. package/dist/keli-ui.umd.cjs +778 -891
  19. package/dist/keli-ui.umd.cjs.map +1 -1
  20. package/dist/mysql-D_yXY3Wl.js +172 -0
  21. package/dist/{mysql-BJR6iO89.js.map → mysql-D_yXY3Wl.js.map} +1 -1
  22. package/dist/postgresql-KYgISeDf.js +1620 -0
  23. package/dist/{postgresql-CLVUxiA0.js.map → postgresql-KYgISeDf.js.map} +1 -1
  24. package/dist/utils/index.d.ts +1 -0
  25. package/dist/utils/openHostDialog.d.ts +9 -0
  26. package/package.json +78 -78
  27. package/dist/ApprovalRecord-CBHg5KYG.js +0 -111
  28. package/dist/api-VujlHEgc.js +0 -4513
  29. package/dist/java-BrZSNBDG.js +0 -2603
  30. package/dist/mysql-BJR6iO89.js +0 -923
  31. package/dist/postgresql-CLVUxiA0.js +0 -2375
@@ -1,2375 +0,0 @@
1
- import * as _ from "monaco-editor";
2
- var l = {
3
- comments: {
4
- lineComment: "--",
5
- blockComment: ["/*", "*/"]
6
- },
7
- brackets: [
8
- ["{", "}"],
9
- ["[", "]"],
10
- ["(", ")"]
11
- ],
12
- autoClosingPairs: [
13
- {
14
- open: "{",
15
- close: "}"
16
- },
17
- {
18
- open: "[",
19
- close: "]"
20
- },
21
- {
22
- open: "(",
23
- close: ")"
24
- },
25
- {
26
- open: '"',
27
- close: '"'
28
- },
29
- {
30
- open: "'",
31
- close: "'"
32
- }
33
- ],
34
- surroundingPairs: [
35
- {
36
- open: "{",
37
- close: "}"
38
- },
39
- {
40
- open: "[",
41
- close: "]"
42
- },
43
- {
44
- open: "(",
45
- close: ")"
46
- },
47
- {
48
- open: '"',
49
- close: '"'
50
- },
51
- {
52
- open: "'",
53
- close: "'"
54
- }
55
- ]
56
- }, R = {
57
- defaultToken: "",
58
- tokenPostfix: ".sql",
59
- ignoreCase: !0,
60
- brackets: [{
61
- open: "[",
62
- close: "]",
63
- token: "delimiter.square"
64
- }, {
65
- open: "(",
66
- close: ")",
67
- token: "delimiter.parenthesis"
68
- }],
69
- keywords: [
70
- "ALL",
71
- "ANALYSE",
72
- "ANALYZE",
73
- "AND",
74
- "ANY",
75
- "ARRAY",
76
- "AS",
77
- "ASC",
78
- "ASYMMETRIC",
79
- "AUTHORIZATION",
80
- "BINARY",
81
- "BOTH",
82
- "CASE",
83
- "CAST",
84
- "CHECK",
85
- "COLLATE",
86
- "COLLATION",
87
- "COLUMN",
88
- "CONCURRENTLY",
89
- "CONSTRAINT",
90
- "CREATE",
91
- "CROSS",
92
- "CURRENT_CATALOG",
93
- "CURRENT_DATE",
94
- "CURRENT_ROLE",
95
- "CURRENT_SCHEMA",
96
- "CURRENT_TIME",
97
- "CURRENT_TIMESTAMP",
98
- "CURRENT_USER",
99
- "DEFAULT",
100
- "DEFERRABLE",
101
- "DESC",
102
- "DISTINCT",
103
- "DO",
104
- "ELSE",
105
- "END",
106
- "EXCEPT",
107
- "FALSE",
108
- "FETCH",
109
- "FOR",
110
- "FOREIGN",
111
- "FREEZE",
112
- "FROM",
113
- "FULL",
114
- "GRANT",
115
- "GROUP",
116
- "HAVING",
117
- "ILIKE",
118
- "IN",
119
- "INITIALLY",
120
- "INNER",
121
- "INTERSECT",
122
- "INTO",
123
- "IS",
124
- "ISNULL",
125
- "JOIN",
126
- "LATERAL",
127
- "LEADING",
128
- "LEFT",
129
- "LIKE",
130
- "LIMIT",
131
- "LOCALTIME",
132
- "LOCALTIMESTAMP",
133
- "NATURAL",
134
- "NOT",
135
- "NOTNULL",
136
- "NULL",
137
- "OFFSET",
138
- "ON",
139
- "ONLY",
140
- "OR",
141
- "ORDER",
142
- "OUTER",
143
- "OVERLAPS",
144
- "PLACING",
145
- "PRIMARY",
146
- "REFERENCES",
147
- "RETURNING",
148
- "RIGHT",
149
- "SELECT",
150
- "SESSION_USER",
151
- "SIMILAR",
152
- "SOME",
153
- "SYMMETRIC",
154
- "TABLE",
155
- "TABLESAMPLE",
156
- "THEN",
157
- "TO",
158
- "TRAILING",
159
- "TRUE",
160
- "UNION",
161
- "UNIQUE",
162
- "USER",
163
- "USING",
164
- "VARIADIC",
165
- "VERBOSE",
166
- "WHEN",
167
- "WHERE",
168
- "WINDOW",
169
- "WITH"
170
- ],
171
- operators: [
172
- "AND",
173
- "BETWEEN",
174
- "IN",
175
- "LIKE",
176
- "NOT",
177
- "OR",
178
- "IS",
179
- "NULL",
180
- "INTERSECT",
181
- "UNION",
182
- "INNER",
183
- "JOIN",
184
- "LEFT",
185
- "OUTER",
186
- "RIGHT"
187
- ],
188
- builtinFunctions: [
189
- "abbrev",
190
- "abs",
191
- "acldefault",
192
- "aclexplode",
193
- "acos",
194
- "acosd",
195
- "acosh",
196
- "age",
197
- "any",
198
- "area",
199
- "array_agg",
200
- "array_append",
201
- "array_cat",
202
- "array_dims",
203
- "array_fill",
204
- "array_length",
205
- "array_lower",
206
- "array_ndims",
207
- "array_position",
208
- "array_positions",
209
- "array_prepend",
210
- "array_remove",
211
- "array_replace",
212
- "array_to_json",
213
- "array_to_string",
214
- "array_to_tsvector",
215
- "array_upper",
216
- "ascii",
217
- "asin",
218
- "asind",
219
- "asinh",
220
- "atan",
221
- "atan2",
222
- "atan2d",
223
- "atand",
224
- "atanh",
225
- "avg",
226
- "bit",
227
- "bit_and",
228
- "bit_count",
229
- "bit_length",
230
- "bit_or",
231
- "bit_xor",
232
- "bool_and",
233
- "bool_or",
234
- "bound_box",
235
- "box",
236
- "brin_desummarize_range",
237
- "brin_summarize_new_values",
238
- "brin_summarize_range",
239
- "broadcast",
240
- "btrim",
241
- "cardinality",
242
- "cbrt",
243
- "ceil",
244
- "ceiling",
245
- "center",
246
- "char_length",
247
- "character_length",
248
- "chr",
249
- "circle",
250
- "clock_timestamp",
251
- "coalesce",
252
- "col_description",
253
- "concat",
254
- "concat_ws",
255
- "convert",
256
- "convert_from",
257
- "convert_to",
258
- "corr",
259
- "cos",
260
- "cosd",
261
- "cosh",
262
- "cot",
263
- "cotd",
264
- "count",
265
- "covar_pop",
266
- "covar_samp",
267
- "cume_dist",
268
- "current_catalog",
269
- "current_database",
270
- "current_date",
271
- "current_query",
272
- "current_role",
273
- "current_schema",
274
- "current_schemas",
275
- "current_setting",
276
- "current_time",
277
- "current_timestamp",
278
- "current_user",
279
- "currval",
280
- "cursor_to_xml",
281
- "cursor_to_xmlschema",
282
- "date_bin",
283
- "date_part",
284
- "date_trunc",
285
- "database_to_xml",
286
- "database_to_xml_and_xmlschema",
287
- "database_to_xmlschema",
288
- "decode",
289
- "degrees",
290
- "dense_rank",
291
- "diagonal",
292
- "diameter",
293
- "div",
294
- "encode",
295
- "enum_first",
296
- "enum_last",
297
- "enum_range",
298
- "every",
299
- "exp",
300
- "extract",
301
- "factorial",
302
- "family",
303
- "first_value",
304
- "floor",
305
- "format",
306
- "format_type",
307
- "gcd",
308
- "gen_random_uuid",
309
- "generate_series",
310
- "generate_subscripts",
311
- "get_bit",
312
- "get_byte",
313
- "get_current_ts_config",
314
- "gin_clean_pending_list",
315
- "greatest",
316
- "grouping",
317
- "has_any_column_privilege",
318
- "has_column_privilege",
319
- "has_database_privilege",
320
- "has_foreign_data_wrapper_privilege",
321
- "has_function_privilege",
322
- "has_language_privilege",
323
- "has_schema_privilege",
324
- "has_sequence_privilege",
325
- "has_server_privilege",
326
- "has_table_privilege",
327
- "has_tablespace_privilege",
328
- "has_type_privilege",
329
- "height",
330
- "host",
331
- "hostmask",
332
- "inet_client_addr",
333
- "inet_client_port",
334
- "inet_merge",
335
- "inet_same_family",
336
- "inet_server_addr",
337
- "inet_server_port",
338
- "initcap",
339
- "isclosed",
340
- "isempty",
341
- "isfinite",
342
- "isopen",
343
- "json_agg",
344
- "json_array_elements",
345
- "json_array_elements_text",
346
- "json_array_length",
347
- "json_build_array",
348
- "json_build_object",
349
- "json_each",
350
- "json_each_text",
351
- "json_extract_path",
352
- "json_extract_path_text",
353
- "json_object",
354
- "json_object_agg",
355
- "json_object_keys",
356
- "json_populate_record",
357
- "json_populate_recordset",
358
- "json_strip_nulls",
359
- "json_to_record",
360
- "json_to_recordset",
361
- "json_to_tsvector",
362
- "json_typeof",
363
- "jsonb_agg",
364
- "jsonb_array_elements",
365
- "jsonb_array_elements_text",
366
- "jsonb_array_length",
367
- "jsonb_build_array",
368
- "jsonb_build_object",
369
- "jsonb_each",
370
- "jsonb_each_text",
371
- "jsonb_extract_path",
372
- "jsonb_extract_path_text",
373
- "jsonb_insert",
374
- "jsonb_object",
375
- "jsonb_object_agg",
376
- "jsonb_object_keys",
377
- "jsonb_path_exists",
378
- "jsonb_path_match",
379
- "jsonb_path_query",
380
- "jsonb_path_query_array",
381
- "jsonb_path_exists_tz",
382
- "jsonb_path_query_first",
383
- "jsonb_path_query_array_tz",
384
- "jsonb_path_query_first_tz",
385
- "jsonb_path_query_tz",
386
- "jsonb_path_match_tz",
387
- "jsonb_populate_record",
388
- "jsonb_populate_recordset",
389
- "jsonb_pretty",
390
- "jsonb_set",
391
- "jsonb_set_lax",
392
- "jsonb_strip_nulls",
393
- "jsonb_to_record",
394
- "jsonb_to_recordset",
395
- "jsonb_to_tsvector",
396
- "jsonb_typeof",
397
- "justify_days",
398
- "justify_hours",
399
- "justify_interval",
400
- "lag",
401
- "last_value",
402
- "lastval",
403
- "lcm",
404
- "lead",
405
- "least",
406
- "left",
407
- "length",
408
- "line",
409
- "ln",
410
- "localtime",
411
- "localtimestamp",
412
- "log",
413
- "log10",
414
- "lower",
415
- "lower_inc",
416
- "lower_inf",
417
- "lpad",
418
- "lseg",
419
- "ltrim",
420
- "macaddr8_set7bit",
421
- "make_date",
422
- "make_interval",
423
- "make_time",
424
- "make_timestamp",
425
- "make_timestamptz",
426
- "makeaclitem",
427
- "masklen",
428
- "max",
429
- "md5",
430
- "min",
431
- "min_scale",
432
- "mod",
433
- "mode",
434
- "multirange",
435
- "netmask",
436
- "network",
437
- "nextval",
438
- "normalize",
439
- "now",
440
- "npoints",
441
- "nth_value",
442
- "ntile",
443
- "nullif",
444
- "num_nonnulls",
445
- "num_nulls",
446
- "numnode",
447
- "obj_description",
448
- "octet_length",
449
- "overlay",
450
- "parse_ident",
451
- "path",
452
- "pclose",
453
- "percent_rank",
454
- "percentile_cont",
455
- "percentile_disc",
456
- "pg_advisory_lock",
457
- "pg_advisory_lock_shared",
458
- "pg_advisory_unlock",
459
- "pg_advisory_unlock_all",
460
- "pg_advisory_unlock_shared",
461
- "pg_advisory_xact_lock",
462
- "pg_advisory_xact_lock_shared",
463
- "pg_backend_pid",
464
- "pg_backup_start_time",
465
- "pg_blocking_pids",
466
- "pg_cancel_backend",
467
- "pg_client_encoding",
468
- "pg_collation_actual_version",
469
- "pg_collation_is_visible",
470
- "pg_column_compression",
471
- "pg_column_size",
472
- "pg_conf_load_time",
473
- "pg_control_checkpoint",
474
- "pg_control_init",
475
- "pg_control_recovery",
476
- "pg_control_system",
477
- "pg_conversion_is_visible",
478
- "pg_copy_logical_replication_slot",
479
- "pg_copy_physical_replication_slot",
480
- "pg_create_logical_replication_slot",
481
- "pg_create_physical_replication_slot",
482
- "pg_create_restore_point",
483
- "pg_current_logfile",
484
- "pg_current_snapshot",
485
- "pg_current_wal_flush_lsn",
486
- "pg_current_wal_insert_lsn",
487
- "pg_current_wal_lsn",
488
- "pg_current_xact_id",
489
- "pg_current_xact_id_if_assigned",
490
- "pg_current_xlog_flush_location",
491
- "pg_current_xlog_insert_location",
492
- "pg_current_xlog_location",
493
- "pg_database_size",
494
- "pg_describe_object",
495
- "pg_drop_replication_slot",
496
- "pg_event_trigger_ddl_commands",
497
- "pg_event_trigger_dropped_objects",
498
- "pg_event_trigger_table_rewrite_oid",
499
- "pg_event_trigger_table_rewrite_reason",
500
- "pg_export_snapshot",
501
- "pg_filenode_relation",
502
- "pg_function_is_visible",
503
- "pg_get_catalog_foreign_keys",
504
- "pg_get_constraintdef",
505
- "pg_get_expr",
506
- "pg_get_function_arguments",
507
- "pg_get_function_identity_arguments",
508
- "pg_get_function_result",
509
- "pg_get_functiondef",
510
- "pg_get_indexdef",
511
- "pg_get_keywords",
512
- "pg_get_object_address",
513
- "pg_get_owned_sequence",
514
- "pg_get_ruledef",
515
- "pg_get_serial_sequence",
516
- "pg_get_statisticsobjdef",
517
- "pg_get_triggerdef",
518
- "pg_get_userbyid",
519
- "pg_get_viewdef",
520
- "pg_get_wal_replay_pause_state",
521
- "pg_has_role",
522
- "pg_identify_object",
523
- "pg_identify_object_as_address",
524
- "pg_import_system_collations",
525
- "pg_index_column_has_property",
526
- "pg_index_has_property",
527
- "pg_indexam_has_property",
528
- "pg_indexes_size",
529
- "pg_is_in_backup",
530
- "pg_is_in_recovery",
531
- "pg_is_other_temp_schema",
532
- "pg_is_wal_replay_paused",
533
- "pg_is_xlog_replay_paused",
534
- "pg_jit_available",
535
- "pg_last_committed_xact",
536
- "pg_last_wal_receive_lsn",
537
- "pg_last_wal_replay_lsn",
538
- "pg_last_xact_replay_timestamp",
539
- "pg_last_xlog_receive_location",
540
- "pg_last_xlog_replay_location",
541
- "pg_listening_channels",
542
- "pg_log_backend_memory_contexts",
543
- "pg_logical_emit_message",
544
- "pg_logical_slot_get_binary_changes",
545
- "pg_logical_slot_get_changes",
546
- "pg_logical_slot_peek_binary_changes",
547
- "pg_logical_slot_peek_changes",
548
- "pg_ls_archive_statusdir",
549
- "pg_ls_dir",
550
- "pg_ls_logdir",
551
- "pg_ls_tmpdir",
552
- "pg_ls_waldir",
553
- "pg_mcv_list_items",
554
- "pg_my_temp_schema",
555
- "pg_notification_queue_usage",
556
- "pg_opclass_is_visible",
557
- "pg_operator_is_visible",
558
- "pg_opfamily_is_visible",
559
- "pg_options_to_table",
560
- "pg_partition_ancestors",
561
- "pg_partition_root",
562
- "pg_partition_tree",
563
- "pg_postmaster_start_time",
564
- "pg_promote",
565
- "pg_read_binary_file",
566
- "pg_read_file",
567
- "pg_relation_filenode",
568
- "pg_relation_filepath",
569
- "pg_relation_size",
570
- "pg_reload_conf",
571
- "pg_replication_origin_advance",
572
- "pg_replication_origin_create",
573
- "pg_replication_origin_drop",
574
- "pg_replication_origin_oid",
575
- "pg_replication_origin_progress",
576
- "pg_replication_origin_session_is_setup",
577
- "pg_replication_origin_session_progress",
578
- "pg_replication_origin_session_reset",
579
- "pg_replication_origin_session_setup",
580
- "pg_replication_origin_xact_reset",
581
- "pg_replication_origin_xact_setup",
582
- "pg_replication_slot_advance",
583
- "pg_rotate_logfile",
584
- "pg_safe_snapshot_blocking_pids",
585
- "pg_size_bytes",
586
- "pg_size_pretty",
587
- "pg_sleep",
588
- "pg_sleep_for",
589
- "pg_sleep_until",
590
- "pg_snapshot_xip",
591
- "pg_snapshot_xmax",
592
- "pg_snapshot_xmin",
593
- "pg_start_backup",
594
- "pg_stat_file",
595
- "pg_statistics_obj_is_visible",
596
- "pg_stop_backup",
597
- "pg_switch_wal",
598
- "pg_switch_xlog",
599
- "pg_table_is_visible",
600
- "pg_table_size",
601
- "pg_tablespace_databases",
602
- "pg_tablespace_location",
603
- "pg_tablespace_size",
604
- "pg_terminate_backend",
605
- "pg_total_relation_size",
606
- "pg_trigger_depth",
607
- "pg_try_advisory_lock",
608
- "pg_try_advisory_lock_shared",
609
- "pg_try_advisory_xact_lock",
610
- "pg_try_advisory_xact_lock_shared",
611
- "pg_ts_config_is_visible",
612
- "pg_ts_dict_is_visible",
613
- "pg_ts_parser_is_visible",
614
- "pg_ts_template_is_visible",
615
- "pg_type_is_visible",
616
- "pg_typeof",
617
- "pg_visible_in_snapshot",
618
- "pg_wal_lsn_diff",
619
- "pg_wal_replay_pause",
620
- "pg_wal_replay_resume",
621
- "pg_walfile_name",
622
- "pg_walfile_name_offset",
623
- "pg_xact_commit_timestamp",
624
- "pg_xact_commit_timestamp_origin",
625
- "pg_xact_status",
626
- "pg_xlog_location_diff",
627
- "pg_xlog_replay_pause",
628
- "pg_xlog_replay_resume",
629
- "pg_xlogfile_name",
630
- "pg_xlogfile_name_offset",
631
- "phraseto_tsquery",
632
- "pi",
633
- "plainto_tsquery",
634
- "point",
635
- "polygon",
636
- "popen",
637
- "position",
638
- "power",
639
- "pqserverversion",
640
- "query_to_xml",
641
- "query_to_xml_and_xmlschema",
642
- "query_to_xmlschema",
643
- "querytree",
644
- "quote_ident",
645
- "quote_literal",
646
- "quote_nullable",
647
- "radians",
648
- "radius",
649
- "random",
650
- "range_agg",
651
- "range_intersect_agg",
652
- "range_merge",
653
- "rank",
654
- "regexp_count",
655
- "regexp_instr",
656
- "regexp_like",
657
- "regexp_match",
658
- "regexp_matches",
659
- "regexp_replace",
660
- "regexp_split_to_array",
661
- "regexp_split_to_table",
662
- "regexp_substr",
663
- "regr_avgx",
664
- "regr_avgy",
665
- "regr_count",
666
- "regr_intercept",
667
- "regr_r2",
668
- "regr_slope",
669
- "regr_sxx",
670
- "regr_sxy",
671
- "regr_syy",
672
- "repeat",
673
- "replace",
674
- "reverse",
675
- "right",
676
- "round",
677
- "row_number",
678
- "row_security_active",
679
- "row_to_json",
680
- "rpad",
681
- "rtrim",
682
- "scale",
683
- "schema_to_xml",
684
- "schema_to_xml_and_xmlschema",
685
- "schema_to_xmlschema",
686
- "session_user",
687
- "set_bit",
688
- "set_byte",
689
- "set_config",
690
- "set_masklen",
691
- "setseed",
692
- "setval",
693
- "setweight",
694
- "sha224",
695
- "sha256",
696
- "sha384",
697
- "sha512",
698
- "shobj_description",
699
- "sign",
700
- "sin",
701
- "sind",
702
- "sinh",
703
- "slope",
704
- "split_part",
705
- "sprintf",
706
- "sqrt",
707
- "starts_with",
708
- "statement_timestamp",
709
- "stddev",
710
- "stddev_pop",
711
- "stddev_samp",
712
- "string_agg",
713
- "string_to_array",
714
- "string_to_table",
715
- "strip",
716
- "strpos",
717
- "substr",
718
- "substring",
719
- "sum",
720
- "suppress_redundant_updates_trigger",
721
- "table_to_xml",
722
- "table_to_xml_and_xmlschema",
723
- "table_to_xmlschema",
724
- "tan",
725
- "tand",
726
- "tanh",
727
- "text",
728
- "timeofday",
729
- "timezone",
730
- "to_ascii",
731
- "to_char",
732
- "to_date",
733
- "to_hex",
734
- "to_json",
735
- "to_number",
736
- "to_regclass",
737
- "to_regcollation",
738
- "to_regnamespace",
739
- "to_regoper",
740
- "to_regoperator",
741
- "to_regproc",
742
- "to_regprocedure",
743
- "to_regrole",
744
- "to_regtype",
745
- "to_timestamp",
746
- "to_tsquery",
747
- "to_tsvector",
748
- "transaction_timestamp",
749
- "translate",
750
- "trim",
751
- "trim_array",
752
- "trim_scale",
753
- "trunc",
754
- "ts_debug",
755
- "ts_delete",
756
- "ts_filter",
757
- "ts_headline",
758
- "ts_lexize",
759
- "ts_parse",
760
- "ts_rank",
761
- "ts_rank_cd",
762
- "ts_rewrite",
763
- "ts_stat",
764
- "ts_token_type",
765
- "tsquery_phrase",
766
- "tsvector_to_array",
767
- "tsvector_update_trigger",
768
- "tsvector_update_trigger_column",
769
- "txid_current",
770
- "txid_current_if_assigned",
771
- "txid_current_snapshot",
772
- "txid_snapshot_xip",
773
- "txid_snapshot_xmax",
774
- "txid_snapshot_xmin",
775
- "txid_status",
776
- "txid_visible_in_snapshot",
777
- "unistr",
778
- "unnest",
779
- "upper",
780
- "upper_inc",
781
- "upper_inf",
782
- "user",
783
- "var_pop",
784
- "var_samp",
785
- "variance",
786
- "version",
787
- "websearch_to_tsquery",
788
- "width",
789
- "width_bucket",
790
- "xml_is_well_formed",
791
- "xml_is_well_formed_content",
792
- "xml_is_well_formed_document",
793
- "xmlagg",
794
- "xmlcomment",
795
- "xmlconcat",
796
- "xmlelement",
797
- "xmlexists",
798
- "xmlforest",
799
- "xmlparse",
800
- "xmlpi",
801
- "xmlroot",
802
- "xmlserialize",
803
- "xpath",
804
- "xpath_exists"
805
- ],
806
- builtinVariables: [],
807
- pseudoColumns: [],
808
- tokenizer: {
809
- root: [
810
- { include: "@comments" },
811
- { include: "@whitespace" },
812
- { include: "@pseudoColumns" },
813
- { include: "@numbers" },
814
- { include: "@strings" },
815
- { include: "@complexIdentifiers" },
816
- { include: "@scopes" },
817
- [/[;,.]/, "delimiter"],
818
- [/[()]/, "@brackets"],
819
- [/[\w@#$]+/, { cases: {
820
- "@operators": "operator",
821
- "@builtinVariables": "predefined",
822
- "@builtinFunctions": "predefined",
823
- "@keywords": "keyword",
824
- "@default": "identifier"
825
- } }],
826
- [/[<>=!%&+\-*/|~^]/, "operator"]
827
- ],
828
- whitespace: [[/\s+/, "white"]],
829
- comments: [[/-{2}.*/, "comment"], [/\/\*/, {
830
- token: "comment.quote",
831
- next: "@comment"
832
- }]],
833
- comment: [
834
- [/[^*/]+/, "comment"],
835
- [/\*\//, {
836
- token: "comment.quote",
837
- next: "@pop"
838
- }],
839
- [/./, "comment"]
840
- ],
841
- pseudoColumns: [[/\$[A-Z_][\w@#$]*/i, { cases: {
842
- "@pseudoColumns": "predefined",
843
- "@default": "identifier"
844
- } }]],
845
- numbers: [
846
- [/0x[0-9a-f]*/i, "number"],
847
- [/\$[+-]*\d*(\.\d*)?/, "number"],
848
- [/((\d+(\.\d*)?)|(\.\d+))(e[\-+]?\d+)?/i, "number"]
849
- ],
850
- strings: [[/'/, {
851
- token: "string",
852
- next: "@string"
853
- }]],
854
- string: [
855
- [/[^']+/, "string"],
856
- [/''/, "string"],
857
- [/'/, {
858
- token: "string",
859
- next: "@pop"
860
- }]
861
- ],
862
- complexIdentifiers: [[/"/, {
863
- token: "identifier.quote",
864
- next: "@quotedIdentifier"
865
- }]],
866
- quotedIdentifier: [
867
- [/[^"]+/, "identifier"],
868
- [/""/, "identifier"],
869
- [/"/, {
870
- token: "identifier.quote",
871
- next: "@pop"
872
- }]
873
- ],
874
- scopes: []
875
- }
876
- }, a = !1, T = !1;
877
- function N() {
878
- T || (T = !0, _.editor.defineTheme("pgsql-dark", {
879
- base: "vs-dark",
880
- inherit: !0,
881
- rules: [
882
- {
883
- token: "keyword",
884
- foreground: "569CD6",
885
- fontStyle: "bold"
886
- },
887
- {
888
- token: "operator",
889
- foreground: "D4D4D4"
890
- },
891
- {
892
- token: "predefined",
893
- foreground: "DCDCAA"
894
- },
895
- {
896
- token: "string",
897
- foreground: "CE9178"
898
- },
899
- {
900
- token: "number",
901
- foreground: "B5CEA8"
902
- },
903
- {
904
- token: "comment",
905
- foreground: "6A9955"
906
- },
907
- {
908
- token: "identifier",
909
- foreground: "9CDCFE"
910
- },
911
- {
912
- token: "identifier.quote",
913
- foreground: "9CDCFE"
914
- },
915
- {
916
- token: "delimiter",
917
- foreground: "D4D4D4"
918
- },
919
- {
920
- token: "type",
921
- foreground: "4EC9B0"
922
- }
923
- ],
924
- colors: {}
925
- }), _.editor.defineTheme("pgsql-light", {
926
- base: "vs",
927
- inherit: !0,
928
- rules: [
929
- {
930
- token: "keyword",
931
- foreground: "0000FF",
932
- fontStyle: "bold"
933
- },
934
- {
935
- token: "operator",
936
- foreground: "000000"
937
- },
938
- {
939
- token: "predefined",
940
- foreground: "795E26"
941
- },
942
- {
943
- token: "string",
944
- foreground: "A31515"
945
- },
946
- {
947
- token: "number",
948
- foreground: "098658"
949
- },
950
- {
951
- token: "comment",
952
- foreground: "008000"
953
- },
954
- {
955
- token: "identifier",
956
- foreground: "001080"
957
- },
958
- {
959
- token: "identifier.quote",
960
- foreground: "001080"
961
- },
962
- {
963
- token: "delimiter",
964
- foreground: "000000"
965
- },
966
- {
967
- token: "type",
968
- foreground: "267F99"
969
- }
970
- ],
971
- colors: {}
972
- }));
973
- }
974
- function g() {
975
- a || (a = !0, _.languages.registerCompletionItemProvider("pgsql", {
976
- triggerCharacters: [
977
- " ",
978
- ".",
979
- "("
980
- ],
981
- provideCompletionItems: (p, r) => {
982
- const o = p.getWordUntilPosition(r), i = {
983
- startLineNumber: r.lineNumber,
984
- endLineNumber: r.lineNumber,
985
- startColumn: o.startColumn,
986
- endColumn: o.endColumn
987
- }, t = o.word.toLowerCase(), s = [];
988
- return t.length >= 1 && [
989
- [
990
- "SELECT",
991
- "查询",
992
- "SELECT $1 FROM $2"
993
- ],
994
- [
995
- "SELECT *",
996
- "查询所有列",
997
- "SELECT * FROM $1"
998
- ],
999
- [
1000
- "SELECT DISTINCT",
1001
- "去重查询",
1002
- "SELECT DISTINCT $1 FROM $2"
1003
- ],
1004
- [
1005
- "INSERT INTO",
1006
- "插入数据",
1007
- "INSERT INTO $1 ($2) VALUES ($3)"
1008
- ],
1009
- [
1010
- "UPDATE",
1011
- "更新数据",
1012
- "UPDATE $1 SET $2 = $3 WHERE $4"
1013
- ],
1014
- [
1015
- "DELETE FROM",
1016
- "删除数据",
1017
- "DELETE FROM $1 WHERE $2"
1018
- ],
1019
- [
1020
- "TRUNCATE TABLE",
1021
- "清空表",
1022
- "TRUNCATE TABLE $1"
1023
- ],
1024
- [
1025
- "FROM",
1026
- "来源表",
1027
- "FROM $1"
1028
- ],
1029
- [
1030
- "WHERE",
1031
- "条件",
1032
- "WHERE $1"
1033
- ],
1034
- [
1035
- "AND",
1036
- "与",
1037
- "AND $1"
1038
- ],
1039
- [
1040
- "OR",
1041
- "或",
1042
- "OR $1"
1043
- ],
1044
- [
1045
- "NOT",
1046
- "非",
1047
- "NOT $1"
1048
- ],
1049
- [
1050
- "IN",
1051
- "在...中",
1052
- "IN ($1)"
1053
- ],
1054
- [
1055
- "NOT IN",
1056
- "不在...中",
1057
- "NOT IN ($1)"
1058
- ],
1059
- [
1060
- "BETWEEN",
1061
- "在...之间",
1062
- "BETWEEN $1 AND $2"
1063
- ],
1064
- [
1065
- "LIKE",
1066
- "模糊匹配",
1067
- "LIKE '%$1%'"
1068
- ],
1069
- [
1070
- "ILIKE",
1071
- "不区分大小写匹配",
1072
- "ILIKE '%$1%'"
1073
- ],
1074
- [
1075
- "IS NULL",
1076
- "为空",
1077
- "IS NULL"
1078
- ],
1079
- [
1080
- "IS NOT NULL",
1081
- "不为空",
1082
- "IS NOT NULL"
1083
- ],
1084
- [
1085
- "EXISTS",
1086
- "存在",
1087
- "EXISTS ($1)"
1088
- ],
1089
- [
1090
- "NOT EXISTS",
1091
- "不存在",
1092
- "NOT EXISTS ($1)"
1093
- ],
1094
- [
1095
- "ORDER BY",
1096
- "排序",
1097
- "ORDER BY $1"
1098
- ],
1099
- [
1100
- "ORDER BY DESC",
1101
- "降序排序",
1102
- "ORDER BY $1 DESC"
1103
- ],
1104
- [
1105
- "GROUP BY",
1106
- "分组",
1107
- "GROUP BY $1"
1108
- ],
1109
- [
1110
- "HAVING",
1111
- "分组条件",
1112
- "HAVING $1"
1113
- ],
1114
- [
1115
- "LIMIT",
1116
- "限制行数",
1117
- "LIMIT $1"
1118
- ],
1119
- [
1120
- "OFFSET",
1121
- "偏移",
1122
- "OFFSET $1"
1123
- ],
1124
- [
1125
- "JOIN",
1126
- "连接",
1127
- "JOIN $1 ON $2"
1128
- ],
1129
- [
1130
- "INNER JOIN",
1131
- "内连接",
1132
- "INNER JOIN $1 ON $2"
1133
- ],
1134
- [
1135
- "LEFT JOIN",
1136
- "左连接",
1137
- "LEFT JOIN $1 ON $2"
1138
- ],
1139
- [
1140
- "LEFT OUTER JOIN",
1141
- "左外连接",
1142
- "LEFT OUTER JOIN $1 ON $2"
1143
- ],
1144
- [
1145
- "RIGHT JOIN",
1146
- "右连接",
1147
- "RIGHT JOIN $1 ON $2"
1148
- ],
1149
- [
1150
- "RIGHT OUTER JOIN",
1151
- "右外连接",
1152
- "RIGHT OUTER JOIN $1 ON $2"
1153
- ],
1154
- [
1155
- "FULL JOIN",
1156
- "全连接",
1157
- "FULL JOIN $1 ON $2"
1158
- ],
1159
- [
1160
- "FULL OUTER JOIN",
1161
- "全外连接",
1162
- "FULL OUTER JOIN $1 ON $2"
1163
- ],
1164
- [
1165
- "CROSS JOIN",
1166
- "交叉连接",
1167
- "CROSS JOIN $1"
1168
- ],
1169
- [
1170
- "NATURAL JOIN",
1171
- "自然连接",
1172
- "NATURAL JOIN $1"
1173
- ],
1174
- [
1175
- "ON",
1176
- "连接条件",
1177
- "ON $1 = $2"
1178
- ],
1179
- [
1180
- "USING",
1181
- "使用列连接",
1182
- "USING ($1)"
1183
- ],
1184
- [
1185
- "UNION",
1186
- "并集",
1187
- `UNION
1188
- SELECT $1`
1189
- ],
1190
- [
1191
- "UNION ALL",
1192
- "并集(含重复)",
1193
- `UNION ALL
1194
- SELECT $1`
1195
- ],
1196
- [
1197
- "INTERSECT",
1198
- "交集",
1199
- `INTERSECT
1200
- SELECT $1`
1201
- ],
1202
- [
1203
- "EXCEPT",
1204
- "差集",
1205
- `EXCEPT
1206
- SELECT $1`
1207
- ],
1208
- [
1209
- "AS",
1210
- "别名",
1211
- "AS $1"
1212
- ],
1213
- [
1214
- "WITH",
1215
- "CTE公共表表达式",
1216
- `WITH $1 AS (
1217
- $2
1218
- )
1219
- SELECT * FROM $1`
1220
- ],
1221
- [
1222
- "RECURSIVE",
1223
- "递归CTE",
1224
- `WITH RECURSIVE $1 AS (
1225
- $2
1226
- UNION ALL
1227
- $3
1228
- )
1229
- SELECT * FROM $1`
1230
- ],
1231
- [
1232
- "CREATE TABLE",
1233
- "创建表",
1234
- `CREATE TABLE $1 (
1235
- $2
1236
- )`
1237
- ],
1238
- [
1239
- "CREATE TABLE IF NOT EXISTS",
1240
- "创建表(如不存在)",
1241
- `CREATE TABLE IF NOT EXISTS $1 (
1242
- $2
1243
- )`
1244
- ],
1245
- [
1246
- "CREATE INDEX",
1247
- "创建索引",
1248
- "CREATE INDEX $1 ON $2 ($3)"
1249
- ],
1250
- [
1251
- "CREATE UNIQUE INDEX",
1252
- "创建唯一索引",
1253
- "CREATE UNIQUE INDEX $1 ON $2 ($3)"
1254
- ],
1255
- [
1256
- "CREATE VIEW",
1257
- "创建视图",
1258
- `CREATE VIEW $1 AS
1259
- SELECT $2`
1260
- ],
1261
- [
1262
- "CREATE OR REPLACE VIEW",
1263
- "创建或替换视图",
1264
- `CREATE OR REPLACE VIEW $1 AS
1265
- SELECT $2`
1266
- ],
1267
- [
1268
- "CREATE FUNCTION",
1269
- "创建函数",
1270
- `CREATE OR REPLACE FUNCTION $1($2)
1271
- RETURNS $3 AS $$
1272
- BEGIN
1273
- $4
1274
- END;
1275
- $$ LANGUAGE plpgsql`
1276
- ],
1277
- [
1278
- "CREATE PROCEDURE",
1279
- "创建存储过程",
1280
- `CREATE OR REPLACE PROCEDURE $1($2)
1281
- LANGUAGE plpgsql AS $$
1282
- BEGIN
1283
- $3
1284
- END;
1285
- $$`
1286
- ],
1287
- [
1288
- "CREATE TRIGGER",
1289
- "创建触发器",
1290
- `CREATE TRIGGER $1
1291
- $2 ON $3
1292
- FOR EACH ROW
1293
- EXECUTE FUNCTION $4()`
1294
- ],
1295
- [
1296
- "CREATE SCHEMA",
1297
- "创建模式",
1298
- "CREATE SCHEMA $1"
1299
- ],
1300
- [
1301
- "CREATE SEQUENCE",
1302
- "创建序列",
1303
- "CREATE SEQUENCE $1"
1304
- ],
1305
- [
1306
- "CREATE TYPE",
1307
- "创建类型",
1308
- "CREATE TYPE $1 AS ($2)"
1309
- ],
1310
- [
1311
- "CREATE EXTENSION",
1312
- "创建扩展",
1313
- "CREATE EXTENSION IF NOT EXISTS $1"
1314
- ],
1315
- [
1316
- "ALTER TABLE",
1317
- "修改表",
1318
- "ALTER TABLE $1"
1319
- ],
1320
- [
1321
- "ADD COLUMN",
1322
- "添加列",
1323
- "ADD COLUMN $1 $2"
1324
- ],
1325
- [
1326
- "DROP COLUMN",
1327
- "删除列",
1328
- "DROP COLUMN $1"
1329
- ],
1330
- [
1331
- "ALTER COLUMN",
1332
- "修改列",
1333
- "ALTER COLUMN $1"
1334
- ],
1335
- [
1336
- "RENAME TO",
1337
- "重命名",
1338
- "RENAME TO $1"
1339
- ],
1340
- [
1341
- "RENAME COLUMN",
1342
- "重命名列",
1343
- "RENAME COLUMN $1 TO $2"
1344
- ],
1345
- [
1346
- "SET DEFAULT",
1347
- "设置默认值",
1348
- "SET DEFAULT $1"
1349
- ],
1350
- [
1351
- "DROP DEFAULT",
1352
- "删除默认值",
1353
- "DROP DEFAULT"
1354
- ],
1355
- [
1356
- "SET NOT NULL",
1357
- "设置非空",
1358
- "SET NOT NULL"
1359
- ],
1360
- [
1361
- "DROP NOT NULL",
1362
- "删除非空",
1363
- "DROP NOT NULL"
1364
- ],
1365
- [
1366
- "ADD CONSTRAINT",
1367
- "添加约束",
1368
- "ADD CONSTRAINT $1 $2"
1369
- ],
1370
- [
1371
- "DROP CONSTRAINT",
1372
- "删除约束",
1373
- "DROP CONSTRAINT $1"
1374
- ],
1375
- [
1376
- "DROP TABLE",
1377
- "删除表",
1378
- "DROP TABLE $1"
1379
- ],
1380
- [
1381
- "DROP TABLE IF EXISTS",
1382
- "删除表(如存在)",
1383
- "DROP TABLE IF EXISTS $1"
1384
- ],
1385
- [
1386
- "DROP INDEX",
1387
- "删除索引",
1388
- "DROP INDEX $1"
1389
- ],
1390
- [
1391
- "DROP VIEW",
1392
- "删除视图",
1393
- "DROP VIEW $1"
1394
- ],
1395
- [
1396
- "DROP FUNCTION",
1397
- "删除函数",
1398
- "DROP FUNCTION $1"
1399
- ],
1400
- [
1401
- "DROP SCHEMA",
1402
- "删除模式",
1403
- "DROP SCHEMA $1"
1404
- ],
1405
- [
1406
- "DROP SEQUENCE",
1407
- "删除序列",
1408
- "DROP SEQUENCE $1"
1409
- ],
1410
- [
1411
- "CASCADE",
1412
- "级联删除",
1413
- "CASCADE"
1414
- ],
1415
- [
1416
- "RESTRICT",
1417
- "限制删除",
1418
- "RESTRICT"
1419
- ],
1420
- [
1421
- "PRIMARY KEY",
1422
- "主键",
1423
- "PRIMARY KEY"
1424
- ],
1425
- [
1426
- "FOREIGN KEY",
1427
- "外键",
1428
- "FOREIGN KEY ($1) REFERENCES $2 ($3)"
1429
- ],
1430
- [
1431
- "REFERENCES",
1432
- "引用",
1433
- "REFERENCES $1 ($2)"
1434
- ],
1435
- [
1436
- "UNIQUE",
1437
- "唯一",
1438
- "UNIQUE"
1439
- ],
1440
- [
1441
- "CHECK",
1442
- "检查约束",
1443
- "CHECK ($1)"
1444
- ],
1445
- [
1446
- "DEFAULT",
1447
- "默认值",
1448
- "DEFAULT $1"
1449
- ],
1450
- [
1451
- "NOT NULL",
1452
- "非空",
1453
- "NOT NULL"
1454
- ],
1455
- [
1456
- "NULL",
1457
- "可空",
1458
- "NULL"
1459
- ],
1460
- [
1461
- "INTEGER",
1462
- "整数",
1463
- "INTEGER"
1464
- ],
1465
- [
1466
- "INT",
1467
- "整数",
1468
- "INT"
1469
- ],
1470
- [
1471
- "BIGINT",
1472
- "大整数",
1473
- "BIGINT"
1474
- ],
1475
- [
1476
- "SMALLINT",
1477
- "小整数",
1478
- "SMALLINT"
1479
- ],
1480
- [
1481
- "SERIAL",
1482
- "自增整数",
1483
- "SERIAL"
1484
- ],
1485
- [
1486
- "BIGSERIAL",
1487
- "大自增整数",
1488
- "BIGSERIAL"
1489
- ],
1490
- [
1491
- "NUMERIC",
1492
- "精确数值",
1493
- "NUMERIC($1, $2)"
1494
- ],
1495
- [
1496
- "DECIMAL",
1497
- "精确数值",
1498
- "DECIMAL($1, $2)"
1499
- ],
1500
- [
1501
- "REAL",
1502
- "单精度浮点",
1503
- "REAL"
1504
- ],
1505
- [
1506
- "DOUBLE PRECISION",
1507
- "双精度浮点",
1508
- "DOUBLE PRECISION"
1509
- ],
1510
- [
1511
- "FLOAT",
1512
- "浮点数",
1513
- "FLOAT"
1514
- ],
1515
- [
1516
- "VARCHAR",
1517
- "可变字符串",
1518
- "VARCHAR($1)"
1519
- ],
1520
- [
1521
- "CHAR",
1522
- "定长字符串",
1523
- "CHAR($1)"
1524
- ],
1525
- [
1526
- "TEXT",
1527
- "文本",
1528
- "TEXT"
1529
- ],
1530
- [
1531
- "BOOLEAN",
1532
- "布尔",
1533
- "BOOLEAN"
1534
- ],
1535
- [
1536
- "BOOL",
1537
- "布尔",
1538
- "BOOL"
1539
- ],
1540
- [
1541
- "DATE",
1542
- "日期",
1543
- "DATE"
1544
- ],
1545
- [
1546
- "TIME",
1547
- "时间",
1548
- "TIME"
1549
- ],
1550
- [
1551
- "TIMESTAMP",
1552
- "时间戳",
1553
- "TIMESTAMP"
1554
- ],
1555
- [
1556
- "TIMESTAMPTZ",
1557
- "带时区时间戳",
1558
- "TIMESTAMPTZ"
1559
- ],
1560
- [
1561
- "INTERVAL",
1562
- "时间间隔",
1563
- "INTERVAL"
1564
- ],
1565
- [
1566
- "UUID",
1567
- "UUID",
1568
- "UUID"
1569
- ],
1570
- [
1571
- "JSON",
1572
- "JSON",
1573
- "JSON"
1574
- ],
1575
- [
1576
- "JSONB",
1577
- "JSONB",
1578
- "JSONB"
1579
- ],
1580
- [
1581
- "ARRAY",
1582
- "数组",
1583
- "ARRAY"
1584
- ],
1585
- [
1586
- "BYTEA",
1587
- "二进制",
1588
- "BYTEA"
1589
- ],
1590
- [
1591
- "INET",
1592
- "IP地址",
1593
- "INET"
1594
- ],
1595
- [
1596
- "CIDR",
1597
- "CIDR地址",
1598
- "CIDR"
1599
- ],
1600
- [
1601
- "MACADDR",
1602
- "MAC地址",
1603
- "MACADDR"
1604
- ],
1605
- [
1606
- "BEGIN",
1607
- "开始事务",
1608
- "BEGIN"
1609
- ],
1610
- [
1611
- "COMMIT",
1612
- "提交事务",
1613
- "COMMIT"
1614
- ],
1615
- [
1616
- "ROLLBACK",
1617
- "回滚事务",
1618
- "ROLLBACK"
1619
- ],
1620
- [
1621
- "SAVEPOINT",
1622
- "保存点",
1623
- "SAVEPOINT $1"
1624
- ],
1625
- [
1626
- "ROLLBACK TO",
1627
- "回滚到保存点",
1628
- "ROLLBACK TO $1"
1629
- ],
1630
- [
1631
- "CASE",
1632
- "CASE表达式",
1633
- `CASE
1634
- WHEN $1 THEN $2
1635
- ELSE $3
1636
- END`
1637
- ],
1638
- [
1639
- "WHEN",
1640
- "WHEN子句",
1641
- "WHEN $1 THEN $2"
1642
- ],
1643
- [
1644
- "THEN",
1645
- "THEN子句",
1646
- "THEN $1"
1647
- ],
1648
- [
1649
- "ELSE",
1650
- "ELSE子句",
1651
- "ELSE $1"
1652
- ],
1653
- [
1654
- "END",
1655
- "结束",
1656
- "END"
1657
- ],
1658
- [
1659
- "COALESCE",
1660
- "空值替换",
1661
- "COALESCE($1, $2)"
1662
- ],
1663
- [
1664
- "NULLIF",
1665
- "空值比较",
1666
- "NULLIF($1, $2)"
1667
- ],
1668
- [
1669
- "CAST",
1670
- "类型转换",
1671
- "CAST($1 AS $2)"
1672
- ],
1673
- [
1674
- "RETURNING",
1675
- "返回",
1676
- "RETURNING $1"
1677
- ],
1678
- [
1679
- "ON CONFLICT",
1680
- "冲突处理",
1681
- "ON CONFLICT ($1) DO $2"
1682
- ],
1683
- [
1684
- "DO NOTHING",
1685
- "不做任何操作",
1686
- "DO NOTHING"
1687
- ],
1688
- [
1689
- "DO UPDATE SET",
1690
- "更新",
1691
- "DO UPDATE SET $1 = $2"
1692
- ],
1693
- [
1694
- "EXPLAIN",
1695
- "执行计划",
1696
- "EXPLAIN $1"
1697
- ],
1698
- [
1699
- "EXPLAIN ANALYZE",
1700
- "执行计划(实际执行)",
1701
- "EXPLAIN ANALYZE $1"
1702
- ],
1703
- [
1704
- "VACUUM",
1705
- "清理",
1706
- "VACUUM $1"
1707
- ],
1708
- [
1709
- "ANALYZE",
1710
- "分析",
1711
- "ANALYZE $1"
1712
- ],
1713
- [
1714
- "GRANT",
1715
- "授权",
1716
- "GRANT $1 ON $2 TO $3"
1717
- ],
1718
- [
1719
- "REVOKE",
1720
- "撤销权限",
1721
- "REVOKE $1 ON $2 FROM $3"
1722
- ],
1723
- [
1724
- "COMMENT ON",
1725
- "添加注释",
1726
- "COMMENT ON $1 $2 IS '$3'"
1727
- ]
1728
- ].filter(([e]) => e.toLowerCase().startsWith(t)).forEach(([e, n, E]) => {
1729
- s.push({
1730
- label: e,
1731
- detail: n,
1732
- insertText: E,
1733
- range: i,
1734
- kind: _.languages.CompletionItemKind.Keyword,
1735
- insertTextRules: _.languages.CompletionItemInsertTextRule.InsertAsSnippet,
1736
- sortText: "0" + e
1737
- });
1738
- }), t.length >= 1 && [
1739
- [
1740
- "COUNT",
1741
- "计数",
1742
- "COUNT($1)"
1743
- ],
1744
- [
1745
- "COUNT(*)",
1746
- "计数所有",
1747
- "COUNT(*)"
1748
- ],
1749
- [
1750
- "COUNT(DISTINCT)",
1751
- "去重计数",
1752
- "COUNT(DISTINCT $1)"
1753
- ],
1754
- [
1755
- "SUM",
1756
- "求和",
1757
- "SUM($1)"
1758
- ],
1759
- [
1760
- "AVG",
1761
- "平均值",
1762
- "AVG($1)"
1763
- ],
1764
- [
1765
- "MAX",
1766
- "最大值",
1767
- "MAX($1)"
1768
- ],
1769
- [
1770
- "MIN",
1771
- "最小值",
1772
- "MIN($1)"
1773
- ],
1774
- [
1775
- "ARRAY_AGG",
1776
- "数组聚合",
1777
- "ARRAY_AGG($1)"
1778
- ],
1779
- [
1780
- "STRING_AGG",
1781
- "字符串聚合",
1782
- "STRING_AGG($1, '$2')"
1783
- ],
1784
- [
1785
- "JSON_AGG",
1786
- "JSON聚合",
1787
- "JSON_AGG($1)"
1788
- ],
1789
- [
1790
- "JSONB_AGG",
1791
- "JSONB聚合",
1792
- "JSONB_AGG($1)"
1793
- ],
1794
- [
1795
- "CONCAT",
1796
- "连接字符串",
1797
- "CONCAT($1, $2)"
1798
- ],
1799
- [
1800
- "CONCAT_WS",
1801
- "带分隔符连接",
1802
- "CONCAT_WS('$1', $2, $3)"
1803
- ],
1804
- [
1805
- "LENGTH",
1806
- "字符串长度",
1807
- "LENGTH($1)"
1808
- ],
1809
- [
1810
- "CHAR_LENGTH",
1811
- "字符长度",
1812
- "CHAR_LENGTH($1)"
1813
- ],
1814
- [
1815
- "UPPER",
1816
- "转大写",
1817
- "UPPER($1)"
1818
- ],
1819
- [
1820
- "LOWER",
1821
- "转小写",
1822
- "LOWER($1)"
1823
- ],
1824
- [
1825
- "INITCAP",
1826
- "首字母大写",
1827
- "INITCAP($1)"
1828
- ],
1829
- [
1830
- "TRIM",
1831
- "去除空格",
1832
- "TRIM($1)"
1833
- ],
1834
- [
1835
- "LTRIM",
1836
- "去除左空格",
1837
- "LTRIM($1)"
1838
- ],
1839
- [
1840
- "RTRIM",
1841
- "去除右空格",
1842
- "RTRIM($1)"
1843
- ],
1844
- [
1845
- "SUBSTRING",
1846
- "截取子串",
1847
- "SUBSTRING($1 FROM $2 FOR $3)"
1848
- ],
1849
- [
1850
- "SUBSTR",
1851
- "截取子串",
1852
- "SUBSTR($1, $2, $3)"
1853
- ],
1854
- [
1855
- "LEFT",
1856
- "左截取",
1857
- "LEFT($1, $2)"
1858
- ],
1859
- [
1860
- "RIGHT",
1861
- "右截取",
1862
- "RIGHT($1, $2)"
1863
- ],
1864
- [
1865
- "REPLACE",
1866
- "替换",
1867
- "REPLACE($1, '$2', '$3')"
1868
- ],
1869
- [
1870
- "REGEXP_REPLACE",
1871
- "正则替换",
1872
- "REGEXP_REPLACE($1, '$2', '$3')"
1873
- ],
1874
- [
1875
- "SPLIT_PART",
1876
- "分割取部分",
1877
- "SPLIT_PART($1, '$2', $3)"
1878
- ],
1879
- [
1880
- "POSITION",
1881
- "查找位置",
1882
- "POSITION('$1' IN $2)"
1883
- ],
1884
- [
1885
- "STRPOS",
1886
- "查找位置",
1887
- "STRPOS($1, '$2')"
1888
- ],
1889
- [
1890
- "LPAD",
1891
- "左填充",
1892
- "LPAD($1, $2, '$3')"
1893
- ],
1894
- [
1895
- "RPAD",
1896
- "右填充",
1897
- "RPAD($1, $2, '$3')"
1898
- ],
1899
- [
1900
- "REPEAT",
1901
- "重复",
1902
- "REPEAT($1, $2)"
1903
- ],
1904
- [
1905
- "REVERSE",
1906
- "反转",
1907
- "REVERSE($1)"
1908
- ],
1909
- [
1910
- "FORMAT",
1911
- "格式化",
1912
- "FORMAT('$1', $2)"
1913
- ],
1914
- [
1915
- "ABS",
1916
- "绝对值",
1917
- "ABS($1)"
1918
- ],
1919
- [
1920
- "CEIL",
1921
- "向上取整",
1922
- "CEIL($1)"
1923
- ],
1924
- [
1925
- "CEILING",
1926
- "向上取整",
1927
- "CEILING($1)"
1928
- ],
1929
- [
1930
- "FLOOR",
1931
- "向下取整",
1932
- "FLOOR($1)"
1933
- ],
1934
- [
1935
- "ROUND",
1936
- "四舍五入",
1937
- "ROUND($1, $2)"
1938
- ],
1939
- [
1940
- "TRUNC",
1941
- "截断",
1942
- "TRUNC($1, $2)"
1943
- ],
1944
- [
1945
- "MOD",
1946
- "取模",
1947
- "MOD($1, $2)"
1948
- ],
1949
- [
1950
- "POWER",
1951
- "幂",
1952
- "POWER($1, $2)"
1953
- ],
1954
- [
1955
- "SQRT",
1956
- "平方根",
1957
- "SQRT($1)"
1958
- ],
1959
- [
1960
- "RANDOM",
1961
- "随机数",
1962
- "RANDOM()"
1963
- ],
1964
- [
1965
- "GREATEST",
1966
- "最大值",
1967
- "GREATEST($1, $2)"
1968
- ],
1969
- [
1970
- "LEAST",
1971
- "最小值",
1972
- "LEAST($1, $2)"
1973
- ],
1974
- [
1975
- "NOW",
1976
- "当前时间",
1977
- "NOW()"
1978
- ],
1979
- [
1980
- "CURRENT_DATE",
1981
- "当前日期",
1982
- "CURRENT_DATE"
1983
- ],
1984
- [
1985
- "CURRENT_TIME",
1986
- "当前时间",
1987
- "CURRENT_TIME"
1988
- ],
1989
- [
1990
- "CURRENT_TIMESTAMP",
1991
- "当前时间戳",
1992
- "CURRENT_TIMESTAMP"
1993
- ],
1994
- [
1995
- "LOCALTIMESTAMP",
1996
- "本地时间戳",
1997
- "LOCALTIMESTAMP"
1998
- ],
1999
- [
2000
- "DATE_TRUNC",
2001
- "截断日期",
2002
- "DATE_TRUNC('$1', $2)"
2003
- ],
2004
- [
2005
- "DATE_PART",
2006
- "提取日期部分",
2007
- "DATE_PART('$1', $2)"
2008
- ],
2009
- [
2010
- "EXTRACT",
2011
- "提取",
2012
- "EXTRACT($1 FROM $2)"
2013
- ],
2014
- [
2015
- "AGE",
2016
- "年龄/间隔",
2017
- "AGE($1, $2)"
2018
- ],
2019
- [
2020
- "TO_CHAR",
2021
- "转字符串",
2022
- "TO_CHAR($1, '$2')"
2023
- ],
2024
- [
2025
- "TO_DATE",
2026
- "转日期",
2027
- "TO_DATE('$1', '$2')"
2028
- ],
2029
- [
2030
- "TO_TIMESTAMP",
2031
- "转时间戳",
2032
- "TO_TIMESTAMP('$1', '$2')"
2033
- ],
2034
- [
2035
- "TO_NUMBER",
2036
- "转数字",
2037
- "TO_NUMBER('$1', '$2')"
2038
- ],
2039
- [
2040
- "MAKE_DATE",
2041
- "创建日期",
2042
- "MAKE_DATE($1, $2, $3)"
2043
- ],
2044
- [
2045
- "MAKE_TIME",
2046
- "创建时间",
2047
- "MAKE_TIME($1, $2, $3)"
2048
- ],
2049
- [
2050
- "MAKE_TIMESTAMP",
2051
- "创建时间戳",
2052
- "MAKE_TIMESTAMP($1, $2, $3, $4, $5, $6)"
2053
- ],
2054
- [
2055
- "COALESCE",
2056
- "空值替换",
2057
- "COALESCE($1, $2)"
2058
- ],
2059
- [
2060
- "NULLIF",
2061
- "空值比较",
2062
- "NULLIF($1, $2)"
2063
- ],
2064
- [
2065
- "GREATEST",
2066
- "最大值",
2067
- "GREATEST($1, $2, $3)"
2068
- ],
2069
- [
2070
- "LEAST",
2071
- "最小值",
2072
- "LEAST($1, $2, $3)"
2073
- ],
2074
- [
2075
- "JSON_BUILD_OBJECT",
2076
- "构建JSON对象",
2077
- "JSON_BUILD_OBJECT('$1', $2)"
2078
- ],
2079
- [
2080
- "JSONB_BUILD_OBJECT",
2081
- "构建JSONB对象",
2082
- "JSONB_BUILD_OBJECT('$1', $2)"
2083
- ],
2084
- [
2085
- "JSON_BUILD_ARRAY",
2086
- "构建JSON数组",
2087
- "JSON_BUILD_ARRAY($1)"
2088
- ],
2089
- [
2090
- "JSONB_BUILD_ARRAY",
2091
- "构建JSONB数组",
2092
- "JSONB_BUILD_ARRAY($1)"
2093
- ],
2094
- [
2095
- "JSON_EXTRACT_PATH",
2096
- "提取JSON路径",
2097
- "JSON_EXTRACT_PATH($1, '$2')"
2098
- ],
2099
- [
2100
- "JSONB_EXTRACT_PATH",
2101
- "提取JSONB路径",
2102
- "JSONB_EXTRACT_PATH($1, '$2')"
2103
- ],
2104
- [
2105
- "JSON_EXTRACT_PATH_TEXT",
2106
- "提取JSON路径文本",
2107
- "JSON_EXTRACT_PATH_TEXT($1, '$2')"
2108
- ],
2109
- [
2110
- "JSONB_EXTRACT_PATH_TEXT",
2111
- "提取JSONB路径文本",
2112
- "JSONB_EXTRACT_PATH_TEXT($1, '$2')"
2113
- ],
2114
- [
2115
- "JSON_ARRAY_LENGTH",
2116
- "JSON数组长度",
2117
- "JSON_ARRAY_LENGTH($1)"
2118
- ],
2119
- [
2120
- "JSONB_ARRAY_LENGTH",
2121
- "JSONB数组长度",
2122
- "JSONB_ARRAY_LENGTH($1)"
2123
- ],
2124
- [
2125
- "JSONB_SET",
2126
- "设置JSONB值",
2127
- "JSONB_SET($1, '{$2}', '$3')"
2128
- ],
2129
- [
2130
- "JSONB_INSERT",
2131
- "插入JSONB值",
2132
- "JSONB_INSERT($1, '{$2}', '$3')"
2133
- ],
2134
- [
2135
- "JSONB_PRETTY",
2136
- "格式化JSONB",
2137
- "JSONB_PRETTY($1)"
2138
- ],
2139
- [
2140
- "ROW_TO_JSON",
2141
- "行转JSON",
2142
- "ROW_TO_JSON($1)"
2143
- ],
2144
- [
2145
- "TO_JSON",
2146
- "转JSON",
2147
- "TO_JSON($1)"
2148
- ],
2149
- [
2150
- "TO_JSONB",
2151
- "转JSONB",
2152
- "TO_JSONB($1)"
2153
- ],
2154
- [
2155
- "ARRAY_LENGTH",
2156
- "数组长度",
2157
- "ARRAY_LENGTH($1, $2)"
2158
- ],
2159
- [
2160
- "ARRAY_APPEND",
2161
- "数组追加",
2162
- "ARRAY_APPEND($1, $2)"
2163
- ],
2164
- [
2165
- "ARRAY_PREPEND",
2166
- "数组前置",
2167
- "ARRAY_PREPEND($1, $2)"
2168
- ],
2169
- [
2170
- "ARRAY_CAT",
2171
- "数组连接",
2172
- "ARRAY_CAT($1, $2)"
2173
- ],
2174
- [
2175
- "ARRAY_REMOVE",
2176
- "数组移除",
2177
- "ARRAY_REMOVE($1, $2)"
2178
- ],
2179
- [
2180
- "ARRAY_REPLACE",
2181
- "数组替换",
2182
- "ARRAY_REPLACE($1, $2, $3)"
2183
- ],
2184
- [
2185
- "ARRAY_POSITION",
2186
- "数组位置",
2187
- "ARRAY_POSITION($1, $2)"
2188
- ],
2189
- [
2190
- "ARRAY_TO_STRING",
2191
- "数组转字符串",
2192
- "ARRAY_TO_STRING($1, '$2')"
2193
- ],
2194
- [
2195
- "STRING_TO_ARRAY",
2196
- "字符串转数组",
2197
- "STRING_TO_ARRAY($1, '$2')"
2198
- ],
2199
- [
2200
- "UNNEST",
2201
- "展开数组",
2202
- "UNNEST($1)"
2203
- ],
2204
- [
2205
- "ROW_NUMBER",
2206
- "行号",
2207
- "ROW_NUMBER() OVER ($1)"
2208
- ],
2209
- [
2210
- "RANK",
2211
- "排名",
2212
- "RANK() OVER ($1)"
2213
- ],
2214
- [
2215
- "DENSE_RANK",
2216
- "密集排名",
2217
- "DENSE_RANK() OVER ($1)"
2218
- ],
2219
- [
2220
- "NTILE",
2221
- "分组",
2222
- "NTILE($1) OVER ($2)"
2223
- ],
2224
- [
2225
- "LAG",
2226
- "前一行",
2227
- "LAG($1, $2) OVER ($3)"
2228
- ],
2229
- [
2230
- "LEAD",
2231
- "后一行",
2232
- "LEAD($1, $2) OVER ($3)"
2233
- ],
2234
- [
2235
- "FIRST_VALUE",
2236
- "第一个值",
2237
- "FIRST_VALUE($1) OVER ($2)"
2238
- ],
2239
- [
2240
- "LAST_VALUE",
2241
- "最后一个值",
2242
- "LAST_VALUE($1) OVER ($2)"
2243
- ],
2244
- [
2245
- "NTH_VALUE",
2246
- "第N个值",
2247
- "NTH_VALUE($1, $2) OVER ($3)"
2248
- ],
2249
- [
2250
- "OVER",
2251
- "窗口",
2252
- "OVER (PARTITION BY $1 ORDER BY $2)"
2253
- ],
2254
- [
2255
- "PARTITION BY",
2256
- "分区",
2257
- "PARTITION BY $1"
2258
- ],
2259
- [
2260
- "CAST",
2261
- "类型转换",
2262
- "CAST($1 AS $2)"
2263
- ],
2264
- [
2265
- "::INTEGER",
2266
- "转整数",
2267
- "::INTEGER"
2268
- ],
2269
- [
2270
- "::BIGINT",
2271
- "转大整数",
2272
- "::BIGINT"
2273
- ],
2274
- [
2275
- "::TEXT",
2276
- "转文本",
2277
- "::TEXT"
2278
- ],
2279
- [
2280
- "::VARCHAR",
2281
- "转可变字符",
2282
- "::VARCHAR"
2283
- ],
2284
- [
2285
- "::NUMERIC",
2286
- "转数值",
2287
- "::NUMERIC"
2288
- ],
2289
- [
2290
- "::DATE",
2291
- "转日期",
2292
- "::DATE"
2293
- ],
2294
- [
2295
- "::TIMESTAMP",
2296
- "转时间戳",
2297
- "::TIMESTAMP"
2298
- ],
2299
- [
2300
- "::BOOLEAN",
2301
- "转布尔",
2302
- "::BOOLEAN"
2303
- ],
2304
- [
2305
- "::JSON",
2306
- "转JSON",
2307
- "::JSON"
2308
- ],
2309
- [
2310
- "::JSONB",
2311
- "转JSONB",
2312
- "::JSONB"
2313
- ],
2314
- [
2315
- "GEN_RANDOM_UUID",
2316
- "生成UUID",
2317
- "GEN_RANDOM_UUID()"
2318
- ],
2319
- [
2320
- "UUID_GENERATE_V4",
2321
- "生成UUID v4",
2322
- "UUID_GENERATE_V4()"
2323
- ],
2324
- [
2325
- "MD5",
2326
- "MD5哈希",
2327
- "MD5($1)"
2328
- ],
2329
- [
2330
- "ENCODE",
2331
- "编码",
2332
- "ENCODE($1, '$2')"
2333
- ],
2334
- [
2335
- "DECODE",
2336
- "解码",
2337
- "DECODE($1, '$2')"
2338
- ],
2339
- [
2340
- "PG_TYPEOF",
2341
- "获取类型",
2342
- "PG_TYPEOF($1)"
2343
- ],
2344
- [
2345
- "GENERATE_SERIES",
2346
- "生成序列",
2347
- "GENERATE_SERIES($1, $2)"
2348
- ],
2349
- [
2350
- "GENERATE_SERIES date",
2351
- "生成日期序列",
2352
- "GENERATE_SERIES('$1'::DATE, '$2'::DATE, '$3')"
2353
- ]
2354
- ].filter(([e]) => e.toLowerCase().startsWith(t)).forEach(([e, n, E]) => {
2355
- s.push({
2356
- label: e,
2357
- detail: n,
2358
- insertText: E,
2359
- range: i,
2360
- kind: _.languages.CompletionItemKind.Function,
2361
- insertTextRules: _.languages.CompletionItemInsertTextRule.InsertAsSnippet,
2362
- sortText: "1" + e
2363
- });
2364
- }), { suggestions: s };
2365
- }
2366
- }));
2367
- }
2368
- export {
2369
- l as conf,
2370
- N as definePgsqlThemes,
2371
- R as language,
2372
- g as registerPgsqlCompletion
2373
- };
2374
-
2375
- //# sourceMappingURL=postgresql-CLVUxiA0.js.map