aa4ab11210
CI / test (push) Has been cancelled
CI / verify (push) Has been cancelled
Clients CI / build-server (push) Has been cancelled
Clients CI / test-python (push) Has been cancelled
Clients CI / test-javascript (push) Has been cancelled
Clients CI / test-nim (push) Has been cancelled
Clients CI / test-rust (push) Has been cancelled
- Extract wire protocol into clients/nim/src/baradb/wire.nim - Add BaraError exception hierarchy - Refactor BaraClient/SyncClient with typedRows, AsyncLock request queue, timeouts, TLS config - Add BaraPool and optional HTTP fallback - Add mock-server wire and pool unit tests - Bump baradb nimble package to 1.2.0 - Make nim-allographer depend on canonical baradb client - Use typed rows in allographer toJson - Deprecate src/barabadb/client/client.nim - Update docs/en/clients.md and clients/nim/README.md
28 lines
799 B
Nim
28 lines
799 B
Nim
# Package
|
|
|
|
version = "1.2.0"
|
|
author = "BaraDB Team"
|
|
description = "Official Nim client for BaraDB — async binary protocol client"
|
|
license = "Apache-2.0"
|
|
srcDir = "src"
|
|
|
|
# Dependencies — only Nim stdlib, no server code
|
|
requires "nim >= 2.2.0"
|
|
|
|
# Export the client module
|
|
bin = @[]
|
|
|
|
task test, "Run all client tests (unit + integration if server available)":
|
|
exec "nim c -r tests/test_client.nim"
|
|
# Integration tests are compiled separately; they auto-skip if no server.
|
|
try:
|
|
exec "nim c -r tests/test_integration.nim"
|
|
except:
|
|
echo "Integration tests skipped (no server on localhost:9472)"
|
|
|
|
task test_unit, "Run unit tests only":
|
|
exec "nim c -r tests/test_client.nim"
|
|
|
|
task example, "Run basic example":
|
|
exec "nim c -r examples/basic.nim"
|