-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into 326
- Loading branch information
Showing
23 changed files
with
159 additions
and
221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
````sql | ||
/* | ||
{ "name": "locks" } | ||
*/ | ||
select "@schema" | ||
, "@table" | ||
, "@session" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
````sql | ||
/* | ||
{ "name": "table" } | ||
*/ | ||
select "@schema" /* { "label": "owner", "description": "Owner of the table", "visible": true } */ | ||
, "@table" /* { "label": "table name", "description": "Name of the table", "visible": true } */ | ||
, remarks properties | ||
, last_modification /* { "label": "last modification", "description": "Last modification" } */ | ||
, table_type /* { "label": "table type", "description": "Typical types", "visible": true, "values": ['TABLE', 'VIEW', 'SYSTEM TABLE', 'GLOBAL TEMPORARY', 'LOCAL TEMPORARY', 'ALIAS', 'SYNONYM'] } */ | ||
from (select t.table_schema as "@schema" | ||
, t.table_name as "@table" | ||
, t.* | ||
from information_schema.tables t | ||
where lower(t.table_schema) like lower('${uri.path(0)}') | ||
and lower(t.table_name) like lower('${uri.path(1)}')) | ||
order by "@schema", "@table" | ||
```` | ||
|
||
````sql | ||
/* | ||
{ "name": "column" } | ||
*/ | ||
select "@schema" /* { "label": "owner", "description": "Owner of the table", "visible": true } */ | ||
, "@table" /* { "label": "table name", "description": "Name of the table", "visible": true } */ | ||
, "@column" /* { "label": "column name", "description": "Name of the column", "visible": true } */ | ||
, type_name /* { "label": "type name", "description": "Data source dependent type name, for a UDT the type name is fully qualified", "visible": true } */ | ||
, character_maximum_length /* { "label": "size", "description": "Column size", "visible": true } */ | ||
, nullable /* { "label": "nullable", "description": "Is NULL allowed", "visible": true } */ | ||
, column_default /* { "label": "default value", "description": "Default value for the column, which should be interpreted as a string when the value is enclosed in single quotes (may be null)" } */ | ||
from (select c.table_schema as "@schema" | ||
, c.table_name as "@table" | ||
, c.column_name as "@column" | ||
, c.* | ||
from information_schema.columns c) | ||
```` | ||
|
||
````sql | ||
/* | ||
{ "name": "pk" } | ||
*/ | ||
select "@schema" /* { "label": "owner", "description": "Owner of the table", "visible": true } */ | ||
, "@table" /* { "label": "table name", "description": "Name of the table", "visible": true } */ | ||
, "@pk" /* { "label": "pk", "description": "Primary key name", "visible": true } */ | ||
, COLUMN_LIST | ||
, REMARKS | ||
, CHECK_EXPRESSION | ||
from (select c.table_schema as "@schema" | ||
, c.table_name as "@table" | ||
, c.constraint_name as "@pk" | ||
, c.* | ||
from information_schema.constraints c) | ||
```` | ||
|
||
````sql | ||
/* | ||
{ "name": "index" } | ||
*/ | ||
select "@schema" /* { "label": "owner", "description": "Owner of the table", "visible": true } */ | ||
, "@table" /* { "label": "table name", "description": "Name of the table", "visible": true } */ | ||
, "@index" /* { "label": "index name", "description": "Name of the index", "visible": true } */ | ||
, ORDINAL_POSITION | ||
, COLUMN_NAME | ||
, CARDINALITY | ||
, PRIMARY_KEY | ||
, INDEX_TYPE_NAME | ||
, IS_GENERATED | ||
, INDEX_TYPE | ||
, ASC_OR_DESC | ||
, PAGES | ||
, FILTER_CONDITION | ||
, REMARKS | ||
, SQL | ||
, ID | ||
, SORT_TYPE | ||
, CONSTRAINT_NAME | ||
, INDEX_CLASS | ||
, AFFINITY | ||
from (select TABLE_SCHEMA as "@schema" | ||
, TABLE_NAME as "@table" | ||
, INDEX_NAME as "@index" | ||
, i.* | ||
from information_schema.indexes i) | ||
```` |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.