pub enum TransportMode {
Ipc,
Tcp,
}Expand description
Parameters for configuring the Hyper server.
When starting a HyperProcess, a set of default parameters are automatically applied
(matching the C++ HyperProcess behavior):
| Parameter | Default Value | Description |
|---|---|---|
init_user | tableau_internal_user | Initial user for the Hyper instance |
language | en_US | Default language setting |
log_config | file,json,all,hyperd,0 | Log configuration |
date_style | MDY | Date format (Month-Day-Year) |
date_style_lenient | false | Strict date parsing |
log_dir | Current directory | Log file directory |
no_password | (flag) | Disable password requirement |
skip_license | (flag) | Skip license check |
default_database_version | 3 | File format version for newly created .hyper databases (v3 adds 128-bit NUMERIC support, required for DECIMAL128 parquet columns) |
To disable these defaults, add the no_default_parameters key (for example
params.set("no_default_parameters", "") via Parameters::set.
§Listen Modes
Use set_listen_mode to configure which protocols Hyper listens on:
use hyperdb_api::{ListenMode, Parameters};
// gRPC only (for Arrow-based queries)
let mut params = Parameters::new();
params.set_listen_mode(ListenMode::Grpc { port: 0 });
// Both libpq and gRPC
let mut params = Parameters::new();
params.set_listen_mode(ListenMode::Both { grpc_port: 7484 });§Example
use hyperdb_api::Parameters;
let mut params = Parameters::new();
params.set("log_file_size_limit", "100k");
params.set("log_file_max_count", "7");§Transport Modes
Use set_transport_mode to control whether Hyper uses
TCP or IPC (Unix Domain Sockets):
use hyperdb_api::{Parameters, TransportMode};
let mut params = Parameters::new();
params.set_transport_mode(TransportMode::Tcp); // Force TCP instead of IPCTransport mode for HyperProcess connections.
Controls whether the server uses TCP or Unix Domain Sockets (IPC) for connections. On Unix systems, IPC is the default for better local performance. On Windows, TCP is always used.
Variants§
Ipc
Use IPC (Unix Domain Sockets on Unix, Named Pipes on Windows). This is the default mode and provides better performance for local connections.
Tcp
Use TCP/IP connections. Required when connecting from remote clients or when IPC is not available.
Trait Implementations§
Source§impl Clone for TransportMode
impl Clone for TransportMode
Source§fn clone(&self) -> TransportMode
fn clone(&self) -> TransportMode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TransportMode
impl Debug for TransportMode
Source§impl Default for TransportMode
impl Default for TransportMode
Source§fn default() -> TransportMode
fn default() -> TransportMode
Source§impl PartialEq for TransportMode
impl PartialEq for TransportMode
Source§fn eq(&self, other: &TransportMode) -> bool
fn eq(&self, other: &TransportMode) -> bool
self and other values to be equal, and is used by ==.impl Copy for TransportMode
impl Eq for TransportMode
impl StructuralPartialEq for TransportMode
Auto Trait Implementations§
impl Freeze for TransportMode
impl RefUnwindSafe for TransportMode
impl Send for TransportMode
impl Sync for TransportMode
impl Unpin for TransportMode
impl UnsafeUnpin for TransportMode
impl UnwindSafe for TransportMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request