Skip to main content

strip_provider_prefix

Function strip_provider_prefix 

Source
pub fn strip_provider_prefix(sql: &str, name: &str) -> String
Expand description

引号感知地剥离 SQL 中所有 <name>. 前缀(仅当处于标识符起始位置, 即前一个字符不是标识符或 .,且 <name>. 后紧跟标识符)。

示例:select geo.country_name from geo.public.tselect country_name from public.t; 字符串字面量 'geo.x'geography.x 不受影响。