INNER CODE UNIT · Python
add_columns_to_table
rohitcoder/hawk-eye · hawk_scanner/main.py:193
def add_columns_to_table(group, table):
if group in ['s3', 'firebase', 'gcs']:
table.add_column("Bucket > File Path")
elif group in ['mysql', 'postgresql']:
table.add_column("Host > Database > Table.Column")
elif group == 'redis':
table.add_column("Host > Key")
elif group == 'mongodb':
table.add_column("Host > Database > Collection > Field")
elif group == 'slack':
table.add_column("Channel Name > Message Link")
elif group == 'gdrive':
table.add_column("File Name")
elif group == 'gdrive_workspace':
table.add_column("File Name")
table.add_column("User")
elif group == 'couchdb':
table.add_column("Host > Database > Document ID > Field")