Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhanced MSSQL metadata collection to include foreign keys and table row counts. #106

Conversation

bbsankarsh
Copy link
Contributor

No description provided.

@@ -18,7 +18,7 @@ def map_table(table: Table, generator: MssqlGenerator):
oddrn = generator.get_oddrn_by_path("tables")

map_col = partial(map_column, oddrn_generator=generator, parent_oddrn_path="tables")
dataset = DataSet(field_list=lmap(map_col, table.columns))
dataset = DataSet(rows_number=table.table_rows,field_list=lmap(map_col, table.columns))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello, @bbsankarsh. Overall LGTM.
But your code needs to be linted. To do so, you should invoke command make lint in the root odd-collectors/ directory. There are some missed spaces and blank lines that are required by PEP8 standard.

@ValeriyWorld ValeriyWorld merged commit 1a23568 into opendatadiscovery:main Sep 23, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants