CatalogDeclarativeLdm.
change_tables_columns_case
change_tables_columns_case(upper_case: bool) -> CatalogDeclarativeLdm
Change case (to lower/upper-case) of all physical objects mapped in the LDM. Namely mapped table names and column names. Default is to change everything to upper-case. This is handy if you migrate e.g. from PostgreSQL to Snowflake, which is the only DB having upper-case as default. Instead of enclosing all (lower-cased) object names in all DDLs during the migration, you can use this function to change the case in GoodData LDM. If you specify upper-case=False, the function changes the case to lower-case (e.g. migration from Snowflake back to PostgreSQL).
Examples can be found in the DOC of modify_mapped_data_source() method.
Parameters
| name | type | description |
|---|---|---|
| upper_case | bool | If True, all tables/columns names are changes to upper-case, otherwise to lower-case. If None, noop. - helps to chaining approach, devs do not have to implement IFs if one of inputs in the chaining is optional. |
Returns
| type | description |
|---|---|
| CatalogDeclarativeLdm | self |