File tree Expand file tree Collapse file tree 3 files changed +50
-2
lines changed Expand file tree Collapse file tree 3 files changed +50
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ The application uses ODBC functions through an _ODBC driver manager_ and
2323addresses 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
Original file line number Diff line number Diff line change @@ -6,6 +6,6 @@ The PostgreSQL ODBC driver [psqlODBC]
66can 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::::
You can’t perform that action at this time.
0 commit comments