Parse a SQL type string into its components.
Examples: "NVARCHAR(255)" -> { baseName: "NVARCHAR", length: 255 } "NVARCHAR(MAX)" -> { baseName: "NVARCHAR", length: -1 } "DECIMAL(18,2)" -> { baseName: "DECIMAL", precision: 18, scale: 2 } "UNIQUEIDENTIFIER" -> { baseName: "UNIQUEIDENTIFIER" } "DATETIME2(7)" -> { baseName: "DATETIME2", precision: 7 } "FLOAT(53)" -> { baseName: "FLOAT", precision: 53 }
Optional
Parse a SQL type string into its components.
Examples: "NVARCHAR(255)" -> { baseName: "NVARCHAR", length: 255 } "NVARCHAR(MAX)" -> { baseName: "NVARCHAR", length: -1 } "DECIMAL(18,2)" -> { baseName: "DECIMAL", precision: 18, scale: 2 } "UNIQUEIDENTIFIER" -> { baseName: "UNIQUEIDENTIFIER" } "DATETIME2(7)" -> { baseName: "DATETIME2", precision: 7 } "FLOAT(53)" -> { baseName: "FLOAT", precision: 53 }