Skip to content

Commit 65c3c71

Browse files
committed
Driver/ODBC: Add isql to page about applications
1 parent 0614231 commit 65c3c71

File tree

3 files changed

+50
-2
lines changed

3 files changed

+50
-2
lines changed

docs/connect/application.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,54 @@ crash --command "SELECT 42.42;"
106106
::::
107107

108108

109+
(isql)=
110+
### isql
111+
112+
`isql` and `iusql` are unixODBC command-line tools allowing users to execute
113+
SQL interactively or in batches.
114+
The tools provide several useful features, including an option to generate
115+
output wrapped in an HTML table.
116+
117+
:::{include} /connect/odbc/setup-widget.md
118+
:::
119+
120+
::::{tab-set}
121+
122+
:::{tab-item} CrateDB Cloud
123+
:sync: server
124+
```{code} ini
125+
[CrateDB Cloud]
126+
Driver = PostgreSQL ODBC
127+
Servername = testcluster.cratedb.net
128+
Port = 5432
129+
Sslmode = require
130+
Username = admin
131+
Password = password
132+
```
133+
```shell
134+
echo "SELECT 42.42" | iusql "CrateDB Cloud"
135+
```
136+
:::
137+
138+
:::{tab-item} CrateDB on localhost
139+
:sync: localhost
140+
```{code} ini
141+
[CrateDB]
142+
Driver = PostgreSQL ODBC
143+
Servername = localhost
144+
Port = 5432
145+
Sslmode = disable
146+
Username = crate
147+
Password = crate
148+
```
149+
```shell
150+
echo "SELECT 42.42" | iusql "CrateDB"
151+
```
152+
:::
153+
154+
::::
155+
156+
109157
(psql)=
110158
### psql
111159

docs/connect/odbc/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The application uses ODBC functions through an _ODBC driver manager_ and
2323
addresses the driver and database using a _Data Source Name (DSN)_.
2424
:::
2525

26-
:::{include} setup-widget.md
26+
:::{include} /connect/odbc/setup-widget.md
2727
:::
2828

2929
## Examples

docs/connect/odbc/setup-widget.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ The PostgreSQL ODBC driver [psqlODBC]
66
can be used to connect to CrateDB from ODBC environments.
77

88
::::{dropdown} Learn how to install and configure the PostgreSQL ODBC driver
9-
:::{include} setup-body.md
9+
:::{include} /connect/odbc/setup-body.md
1010
:::
1111
::::

0 commit comments

Comments
 (0)