Quotes the provided string using '[]' to match SQL Server `QUOTENAME` function. This form of quotes is unaffected by the SQL Server setting `SET QUOTED_IDENTIFIER`. See: - -
(ident: &str)
| 946 | /// - <https://learn.microsoft.com/en-us/sql/t-sql/functions/quotename-transact-sql?view=sql-server-ver17> |
| 947 | /// - <https://learn.microsoft.com/en-us/sql/t-sql/statements/set-quoted-identifier-transact-sql?view=sql-server-ver17> |
| 948 | pub fn quote_identifier(ident: &str) -> String { |
| 949 | let mut quoted = ident.replace(']', "]]"); |
| 950 | quoted.insert(0, '['); |
| 951 | quoted.push(']'); |
| 952 | quoted |
| 953 | } |
| 954 | |
| 955 | pub trait SqlServerCdcMetrics { |
| 956 | /// Called before the table lock is aquired |