Skip to content

Commit dd2d851

Browse files
committed
fix: Convert Asciidoc source blocks to gensql blocks for runnable examples in browser
1 parent a66976b commit dd2d851

30 files changed

+42
-42
lines changed

docs/modules/ROOT/partials/base/commands.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The `+.import+` command creates a table from a `+.csv+` file.
1313
.Import a table from a `+.csv+` file
1414
[example]
1515
====
16-
[source,gensql]
16+
[gensql]
1717
----
1818
.import /path/to/satellites.csv satellites
1919
----
@@ -26,7 +26,7 @@ The `+.export+` command writes a table to disk as a `+.csv+` file.
2626
.Export a table to a `+.csv+` file
2727
[example]
2828
====
29-
[source,gensql]
29+
[gensql]
3030
----
3131
.export /path/to/satellites.csv satellites
3232
----

docs/modules/ROOT/partials/base/scalar-expressions.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Basic arithmetic like multiplication, subtraction, addition, and division can be
4444

4545
[example]
4646
====
47-
[source,gensql]
47+
[gensql]
4848
----
4949
SELECT PROBABILITY OF VAR Apogee_km > Apogee_km UNDER military_model
5050
----
@@ -54,7 +54,7 @@ SELECT PROBABILITY OF VAR Apogee_km > Apogee_km UNDER military_model
5454

5555
[example]
5656
====
57-
[source,gensql]
57+
[gensql]
5858
----
5959
SELECT PROBABILITY DENSITY OF VAR Apogee_km < 1000
6060
UNDER model CONDITIONED BY VAR Users = "Military"

docs/modules/ROOT/partials/base/statements/alter.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The `+ALTER+` command adds new columns to a table in the database.
55
.Add a column to the `+satellites+` table
66
[example]
77
====
8-
[source,gensql]
8+
[gensql]
99
----
1010
ALTER satellites ADD Swath!
1111
----

docs/modules/ROOT/partials/base/statements/create-table.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The `+CREATE TABLE+` statement assigns a name to a table so it can be referenced
55
.Assign a name to a <<VALUES,table literal>>
66
[example]
77
====
8-
[source,gensql]
8+
[gensql]
99
----
1010
CREATE TABLE launch_sites AS
1111
(Launch_Site, State) VALUES

docs/modules/ROOT/partials/base/statements/drop-model.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The `+DROP MODEL+` statement removes a model from the database.
44

55
[example]
66
====
7-
[source,gensql]
7+
[gensql]
88
----
99
DROP MODEL model!
1010
----

docs/modules/ROOT/partials/base/statements/drop-table.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The `+DROP TABLE+` statement removes a table from the database.
44

55
[example]
66
====
7-
[source,gensql]
7+
[gensql]
88
----
99
DROP TABLE satellites!
1010
----

docs/modules/ROOT/partials/base/statements/insert-into.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The `+INSERT INTO+` statement inserts a table into a table.
55
.Insert two rows into the `+satellites+` table
66
[example]
77
====
8-
[source,gensql]
8+
[gensql]
99
----
1010
INSERT INTO satellites
1111
(Users, Apogee_km, Perigee_km) VALUES

docs/modules/ROOT/partials/base/statements/update.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The `+UPDATE+` statement modifies the contents of a table in the database.
55
.Rename a launch site
66
[example]
77
====
8-
[source,gensql]
8+
[gensql]
99
----
1010
UPDATE satellites
1111
SET Launch_Site = "Majestic Cape Canaveral"

docs/modules/ROOT/partials/base/table-expressions/alter.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The `+ALTER+` expression evaluates to the a copy of a table with a new empty col
55
.Retrieve the `+satellites+` table with a new column added
66
[example]
77
====
8-
[source,gensql]
8+
[gensql]
99
----
1010
ALTER satellites ADD Swath
1111
----

docs/modules/ROOT/partials/base/table-expressions/insert.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The `+INSERT+` expression evaluates to a new table with additional values.
55
.Retrieve the `+satellites+` table with two rows inserted
66
[example]
77
====
8-
[source,gensql]
8+
[gensql]
99
----
1010
INSERT INTO satellites
1111
(Users, Apogee_km, Perigee_km) VALUES

0 commit comments

Comments
 (0)