Skip to content

Commit 45f895d

Browse files
committed
Driver/Julia: Add dedicated page
1 parent 1d3251e commit 45f895d

File tree

3 files changed

+55
-0
lines changed

3 files changed

+55
-0
lines changed

docs/_assets/icon/julia-logo.svg

Lines changed: 1 addition & 0 deletions
Loading

docs/connect/index.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,20 @@ CrateDB drivers and adapters for supported programming languages, frameworks, an
7373
{material-regular}`javascript;2em`
7474
::::
7575

76+
::::{grid-item-card} Julia
77+
:link: connect-julia
78+
:link-type: ref
79+
:link-alt: Connect to CrateDB using Julia
80+
:padding: 3
81+
:text-align: center
82+
:class-card: sd-pt-3
83+
:class-body: sd-fs-1
84+
:class-title: sd-fs-6
85+
```{image} /_assets/icon/julia-logo.svg
86+
:height: 40px
87+
```
88+
::::
89+
7690
::::{grid-item-card} PHP
7791
:link: connect-php
7892
:link-type: ref
@@ -184,6 +198,7 @@ application
184198
185199
java
186200
javascript
201+
julia
187202
php
188203
python
189204
ruby

docs/connect/julia.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
(connect-julia)=
2+
3+
# Julia
4+
5+
:::{div} sd-text-muted
6+
Connect to CrateDB from Julia applications.
7+
:::
8+
9+
:::{rubric} About
10+
:::
11+
12+
[LibPQ.jl] is a Julia wrapper for the PostgreSQL libpq C library.
13+
14+
:::{rubric} Synopsis
15+
:::
16+
17+
```julia
18+
using Pkg
19+
Pkg.add("LibPQ")
20+
Pkg.add("Tables")
21+
```
22+
```julia
23+
using LibPQ
24+
using Tables
25+
26+
conn = LibPQ.Connection("postgres://crate:crate@localhost:5432/?sslmode=disable");
27+
result = LibPQ.execute(conn, "SELECT mountain, height FROM sys.summits ORDER BY height DESC LIMIT 3")
28+
data = rowtable(result)
29+
println(data)
30+
```
31+
32+
:::{rubric} Learn
33+
:::
34+
35+
- See also [Exploring the Power of PostgreSQL with Julia: A Beginners Guide]
36+
37+
38+
[Exploring the Power of PostgreSQL with Julia: A Beginners Guide]: https://blog.stackademic.com/exploring-the-power-of-postgresql-with-julia-a-beginners-guide-88920ec9da3e?gi=231c51a85197
39+
[LibPQ.jl]: https://github.com/JuliaDatabases/LibPQ.jl

0 commit comments

Comments
 (0)