Skip to content

Conversation

@rustprooflabs
Copy link
Owner

Closes #307.

Moves the original code for QGIS layer styles into new module, splits logic into logical functions. Add new function to update the data before loading from staging to prod.

Variety of documentation improvements.

@rustprooflabs rustprooflabs added this to the 0.7.2 milestone Apr 1, 2023
@rustprooflabs rustprooflabs added documentation Improvements or additions to documentation enhancement New feature or request labels Apr 1, 2023
db_name : str
schema_name : str
"""
LOGGER.info(f'Load QGIS styles to database {db_name}...')

Check failure

Code scanning / CodeQL

Clear-text logging of sensitive information

This expression logs [sensitive data (password)](1) as clear text.
cur.execute(sql_raw, params=params)
conn.commit()

LOGGER.info(f'Updated QGIS layer styles for {db_name}.{schema_name}')

Check failure

Code scanning / CodeQL

Clear-text logging of sensitive information

This expression logs [sensitive data (password)](1) as clear text.

if debug:
print()
print(osm2pgsql_command)

Check failure

Code scanning / CodeQL

Clear-text logging of sensitive information

This expression logs [sensitive data (password)](1) as clear text.
@rustprooflabs rustprooflabs merged commit 0b91c81 into main Apr 1, 2023
@rustprooflabs rustprooflabs deleted the qgis-styles-set-db-name branch April 1, 2023 02:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

QGIS style should not require manual update for database name

2 participants