Skip to content

Commit deb14b3

Browse files
committed
Connect/ODBC: Refactor install widget details
1 parent f03f86c commit deb14b3

File tree

8 files changed

+28
-10
lines changed

8 files changed

+28
-10
lines changed

docs/_include/links.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,8 @@
6767
[Multi-model Database]: https://cratedb.com/solutions/multi-model-database
6868
[nearest neighbor search]: https://en.wikipedia.org/wiki/Nearest_neighbor_search
6969
[Nested Data Structure]: https://cratedb.com/product/features/nested-data-structure
70-
[ODBC]: https://en.wikipedia.org/wiki/Open_Database_Connectivity
7170
[PostgreSQL JDBC Driver]: https://jdbc.postgresql.org/
7271
[PostgreSQL wire protocol]: https://www.postgresql.org/docs/current/protocol.html
73-
[psqlODBC]: https://odbc.postgresql.org/
74-
[psqlODBC download site]: https://www.postgresql.org/ftp/odbc/releases/
7572
[python-dbapi-by-example]: inv:crate-python:*:label#by-example
7673
[python-sqlalchemy-by-example]: inv:sqlalchemy-cratedb:*:label#by-example
7774
[query DSL based on JSON]: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html
@@ -84,6 +81,5 @@
8481
[TF–IDF]: https://en.wikipedia.org/wiki/Tf%E2%80%93idf
8582
[timeseries-queries-and-visualization-colab]: https://colab.research.google.com/github/crate/cratedb-examples/blob/main/topic/timeseries/timeseries-queries-and-visualization.ipynb
8683
[timeseries-queries-and-visualization-github]: https://github.com/crate/cratedb-examples/blob/main/topic/timeseries/timeseries-queries-and-visualization.ipynb
87-
[unixODBC]: https://www.unixodbc.org/
8884
[Vector Database (Product)]: https://cratedb.com/solutions/vector-database
8985
[Vector Database]: https://en.wikipedia.org/wiki/Vector_database

docs/connect/odbc/csharp.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ Use the ODBC .NET Data Provider to access data from your C Sharp ADO\.NET
99
applications. The [.NET Framework Data Provider for ODBC] is available
1010
through the [System.Data.Odbc] namespace.
1111

12+
:::{rubric} Install
13+
:::
14+
15+
:::{include} /connect/odbc/install-dropdown.md
16+
:::
17+
1218
:::{rubric} Synopsis
1319
:::
1420

docs/connect/odbc/erlang.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
The [Erlang ODBC application] provides an interface to communicate
99
with relational SQL-databases out of the box.
1010

11+
:::{rubric} Install
12+
:::
13+
14+
:::{include} /connect/odbc/install-dropdown.md
15+
:::
16+
1117
:::{rubric} Synopsis
1218
:::
1319

docs/connect/odbc/index.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Connect to CrateDB with ODBC.
1111
:::
1212

1313
:::{div}
14-
Open Database Connectivity ([ODBC]) is a standard application programming
14+
Open Database Connectivity ([ODBC][ODBC definition]) is a standard application programming
1515
interface (API) for accessing database management systems (DBMS),
1616
conceived to be independent of database systems and operating systems.
1717
The application uses ODBC functions through an _ODBC driver manager_ and
@@ -40,3 +40,6 @@ Erlang <erlang>
4040
Python <python>
4141
Visual Basic <visualbasic>
4242
:::
43+
44+
45+
[ODBC definition]: https://en.wikipedia.org/wiki/Open_Database_Connectivity

docs/connect/odbc/install-dropdown.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
orphan: true
33
---
44

5-
The PostgreSQL ODBC driver [psqlODBC]
5+
:::{div}
6+
The PostgreSQL ODBC driver
67
can be used to connect to CrateDB from ODBC environments.
8+
:::
79

810
::::{dropdown} Install and configure the PostgreSQL ODBC driver
911
:::{include} /connect/odbc/install.md

docs/connect/odbc/install.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,14 @@
22
orphan: true
33
---
44

5+
:::{include} /connect/odbc/links.md
6+
:::
7+
8+
:::{div}
59
While Windows typically includes an ODBC driver manager, you can
610
install the [unixODBC] driver manager on Linux and macOS systems.
711
The PostgreSQL ODBC driver is called [psqlODBC].
12+
:::
813

914
:::::{tab-set}
1015

docs/connect/odbc/python.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ convenience. For more information, please visit the
1717
:::{rubric} Install
1818
:::
1919

20+
:::{include} /connect/odbc/install-dropdown.md
21+
:::
22+
23+
Install the required Python package.
2024
```shell
2125
pip install --upgrade pyodbc
2226
```
@@ -129,7 +133,6 @@ connection_string = \
129133
```
130134

131135

132-
133136
[connecting to PostgreSQL with pyodbc]: https://github.com/mkleehammer/pyodbc/wiki/Connecting-to-PostgreSQL
134137
[pyodbc]: https://github.com/mkleehammer/pyodbc
135138
[pyodbc installation instructions]: https://github.com/mkleehammer/pyodbc/wiki/Install

docs/connect/odbc/visualbasic.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
# ODBC with Visual Basic
44

5-
:::{include} /_include/links.md
6-
:::
7-
85
:::{rubric} About
96
:::
107

0 commit comments

Comments
 (0)