Skip to content

Data dictionary #44

@TechSolomon

Description

@TechSolomon

Column Description (Generated Example)

import json
import csv

with open('metadata.json') as f:
    data = json.load(f)

rows = []
for table in data['tables']:
    for col in table['columns']:
        rows.append({
            'Table': table['name'],
            'Column': col['name'],
            'Type': col['type'],
            'Nullable': col['isNullable'],
            'Unique': col['isUnique'],
            'Default': col['defaultValue'],
            'Field Type': col['meta'].get('fieldType', ''),
            'Description': col['meta'].get('description', '')
        })

with open('data_dictionary.csv', 'w', newline='') as csvfile:
    writer = csv.DictWriter(csvfile, fieldnames=rows[0].keys())
    writer.writeheader()
    writer.writerows(rows)

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions