@@ -9,22 +9,22 @@ Basic example for connecting to CrateDB using .NET (C#)
9
9
About
10
10
*****
11
11
12
+ The file ``DemoProgram.cs `` is a demonstration program written in `C# `_ which
13
+ outlines typical, very basic usage scenarios with CrateDB.
14
+
12
15
CrateDB versions prior to 4.2 needed a custom fork of the official Npgsql .NET
13
16
data provider for PostgreSQL, `crate-npgsql `_. CrateDB versions 4.2 and later
14
- work with the vanilla Npgsql driver without the need for a plugin.
15
-
16
- The file ``DemoProgram.cs `` is a demonstration program written in C# which
17
- outlines typical, very basic usage scenarios with CrateDB.
17
+ work with the vanilla `Npgsql - .NET Access to PostgreSQL `_ driver without the
18
+ need for a plugin.
18
19
19
20
20
-
21
21
*****
22
22
Usage
23
23
*****
24
24
25
25
To invoke a CrateDB instance for evaluation purposes, run::
26
26
27
- docker run -it --rm --publish=4200:4200 --publish=5432:5432 crate:4.5.1
27
+ docker run -it --rm --publish=4200:4200 --publish=5432:5432 crate:4.7
28
28
29
29
Invoke example program::
30
30
@@ -36,7 +36,7 @@ To connect to CrateDB Cloud, use a command like::
36
36
--host=clustername.aks1.westeurope.azure.cratedb.net --ssl-mode=Require \
37
37
--username=foobar --password='X8F%Shn)TESTvF5ac7%eW4NM'
38
38
39
- Explore all available options::
39
+ Explore all available connection options::
40
40
41
41
dotnet run --framework=net5.0 -- --help
42
42
@@ -58,4 +58,6 @@ For running the tests against a remote database, use, for example::
58
58
dotnet test --framework=net5.0
59
59
60
60
61
+ .. _C# : https://en.wikipedia.org/wiki/C_Sharp_(programming_language)
61
62
.. _crate-npgsql : https://github.com/crate/crate-npgsql
63
+ .. _Npgsql - .NET Access to PostgreSQL : https://www.npgsql.org/
0 commit comments