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

Add documentation and possibly utilities for database migration in tests for clients of pycds #186

Open
rod-glover opened this issue Nov 15, 2023 · 0 comments

Comments

@rod-glover
Copy link
Contributor

Scenario: Your project depends on pycds. You want to test it.

Problem: You can no longer just use pycds.Base.metadata.create_all(): that creates only the tables, and pycds now includes non-table items such as views, native materialized views, and functions. The only way to get those is to migrate an empty database to the current revision. This calls for some knowledge which is not immediately available to the innocent user. For example, see the test setups for

Solution:

  • Add documentation around this
  • Export some handy fixtures
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

No branches or pull requests

1 participant