ed5a71913c
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
Replace bare except: with CatchableError across storage, query, Raft, backup, and protocol code so Defects are not swallowed. Break uncollectable ARC cycles in server shard/gossip callbacks via Server-owned refs and cursor locals. Align package license with LICENSE (BSD-3-Clause), sync README version, and point test_all at the canonical clients/nim baradb client (parseConnectionString + aliases).
43 lines
1.6 KiB
Nim
43 lines
1.6 KiB
Nim
# Package
|
|
version = "1.1.8"
|
|
author = "BaraDB Team"
|
|
description = "BaraDB — Multimodal database written in Nim"
|
|
license = "BSD-3-Clause"
|
|
srcDir = "src"
|
|
bin = @["baradadb", "baramcp"]
|
|
binDir = "build"
|
|
|
|
# Dependencies
|
|
requires "nim >= 2.2.0"
|
|
requires "https://github.com/katehonz/hunos >= 1.3.0"
|
|
requires "https://github.com/katehonz/jwt-nim-baraba#fbe084b" # v2.1.2 - security fixes & Nim 2.2 compat
|
|
requires "checksums >= 0.2.0"
|
|
|
|
# Tasks
|
|
task build_debug, "Build debug version":
|
|
exec "nim c --debugger:native --linedir:on -o:build/baradadb src/baradadb.nim"
|
|
exec "nim c --debugger:native --linedir:on -o:build/baramcp src/baramcp.nim"
|
|
|
|
task build_release, "Build release version":
|
|
# mm:arc comes from nim.cfg (ORC crashes under wire INSERT load)
|
|
exec "nim c -d:release --opt:speed -o:build/baradadb src/baradadb.nim"
|
|
exec "nim c -d:release --opt:speed -o:build/baramcp src/baramcp.nim"
|
|
|
|
task test, "Run all tests":
|
|
exec "nim c -r tests/test_all.nim"
|
|
|
|
task bench, "Run embedded micro-benchmarks (in-process)":
|
|
exec "nim c -d:release -r benchmarks/bench_all.nim"
|
|
|
|
task bench_pg, "Run PostgreSQL client-server micro-benchmarks":
|
|
exec "python3 benchmarks/pg_bench.py"
|
|
|
|
task bench_fair, "Fair multi-tier benches (SQLite embedded + optional PG/HTTP)":
|
|
exec "python3 benchmarks/fair_bench.py"
|
|
|
|
task bench_report, "Generate fair comparison report (needs fair_bench first)":
|
|
exec "python3 benchmarks/generate_report.py --fair"
|
|
|
|
task bench_report_legacy, "Legacy mixed-tier report (PG C/S vs BaraDB embedded — unfair)":
|
|
exec "python3 benchmarks/generate_report.py"
|