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

Unify SQL DB migration subsystem (for Postgres and SQLite) #3134

Merged
merged 12 commits into from
Sep 20, 2023

Conversation

ItalyPaleAle
Copy link
Contributor

This PR expands internal/component/sql to also add a unified subsystem to perform migrations for SQL databases. Currently, Postgres and SQLite are supported and have been migrated to that.

Related changes that are included:

  • There is now an adapter used in internal/component/sql that works with both database/sql and pgx. This has been added to the garbage collector too, to simplify the code
  • Some updates to internal/component/postgresql to remove the dbAccess layer which was adding complexity for no benefit (it didn't even help with unit tests)

Overall this PR moves around a bunch of code, but doesn't really change much how things work.

@ItalyPaleAle ItalyPaleAle requested review from a team as code owners September 15, 2023 21:35
@ItalyPaleAle
Copy link
Contributor Author

/ok-to-test

@dapr-bot

This comment was marked as resolved.

@dapr-bot

This comment was marked as resolved.

@dapr-bot

This comment was marked as resolved.

Copy link
Member

@berndverst berndverst left a comment

Choose a reason for hiding this comment

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

Lint: Gofumpt

@berndverst
Copy link
Member

CockroachDB now fails @ItalyPaleAle

Signed-off-by: ItalyPaleAle <[email protected]>
Signed-off-by: ItalyPaleAle <[email protected]>
@ItalyPaleAle
Copy link
Contributor Author

@berndverst thanks. All issues (linter & tests) should be fixed now

@ItalyPaleAle
Copy link
Contributor Author

/ok-to-test

@dapr-bot
Copy link
Collaborator

Complete Build Matrix

The build status is currently not updated here. Please visit the action run below directly.

🔗 Link to Action run

Commit ref: 8dd6e1e

@dapr-bot
Copy link
Collaborator

dapr-bot commented Sep 15, 2023

Components certification test

🔗 Link to Action run

Commit ref: 8dd6e1e

❌ Some certification tests failed

These tests failed:

  • pubsub.gcp.pubsub
  • state.gcp.firestore

@dapr-bot
Copy link
Collaborator

dapr-bot commented Sep 15, 2023

Components conformance test

🔗 Link to Action run

Commit ref: 8dd6e1e

✅ All conformance tests passed

All tests have reported a successful status

ItalyPaleAle added a commit to ItalyPaleAle/dapr-components-contrib that referenced this pull request Sep 18, 2023
@ItalyPaleAle
Copy link
Contributor Author

/ok-to-test

@dapr-bot
Copy link
Collaborator

dapr-bot commented Sep 18, 2023

Components conformance test

🔗 Link to Action run

Commit ref: 5132ede

✅ All conformance tests passed

All tests have reported a successful status

@dapr-bot
Copy link
Collaborator

Complete Build Matrix

The build status is currently not updated here. Please visit the action run below directly.

🔗 Link to Action run

Commit ref: 5132ede

@dapr-bot
Copy link
Collaborator

dapr-bot commented Sep 18, 2023

Components certification test

🔗 Link to Action run

Commit ref: 5132ede

❌ Some certification tests failed

These tests failed:

  • pubsub.gcp.pubsub
  • state.gcp.firestore

ItalyPaleAle added a commit to ItalyPaleAle/dapr-components-contrib that referenced this pull request Sep 18, 2023
@berndverst
Copy link
Member

/ok-to-test

@dapr-bot
Copy link
Collaborator

Complete Build Matrix

The build status is currently not updated here. Please visit the action run below directly.

🔗 Link to Action run

Commit ref: 2b80bd8

@dapr-bot
Copy link
Collaborator

dapr-bot commented Sep 19, 2023

Components conformance test

🔗 Link to Action run

Commit ref: 2b80bd8

✅ All conformance tests passed

All tests have reported a successful status

@dapr-bot
Copy link
Collaborator

dapr-bot commented Sep 19, 2023

Components certification test

🔗 Link to Action run

Commit ref: 2b80bd8

❌ Some certification tests failed

These tests failed:

  • pubsub.gcp.pubsub
  • pubsub.pulsar
  • state.gcp.firestore

@berndverst berndverst merged commit e9911a1 into dapr:master Sep 20, 2023
4 of 5 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.

3 participants