Add an example of including sql from docs
Original commit: elastic/x-pack-elasticsearch@aa4ad288dc
This commit is contained in:
parent
810ca6637e
commit
efc876c8e1
|
@ -2,6 +2,8 @@
|
||||||
[[xpack-sql]]
|
[[xpack-sql]]
|
||||||
= SQL Access
|
= SQL Access
|
||||||
|
|
||||||
|
:jdbc-tests: {docdir}/../../sql/jdbc/src/test/resources
|
||||||
|
|
||||||
[partintro]
|
[partintro]
|
||||||
--
|
--
|
||||||
Overview
|
Overview
|
||||||
|
@ -12,3 +14,5 @@ include::sql-query-dsl.asciidoc[]
|
||||||
include::sql-rest.asciidoc[]
|
include::sql-rest.asciidoc[]
|
||||||
include::sql-jdbc.asciidoc[]
|
include::sql-jdbc.asciidoc[]
|
||||||
include::sql-cli.asciidoc[]
|
include::sql-cli.asciidoc[]
|
||||||
|
|
||||||
|
:jdbc-tests!:
|
||||||
|
|
|
@ -3,3 +3,11 @@
|
||||||
== SQL Query DSL
|
== SQL Query DSL
|
||||||
|
|
||||||
Content
|
Content
|
||||||
|
|
||||||
|
Example!
|
||||||
|
|
||||||
|
|
||||||
|
["source","sql",subs="attributes,callouts,macros"]
|
||||||
|
--------------------------------------------------
|
||||||
|
include-tagged::{jdbc-tests}/select.sql-spec[wildcardWithOrder]
|
||||||
|
--------------------------------------------------
|
||||||
|
|
|
@ -3,7 +3,9 @@
|
||||||
//
|
//
|
||||||
|
|
||||||
wildcardWithOrder
|
wildcardWithOrder
|
||||||
SELECT * FROM "test_emp" ORDER BY emp_no;
|
// tag::wildcardWithOrder
|
||||||
|
SELECT * FROM test_emp ORDER BY emp_no;
|
||||||
|
// end::wildcardWithOrder
|
||||||
column
|
column
|
||||||
SELECT last_name FROM "test_emp" ORDER BY emp_no;
|
SELECT last_name FROM "test_emp" ORDER BY emp_no;
|
||||||
columnWithAlias
|
columnWithAlias
|
||||||
|
|
Loading…
Reference in New Issue