Package gudusoft.gsqlparser.sqlenv
Class IdentifierProfile.VendorFlags
Object
gudusoft.gsqlparser.sqlenv.IdentifierProfile.VendorFlags
- Enclosing class:
- IdentifierProfile
Vendor-specific flags(厂商特定配置)
封装各数据库厂商的特殊配置参数
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal StringSQL Server / Azure SQL: 默认 collation 名称final intMySQL: lower_case_table_names 系统变量(0, 1, 2) 0: 大小写敏感(Unix/Linux) 1: 存储为小写,比较不敏感(Windows) 2: 存储保留原样,比较不敏感(macOS)final booleanRedshift: enable_case_sensitive_identifier 参数final booleanSnowflake: QUOTED_IDENTIFIERS_IGNORE_CASE 会话参数 -
Constructor Summary
ConstructorsConstructorDescriptionVendorFlags(int mysqlLowerCaseTableNames, String defaultCollation, boolean redshiftEnableCaseSensitive, boolean snowflakeQuotedIdentifiersIgnoreCase) 构造 vendor flags -
Method Summary
-
Field Details
-
mysqlLowerCaseTableNames
MySQL: lower_case_table_names 系统变量(0, 1, 2)- 0: 大小写敏感(Unix/Linux)
- 1: 存储为小写,比较不敏感(Windows)
- 2: 存储保留原样,比较不敏感(macOS)
-
defaultCollation
SQL Server / Azure SQL: 默认 collation 名称例如: "SQL_Latin1_General_CP1_CI_AS"
-
redshiftEnableCaseSensitive
Redshift: enable_case_sensitive_identifier 参数默认 false(与 PostgreSQL 一致)
-
snowflakeQuotedIdentifiersIgnoreCase
Snowflake: QUOTED_IDENTIFIERS_IGNORE_CASE 会话参数默认 false(quoted 标识符大小写敏感)
-
-
Constructor Details
-
VendorFlags
public VendorFlags(int mysqlLowerCaseTableNames, String defaultCollation, boolean redshiftEnableCaseSensitive, boolean snowflakeQuotedIdentifiersIgnoreCase) 构造 vendor flags- Parameters:
mysqlLowerCaseTableNames- MySQL lower_case_table_names (0, 1, 2)defaultCollation- SQL Server collation 名称redshiftEnableCaseSensitive- Redshift case sensitive 开关snowflakeQuotedIdentifiersIgnoreCase- Snowflake quoted ignore case 开关
-
-
Method Details