Skip to content

Commit 03b0b28

Browse files
committed
1 parent 5ec42ae commit 03b0b28

16 files changed

Lines changed: 137 additions & 118 deletions

File tree

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
````sql
21
select "@schema"
32
, "@table"
43
, "@session"
@@ -7,4 +6,3 @@ select "@schema"
76
, SESSION_ID as "@session"
87
, LOCK_TYPE
98
from information_schema.LOCKS)
10-
````

conf/h2/sql/database/instance/query/query.md renamed to conf/h2/sql/database/instance/query/query.sql

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
````sql
21
select "@statement" from (
32
select SQL_STATEMENT as "@statement"
43
, EXECUTION_COUNT
@@ -13,4 +12,3 @@ select SQL_STATEMENT as "@statement"
1312
, AVERAGE_ROW_COUNT
1413
, STD_DEV_ROW_COUNT
1514
from information_schema.QUERY_STATISTICS)
16-
````

conf/h2/sql/database/instance/sessions/sessions.md renamed to conf/h2/sql/database/instance/sessions/sessions.sql

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
````sql
21
select "@id" /* { "label": "id", "description": "ID", "visible": true } */
32
, USER_NAME /* { "label": "user", "description": "User name", "visible": true } */
43
, session_start /* { "label": "session start", "description": "Session start", "visible": true } */
@@ -12,4 +11,3 @@ select "@id" /* { "label": "id", "description": "ID", "visible": true }
1211
, STATEMENT_START
1312
, CONTAINS_UNCOMMITTED
1413
from information_schema.sessions)
15-
````
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
````sql
21
select "@schema" /* { "label": "schema", "description": "Schema", "visible": true } */
32
, CATALOG_NAME /* { "label": "catalog", "description": "Catalog" } */
43
, SCHEMA_OWNER /* { "label": "owner", "description": "Schema owner" } */
@@ -10,4 +9,3 @@ select "@schema" /* { "label": "schema", "description": "Sche
109
from (select s.SCHEMA_NAME as "@schema"
1110
, s.*
1211
from information_schema.SCHEMATA s)
13-
````

conf/h2/sql/database/schema/table/column/column.md renamed to conf/h2/sql/database/schema/table/column/column.sql

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
````sql
21
select "@schema" /* { "label": "owner", "description": "Owner of the table", "visible": true } */
32
, "@table" /* { "label": "table name", "description": "Name of the table", "visible": true } */
43
, "@column" /* { "label": "column name", "description": "Name of the column", "visible": true } */
@@ -11,4 +10,3 @@ select "@schema" /* { "label": "owner", "description": "Owner o
1110
, c.column_name as "@column"
1211
, c.*
1312
from information_schema.columns c)
14-
````

conf/h2/sql/database/schema/table/index/index.md renamed to conf/h2/sql/database/schema/table/index/index.sql

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
````sql
21
select "@schema" /* { "label": "owner", "description": "Owner of the table", "visible": true } */
32
, "@table" /* { "label": "table name", "description": "Name of the table", "visible": true } */
43
, "@index" /* { "label": "index name", "description": "Name of the index", "visible": true } */
@@ -24,4 +23,3 @@ select "@schema" /* { "label": "owner", "description": "Owner of the table",
2423
, INDEX_NAME as "@index"
2524
, i.*
2625
from information_schema.indexes i)
27-
````

conf/h2/sql/database/schema/table/pk/pk.md renamed to conf/h2/sql/database/schema/table/pk/pk.sql

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
````sql
21
select "@schema" /* { "label": "owner", "description": "Owner of the table", "visible": true } */
32
, "@table" /* { "label": "table name", "description": "Name of the table", "visible": true } */
43
, "@pk" /* { "label": "pk", "description": "Primary key name", "visible": true } */
@@ -10,4 +9,3 @@
109
, c.constraint_name as "@pk"
1110
, c.*
1211
from information_schema.constraints c)
13-
````

conf/h2/sql/database/schema/table/table.md renamed to conf/h2/sql/database/schema/table/table.sql

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
````sql
21
select "@schema" /* { "label": "owner", "description": "Owner of the table", "visible": true } */
32
, "@table" /* { "label": "table name", "description": "Name of the table", "visible": true } */
43
, remarks properties
@@ -11,4 +10,3 @@ select "@schema" /* { "label": "owner", "description": "Owner of the
1110
where lower(t.table_schema) like lower('${uri.path(0)}')
1211
and lower(t.table_name) like lower('${uri.path(1)}'))
1312
order by "@schema", "@table"
14-
````

src/main/assembly/assembly.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
~ SOFTWARE.
2323
-->
2424

25-
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
25+
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
26+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2627
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
2728
<id>bin</id>
2829
<!--<baseDirectory>/</baseDirectory>-->

src/main/resources/data.sql

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
insert into hr.users (id, first_name, email) values (1, 'mkyong', 'mkyong@gmail.com');
2-
insert into hr.users (id, first_name, email) values (2, 'alex', 'alex@yahoo.com');
3-
insert into hr.users (id, first_name, email) values (4, 'joel', 'joel@gmail.com');
1+
insert into hr.users (id, first_name, email)
2+
values (1, 'mkyong', 'mkyong@gmail.com');
3+
insert into hr.users (id, first_name, email)
4+
values (2, 'alex', 'alex@yahoo.com');
5+
insert into hr.users (id, first_name, email)
6+
values (4, 'joel', 'joel@gmail.com');
47

5-
insert into hr.jobs (id, name, description) values (1, 'driver', 'driver');
8+
insert into hr.jobs (id, name, description)
9+
values (1, 'driver', 'driver');

0 commit comments

Comments
 (0)