Expand description
Metadata about tables, columns, and other objects from SQL Server.
§Tables
When creating a SQL Server source we will query system tables from the
upstream instance to get a SqlServerTableRaw. From this raw information
we create a SqlServerTableDesc which describes how the upstream table
will get represented in Materialize.
§Rows
With a SqlServerTableDesc and an mz_repr::RelationDesc we can
create a SqlServerRowDecoder which will be used when running a source
to efficiently decode tiberius::Rows into mz_repr::Rows.
Modules§
- proto_
sql_ server_ column_ desc - Nested message and enum types in
ProtoSqlServerColumnDesc. - proto_
sql_ server_ table_ constraint - Nested message and enum types in
ProtoSqlServerTableConstraint.
Structs§
- Proto
SqlServer Column Desc - Proto
SqlServer Table Constraint - Proto
SqlServer Table Desc - SqlServer
Capture Instance Raw - Raw capture instance metadata.
- SqlServer
Column Desc - Description of a column from a table in Microsoft SQL Server.
- SqlServer
Column Raw - Raw metadata for a column from a table in Microsoft SQL Server.
- SqlServer
Qualified Table Name - Partially qualified name of a table from Microsoft SQL Server.
- SqlServer
RowDecoder - A decoder from
tiberius::Rowtomz_repr::Row. - SqlServer
Table Constraint - SQL Server table constraint.
- SqlServer
Table Constraint Raw - Raw metadata for a table constraint.
- SqlServer
Table Desc - Materialize compatible description of a table in Microsoft SQL Server.
- SqlServer
Table Raw - Raw metadata for a table from Microsoft SQL Server.
- Unsupported
Data Type - The raw datatype from SQL Server is not supported in Materialize.
Enums§
- SqlServer
Column Decode Type - Rust type that we should use when reading a column from SQL Server.
- SqlServer
Table Constraint Type - SQL Server table constraint type (e.g. PRIMARY KEY, UNIQUE, etc.) See https://learn.microsoft.com/en-us/sql/relational-databases/system-information-schema-views/table-constraints-transact-sql?view=sql-server-ver17
Functions§
- parse_
data_ 🔒type - Parse a raw data type from SQL Server into a Materialize
SqlScalarType. - tiberius_
numeric_ 🔒to_ mz_ numeric - Numerics in SQL Server have a maximum precision of 38 digits, where
Numerics in Materialize have a maximum precision of 39 digits, so this conversion is infallible.