pub struct AttachSpec {
pub alias: String,
pub kind: String,
pub path: Option<String>,
pub writable: Option<bool>,
pub on_missing: Option<String>,
}Expand description
One database to attach for the duration of a single copy_query
call. Same kind-tagged shape as AttachDatabaseParams so the
vocabulary stays consistent once remote kinds (tcp / grpc)
arrive.
Fields§
§alias: StringAlias used to qualify tables from this attachment (e.g. src
lets you reference src.public.customers). Must be a SQL
identifier and cannot be local.
kind: StringAttachment kind. Only "local_file" is supported today; "tcp"
(standard remote hyperd) and "grpc" (Data 360 read-only Hyper)
are planned.
path: Option<String>Absolute path to a .hyper file. Required when kind == "local_file"; ignored otherwise.
writable: Option<bool>If true, allow writes into this attachment. Defaults to
false. Must also satisfy the server’s --read-only flag (it
always wins).
on_missing: Option<String>What to do when kind == "local_file" and path does not yet
exist. "error" (default) returns FILE_NOT_FOUND; "create"
issues CREATE DATABASE IF NOT EXISTS first and then attaches
the resulting empty file. "create" requires writable: true
and is rejected when the server is --read-only.
Trait Implementations§
Source§impl Clone for AttachSpec
impl Clone for AttachSpec
Source§fn clone(&self) -> AttachSpec
fn clone(&self) -> AttachSpec
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 AttachSpec
impl Debug for AttachSpec
Source§impl<'de> Deserialize<'de> for AttachSpec
impl<'de> Deserialize<'de> for AttachSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for AttachSpec
impl JsonSchema for AttachSpec
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for AttachSpec
impl RefUnwindSafe for AttachSpec
impl Send for AttachSpec
impl Sync for AttachSpec
impl Unpin for AttachSpec
impl UnsafeUnpin for AttachSpec
impl UnwindSafe for AttachSpec
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<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