Skip to content

Commit d45366e

Browse files
committed
create Readme Quickstart
1 parent e1d2bb4 commit d45366e

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Linq2DB YDB Quick Start
2+
3+
A tiny sample that shows how to connect to **YDB** with **Linq2DB**, create tables, seed demo data, run parameterized queries and a transaction.
4+
5+
## Running QuickStart
6+
7+
1. **Start YDB Local**
8+
Follow the official guide: https://ydb.tech/docs/en/reference/docker/start
9+
Defaults expected by the sample:
10+
- non‑TLS port: **2136**
11+
- TLS port: **2135**
12+
- database: **/local**
13+
14+
2. **(Optional) Configure environment variables**
15+
The app reads connection settings from env vars (safe defaults are used if missing).
16+
17+
**Bash**
18+
```bash
19+
export YDB_HOST=localhost
20+
export YDB_PORT=2136
21+
export YDB_DB=/local
22+
export YDB_USE_TLS=false
23+
# export YDB_TLS_PORT=2135
24+
```
25+
26+
**PowerShell**
27+
```powershell
28+
$env:YDB_HOST="localhost"
29+
$env:YDB_PORT="2136"
30+
$env:YDB_DB="/local"
31+
$env:YDB_USE_TLS="false"
32+
# $env:YDB_TLS_PORT="2135"
33+
```
34+
35+
3. **Restore & run**
36+
```bash
37+
dotnet restore
38+
dotnet run
39+
```

0 commit comments

Comments
 (0)