Skip to content

Supporting native types on SQL Server #4077

Closed

Description

@matthewmueller

We should be able to use the native types on schemas with SQL Server. Please refer to the Microsoft documentation on SQL Server types.

In general, these at least should work:

pub enum MssqlType {
    TinyInt,
    SmallInt,
    Int,
    BigInt,
    Decimal(u8, u8),
    Numeric(u8, u8),
    Money,
    SmallMoney,
    Bit,
    Float(u8),
    Real,
    Date,
    Time,
    Datetime,
    Datetime2,
    DatetimeOffset,
    SmallDatetime,
    Char(DataLength),
    VarChar(DataLength),
    Text,
    NVarChar(DataLength),
    NText,
    Binary(DataLength),
    VarBinary(DataLength),
    Image,
    XML,
}

Where DataLength can either be an integer, or MAX.

Part of an epic #2430

Activity

  1. added
    kind/feature
    topic: previewFeatures
    topic: sql server
    on Oct 28, 2020
  2. matthewmueller commented on Nov 20, 2020

    @matthewmueller
    ContributorAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featuretopic: native database typestopic: previewFeaturestopic: sql server

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions