All SDKs Overview
Compare all 12 official drivers, TLS/mTLS DSN options, type precision guarantees, and full-stack examples.
3 min read Official SDKs (12 Languages)
Every SpydDB official driver speaks SpydWire v2 (SPD2) canonical binary framing over TCP/TLS with TCP_NODELAY, coalesced frame writes, 64 KiB buffered reads, prepared statement caching, interactive transactions, and connection pooling — or bridges directly via PostgreSQL Wire v3 (JDBC / ODBC) and HTTPS/gRPC.
Complete Driver Matrix#
| Language / Ecosystem | Package / Artifact | Protocol & Highlights | Guide |
|---|---|---|---|
| Rust | spyd-rust-driver (crates.io) | Sync Client & Pool, opt-in Tokio AsyncClient & AsyncPool, compile-time spyd_model! ORM, migrations | Rust SDK |
| Python | spyddb==0.1.2 (PyPI) | Zero-dependency stdlib TLS Client / AsyncClient, pools, declarative Model ORM (Database & AsyncDatabase), migrations | Python SDK |
| TypeScript / Node | spyddb (npm) | Pure TS/Node SPD2 + TLS, native bigint for large u64, DecimalParam, ORM + Schema Differ + Migrations | TypeScript SDK |
| Java 21+ (Native) | io.github.muhibnayem:spyddb-client | Virtual-thread unpinned SpydWireClient, SpydAsyncClient, HTTPS SpydClient, Java record & POJO ORM | Java SDK |
| Java JDBC 4.2 | dev.spyddb:spyddb-jdbc | Drop-in jdbc:spyddb:// driver for HikariCP, JDBI, Flyway, DataGrip, and DBeaver over pgwire TLS | Java JDBC |
| Go | github.com/spyddb/spyddb-go | Zero-cgo SPD2 + TLS Client & Pool, context.Context cancellation/timeouts, exact Value accessors | Go SDK |
| C | clients/c (spyddb.h) | Single shared/object driver + OpenSSL TLS, spyd_prepare, interactive transactions, cancellation | C SDK |
| C++17 | clients/cpp (spyddb.hpp) | Header-only RAII wrapper over spyddb.h, move-safe Result/PreparedStatement, range-for iteration, std::optional | C++ SDK |
| .NET / C# | SpydDb.Client (NuGet, .NET 8) | Zero-native-dep SpydClient & SpydPool, exact ulong/Int128, System.Text.Json schemaless documents | .NET SDK |
| PHP 8.1+ | spyddb/spyddb (Composer) | Pure PHP SPD2 + TLS Client & Pool, strict types, Result IteratorAggregate/Countable, DateTimeImmutable | PHP SDK |
| Ruby 3.1+ | spyddb (RubyGems) | Pure Ruby SPD2 + TLS Client & Pool, arbitrary-precision Integer for U64, Enumerable results | Ruby SDK |
| ODBC (BI & Analytics) | clients/odbc (unixODBC) | C shared library for Excel, Power BI, Tableau, Python pyodbc, and isql | ODBC Driver |
Universal Driver Guarantees#
- Exact Engine Precision (
u64above $2^{53}$ &Decimal): No silent JavaScript/JSON float rounding —bigint(TypeScript),BigInteger/BigDecimal(Java), arbitraryInteger/Decimal(Python/Ruby),ulong/Int128(.NET),uint64(Rust/Go/C++), and raw stringtextcarry full precision intact. - Strict
NULLSeparation: SQLNULLis never flattened into""or0across either SpydWire binary decoding or ORM hydration. - Fail-Closed TLS Verification: Non-loopback plaintext connections are refused. Supply
ca(explicit CA anchor) andserver_name(SNI / SAN verification), plusclient_cert/client_keyfor mutual TLS. - Uniform Authorization: Every driver session authenticates via Bearer Token (
SPD2token), SCRAM-SHA-256 (user+password), federated JWT, or Kerberos and inherits the engine's exact RBAC, row policies, field masks, and audit log.
End-to-End Application Blueprint (SpydTasks)#
The repository includes a complete runnable full-stack TypeScript web application (examples/spyd-tasks-app) demonstrating:
- TLS connection pooling (
Pool) and parameterized SpydQL CRUD queries - Hybrid relational B+ tree collections alongside analytical
store column fortelemetry rollups - Docker Compose provisioning with
CAP_IPC_LOCKand automated schema migration (./scripts/setup-db.sh)