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: new methods for step-by-step db schema fetching #7058

Merged

Conversation

MikeNitsenko
Copy link
Contributor

@MikeNitsenko MikeNitsenko commented Aug 23, 2023

Implementation

  • Created new methods in BaseDriver to retrieve schemas list, tables list for specific schemas, columns list for specific tables
  • Added new property to driver capabilities - incrementalSchemaLoading: true | false - to indicate whether the driver supports these features or not

Drivers that support this implementation

  • Postgres
  • MySQL
  • Redshift
  • Snowflake
  • BigQuery
  • Clickhouse
  • MS SQL
  • Databricks
  • Athena

@vercel
Copy link

vercel bot commented Aug 23, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

8 Ignored Deployments
Name Status Preview Comments Updated (UTC)
examples-angular-dashboard ⬜️ Ignored (Inspect) Visit Preview Sep 15, 2023 2:51pm
examples-react-d3 ⬜️ Ignored (Inspect) Visit Preview Sep 15, 2023 2:51pm
examples-react-dashboard ⬜️ Ignored (Inspect) Visit Preview Sep 15, 2023 2:51pm
examples-react-data-table ⬜️ Ignored (Inspect) Visit Preview Sep 15, 2023 2:51pm
examples-react-highcharts ⬜️ Ignored (Inspect) Visit Preview Sep 15, 2023 2:51pm
examples-react-material-ui ⬜️ Ignored (Inspect) Visit Preview Sep 15, 2023 2:51pm
examples-react-pivot-table ⬜️ Ignored (Inspect) Visit Preview Sep 15, 2023 2:51pm
examples-vue-query-builder ⬜️ Ignored (Inspect) Visit Preview Sep 15, 2023 2:51pm

@github-actions github-actions bot added the pr:community Contribution from Cube.js community members. label Aug 23, 2023
@codecov
Copy link

codecov bot commented Aug 23, 2023

Codecov Report

Patch coverage has no change and project coverage change: -39.30% ⚠️

Comparison is base (7cb9ace) 86.33% compared to head (bccf22f) 47.04%.
Report is 16 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##           master    #7058       +/-   ##
===========================================
- Coverage   86.33%   47.04%   -39.30%     
===========================================
  Files         151      155        +4     
  Lines       32445    20715    -11730     
  Branches        0     5213     +5213     
===========================================
- Hits        28013     9745    -18268     
- Misses       4432    10653     +6221     
- Partials        0      317      +317     
Flag Coverage Δ
cube-backend 47.04% <0.00%> (?)
cubesql ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
packages/cubejs-base-driver/src/BaseDriver.ts 23.55% <0.00%> (ø)
...ackages/cubejs-base-driver/src/driver.interface.ts 50.00% <ø> (ø)

... and 304 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@MikeNitsenko MikeNitsenko force-pushed the CC-2172-new-methods-for-step-by-step-db-schema-fetching branch from 45a6482 to 5773564 Compare August 29, 2023 15:13
@MikeNitsenko MikeNitsenko marked this pull request as ready for review August 30, 2023 19:10
@MikeNitsenko MikeNitsenko requested review from a team as code owners August 30, 2023 19:10
@MikeNitsenko MikeNitsenko requested review from ovr and paveltiunov and removed request for a team August 30, 2023 19:10
Copy link
Member

@ovr ovr left a comment

Choose a reason for hiding this comment

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

LGTM

@MikeNitsenko MikeNitsenko force-pushed the CC-2172-new-methods-for-step-by-step-db-schema-fetching branch 2 times, most recently from 04e3ef6 to 9ccd5ef Compare September 11, 2023 03:35
@MikeNitsenko MikeNitsenko force-pushed the CC-2172-new-methods-for-step-by-step-db-schema-fetching branch from df9d277 to 4e10428 Compare September 12, 2023 18:43
Copy link
Member

@ovr ovr left a comment

Choose a reason for hiding this comment

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

LGTM

@MikeNitsenko MikeNitsenko merged commit a362c20 into master Sep 15, 2023
44 checks passed
@MikeNitsenko MikeNitsenko deleted the CC-2172-new-methods-for-step-by-step-db-schema-fetching branch September 15, 2023 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:community Contribution from Cube.js community members.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants