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

Alembic migrations and mod many methods #37

Merged
merged 36 commits into from Dec 13, 2022

Conversation

codemation
Copy link
Owner

Whats Inside

  • Added insert_many, delete_many methods to DatabaseModel
  • Added support for alembic migrations
  • Improved automatic migrations with alembic

Codemation added 30 commits November 27, 2022 16:38
…bulk deletions. Added ModelField to allow for sqlalchemy_type defitions in models. Improved default, unique, primary_key, optional/required detection when building sqlalchemy.Column's using new ModelField / Unique, PrimaryKey arguments
…oved automatic migrations of non-sqlite with alembic for removal of columns / adding columns / moding columns preventing full table swaps. Added support for alembic migrations which will strictly require require alembic driven migrations
…d, capable of grouping conditionals via AND based on list grouping [[This,and,This],or,[This,and,]]
…alembic env.py would be expected to into single callable. Database.create() can be used outside an event loop when use_alembic=True as migrations should be driven by alembic. Pydbantic driven migrations now leverage alembic to reduce lift-and-shifting operations as much as possible
…bulk deletions. Added ModelField to allow for sqlalchemy_type defitions in models. Improved default, unique, primary_key, optional/required detection when building sqlalchemy.Column's using new ModelField / Unique, PrimaryKey arguments
…oved automatic migrations of non-sqlite with alembic for removal of columns / adding columns / moding columns preventing full table swaps. Added support for alembic migrations which will strictly require require alembic driven migrations
…d, capable of grouping conditionals via AND based on list grouping [[This,and,This],or,[This,and,]]
…alembic env.py would be expected to into single callable. Database.create() can be used outside an event loop when use_alembic=True as migrations should be driven by alembic. Pydbantic driven migrations now leverage alembic to reduce lift-and-shifting operations as much as possible
Codemation added 6 commits December 13, 2022 09:22
…codemation/pydbantic into alembic-migrations-and-mod-many-methods
…tion. Updated mysql / postgres credential config in tests
…tion. Updated mysql / postgres credential config in tests
…tion. Updated mysql / postgres credential config in tests
…tion. Updated mysql / postgres credential config in tests
@codemation codemation merged commit 22f2908 into main Dec 13, 2022
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.

None yet

1 participant