pub struct SqlServerTableDesc {
pub schema_name: Arc<str>,
pub name: Arc<str>,
pub columns: Arc<[SqlServerColumnDesc]>,
}
Expand description
Materialize compatible description of a table in Microsoft SQL Server.
See SqlServerTableRaw
for the raw information we read from the upstream
system.
Fields§
§schema_name: Arc<str>
Name of the schema that the table belongs to.
name: Arc<str>
Name of the table.
columns: Arc<[SqlServerColumnDesc]>
Columns for the table.
Implementations§
Source§impl SqlServerTableDesc
impl SqlServerTableDesc
Sourcepub fn try_new(raw: SqlServerTableRaw) -> Result<Self, SqlServerError>
pub fn try_new(raw: SqlServerTableRaw) -> Result<Self, SqlServerError>
Try creating a SqlServerTableDesc
from a SqlServerTableRaw
description.
Returns an error if the raw table description is not compatible with Materialize.
Sourcepub fn decoder(
&self,
desc: &RelationDesc,
) -> Result<SqlServerRowDecoder, SqlServerError>
pub fn decoder( &self, desc: &RelationDesc, ) -> Result<SqlServerRowDecoder, SqlServerError>
Returns a SqlServerRowDecoder
which can be used to decode tiberius::Row
s into
mz_repr::Row
s that match the shape of the provided RelationDesc
.
Trait Implementations§
Source§impl Arbitrary for SqlServerTableDesc
impl Arbitrary for SqlServerTableDesc
Source§type Parameters = (<Arc<str> as Arbitrary>::Parameters, <Arc<str> as Arbitrary>::Parameters, <Arc<[SqlServerColumnDesc]> as Arbitrary>::Parameters)
type Parameters = (<Arc<str> as Arbitrary>::Parameters, <Arc<str> as Arbitrary>::Parameters, <Arc<[SqlServerColumnDesc]> as Arbitrary>::Parameters)
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.Source§type Strategy = Map<(<Arc<str> as Arbitrary>::Strategy, <Arc<str> as Arbitrary>::Strategy, <Arc<[SqlServerColumnDesc]> as Arbitrary>::Strategy), fn(_: (Arc<str>, Arc<str>, Arc<[SqlServerColumnDesc]>)) -> SqlServerTableDesc>
type Strategy = Map<(<Arc<str> as Arbitrary>::Strategy, <Arc<str> as Arbitrary>::Strategy, <Arc<[SqlServerColumnDesc]> as Arbitrary>::Strategy), fn(_: (Arc<str>, Arc<str>, Arc<[SqlServerColumnDesc]>)) -> SqlServerTableDesc>
The type of
Strategy
used to generate values of type Self
.Source§fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
Source§impl Clone for SqlServerTableDesc
impl Clone for SqlServerTableDesc
Source§fn clone(&self) -> SqlServerTableDesc
fn clone(&self) -> SqlServerTableDesc
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SqlServerTableDesc
impl Debug for SqlServerTableDesc
Source§impl<'de> Deserialize<'de> for SqlServerTableDesc
impl<'de> Deserialize<'de> for SqlServerTableDesc
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SqlServerTableDesc
impl PartialEq for SqlServerTableDesc
Source§impl RustType<ProtoSqlServerTableDesc> for SqlServerTableDesc
impl RustType<ProtoSqlServerTableDesc> for SqlServerTableDesc
Source§fn into_proto(&self) -> ProtoSqlServerTableDesc
fn into_proto(&self) -> ProtoSqlServerTableDesc
Convert a
Self
into a Proto
value.Source§fn from_proto(proto: ProtoSqlServerTableDesc) -> Result<Self, TryFromProtoError>
fn from_proto(proto: ProtoSqlServerTableDesc) -> Result<Self, TryFromProtoError>
Source§fn into_proto_owned(self) -> Proto
fn into_proto_owned(self) -> Proto
A zero clone version of
Self::into_proto
that types can
optionally implement, otherwise, the default implementation
delegates to Self::into_proto
.Source§impl Serialize for SqlServerTableDesc
impl Serialize for SqlServerTableDesc
impl Eq for SqlServerTableDesc
impl StructuralPartialEq for SqlServerTableDesc
Auto Trait Implementations§
impl Freeze for SqlServerTableDesc
impl RefUnwindSafe for SqlServerTableDesc
impl Send for SqlServerTableDesc
impl Sync for SqlServerTableDesc
impl Unpin for SqlServerTableDesc
impl UnwindSafe for SqlServerTableDesc
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
Mutably borrows from an owned value. Read more
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
Compare self to
key
and return true
if they are equal.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
Compare self to
key
and return true
if they are equal.Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§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>
Wrap the input message
T
in a tonic::Request
Source§impl<T, U> OverrideFrom<Option<&T>> for Uwhere
U: OverrideFrom<T>,
impl<T, U> OverrideFrom<Option<&T>> for Uwhere
U: OverrideFrom<T>,
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
Source§fn into_rust(self) -> Result<R, TryFromProtoError>
fn into_rust(self) -> Result<R, TryFromProtoError>
See
RustType::from_proto
.Source§fn from_rust(rust: &R) -> P
fn from_rust(rust: &R) -> P
See
RustType::into_proto
.Source§impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
Source§fn plus_equals(&mut self, rhs: &&'a S)
fn plus_equals(&mut self, rhs: &&'a S)
The method of
std::ops::AddAssign
, for types that do not implement AddAssign
.