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

feat(presto-client): add get catalog, schema, table & column utility methods #18

Merged
merged 9 commits into from
Jan 18, 2024

Conversation

alonsovb
Copy link
Contributor

Changes

Resolves #13 and #14

  • Add the following methods:
    • getCatalogs
    • getSchemas
    • getTables
    • getColumns
  • Add types for the Table and Columns

@alonsovb alonsovb added the feature New feature or request label Jan 17, 2024
@alonsovb alonsovb requested review from yhwang and ManfredA January 17, 2024 17:38
@alonsovb alonsovb self-assigned this Jan 17, 2024
@jorgeramirezamora jorgeramirezamora changed the title feat(client): add get catalog, schema, table & column utility methods feat(presto-client): add get catalog, schema, table & column utility methods Jan 17, 2024
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I moved all private methods to the bottom, and left the public ones alphabetically sorted at the top

Copy link
Contributor

@jorgeramirezamora jorgeramirezamora left a comment

Choose a reason for hiding this comment

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

LGTM!


### Get Columns

The `getColumns` method retrieves a list of columns filtered for the given catalog and optional schema and table filters. It accepts an object with `catalog`, and optional `schema` and `table` parameters.
Copy link
Member

Choose a reason for hiding this comment

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

It would be good if you could mention the Column data type here.


### Get Tables

The `getTables` method retrieves a list of tables filtered by the given catalog and, optionally, the schema. It accepts an object containing `catalog` and optional `schema` parameters.
Copy link
Member

Choose a reason for hiding this comment

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

also the Table data type here. Thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done for both cases 👍

@alonsovb alonsovb merged commit a35bf9d into main Jan 18, 2024
4 checks passed
@alonsovb alonsovb deleted the feature/metadata-methods branch January 18, 2024 03:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Include catalog and schema fetching functions
4 participants