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

Make source manager available to connectors. #414

Merged
merged 1 commit into from
May 14, 2024

Conversation

andresgutgon
Copy link
Contributor

What?

For future changes, we need access to SourceManager from the connectors. With this change we be able to do this.source.manager inside the connectors

⚠️ ⚠️ ⚠️ Refactor ⚠️ ⚠️ ⚠️

I removed 🔥 @latitude-data/base-connector 🔥 and moved the code under @latitude-data/source-manager. I did this to avoid cyclic dependencies between all this code that is part of the same thing in the end.

Issue ticket number and link

Related with #369

Checklist before requesting a review

  • Pass SourceManager to Source
  • Pass Source to connectors when are initialized.
  • Everything should work as before

Copy link

changeset-bot bot commented May 14, 2024

🦋 Changeset detected

Latest commit: b045978

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 15 packages
Name Type
@latitude-data/clickhouse-connector Major
@latitude-data/databricks-connector Major
@latitude-data/postgresql-connector Major
@latitude-data/snowflake-connector Major
@latitude-data/bigquery-connector Major
@latitude-data/athena-connector Major
@latitude-data/duckdb-connector Major
@latitude-data/sqlite-connector Major
@latitude-data/mssql-connector Major
@latitude-data/test-connector Major
@latitude-data/mysql-connector Major
@latitude-data/trino-connector Major
@latitude-data/source-manager Major
@latitude-data/cli Minor
@latitude-data/server Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@andresgutgon andresgutgon force-pushed the feature/make-source-available-to-connectors branch from 95cd163 to b4bdd2a Compare May 14, 2024 08:53
We need for future changes to be able to access and build queries from
any connector when resolving the queries in a specific connector. To
make our life easier we pass the source manager through the Source to
the connector
@andresgutgon andresgutgon force-pushed the feature/make-source-available-to-connectors branch from b4bdd2a to b045978 Compare May 14, 2024 08:56
@andresgutgon andresgutgon merged commit 5388504 into canary May 14, 2024
4 checks passed
@andresgutgon andresgutgon deleted the feature/make-source-available-to-connectors branch May 14, 2024 09:34
@github-actions github-actions bot locked and limited conversation to collaborators May 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant