Skip to main content

Module grpc

Module grpc 

Source
Expand description

gRPC transport types for Hyper database access.

This module provides two ways to use gRPC:

  1. Unified Connection (recommended): Use Connection::connect() with an https:// or http:// URL - transport is auto-detected.

  2. Direct gRPC: Use GrpcConnection or GrpcConnectionAsync for explicit gRPC access with full control over transfer modes and async.

§Transfer Modes

  • TransferMode::Sync - All results in one response (simple, 100s timeout)
  • TransferMode::Async - Header only, fetch results via GetQueryResult
  • TransferMode::Adaptive - First chunk inline, rest streamed (default, recommended)

Structs§

GrpcClient
Async gRPC client for Hyper database.
GrpcClientSync
Synchronous wrapper around GrpcClient.
GrpcConfig
Configuration for gRPC connections to Hyper servers.
GrpcConnection
A gRPC connection to a Hyper database (query-only).
GrpcConnectionAsync
Async gRPC connection to a Hyper database (query-only).
GrpcError
gRPC-specific error information.
GrpcQueryResult
Result of a gRPC query execution.
GrpcResultChunk
A single chunk of gRPC query results.

Enums§

TransferMode
The requested result transfer mode. By default, we recommend using ADAPTIVE for most workloads.