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 / EcosystemPackage / ArtifactProtocol & HighlightsGuide
Rustspyd-rust-driver (crates.io)Sync Client & Pool, opt-in Tokio AsyncClient & AsyncPool, compile-time spyd_model! ORM, migrationsRust SDK
Pythonspyddb==0.1.2 (PyPI)Zero-dependency stdlib TLS Client / AsyncClient, pools, declarative Model ORM (Database & AsyncDatabase), migrationsPython SDK
TypeScript / Nodespyddb (npm)Pure TS/Node SPD2 + TLS, native bigint for large u64, DecimalParam, ORM + Schema Differ + MigrationsTypeScript SDK
Java 21+ (Native)io.github.muhibnayem:spyddb-clientVirtual-thread unpinned SpydWireClient, SpydAsyncClient, HTTPS SpydClient, Java record & POJO ORMJava SDK
Java JDBC 4.2dev.spyddb:spyddb-jdbcDrop-in jdbc:spyddb:// driver for HikariCP, JDBI, Flyway, DataGrip, and DBeaver over pgwire TLSJava JDBC
Gogithub.com/spyddb/spyddb-goZero-cgo SPD2 + TLS Client & Pool, context.Context cancellation/timeouts, exact Value accessorsGo SDK
Cclients/c (spyddb.h)Single shared/object driver + OpenSSL TLS, spyd_prepare, interactive transactions, cancellationC SDK
C++17clients/cpp (spyddb.hpp)Header-only RAII wrapper over spyddb.h, move-safe Result/PreparedStatement, range-for iteration, std::optionalC++ 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, DateTimeImmutablePHP SDK
Ruby 3.1+spyddb (RubyGems)Pure Ruby SPD2 + TLS Client & Pool, arbitrary-precision Integer for U64, Enumerable resultsRuby SDK
ODBC (BI & Analytics)clients/odbc (unixODBC)C shared library for Excel, Power BI, Tableau, Python pyodbc, and isqlODBC Driver

Universal Driver Guarantees#

  1. Exact Engine Precision (u64 above $2^{53}$ & Decimal): No silent JavaScript/JSON float rounding — bigint (TypeScript), BigInteger/BigDecimal (Java), arbitrary Integer/Decimal (Python/Ruby), ulong/Int128 (.NET), uint64 (Rust/Go/C++), and raw string text carry full precision intact.
  2. Strict NULL Separation: SQL NULL is never flattened into "" or 0 across either SpydWire binary decoding or ORM hydration.
  3. Fail-Closed TLS Verification: Non-loopback plaintext connections are refused. Supply ca (explicit CA anchor) and server_name (SNI / SAN verification), plus client_cert / client_key for mutual TLS.
  4. Uniform Authorization: Every driver session authenticates via Bearer Token (SPD2 token), 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 for telemetry rollups
  • Docker Compose provisioning with CAP_IPC_LOCK and automated schema migration (./scripts/setup-db.sh)