Miksus / red-bird

Repository Patterns for Python
https://red-bird.readthedocs.io
MIT License
163 stars 22 forks source link

BUG: SQLRepo create table types and default fields in add #40

Closed Miksus closed 1 year ago

Miksus commented 1 year ago

This PR adds support for typing types and nullables in table creation. Also fixes the insertion of fields with defaults in insertion.

codecov-commenter commented 1 year ago

Codecov Report

Base: 90.60% // Head: 90.80% // Increases project coverage by +0.20% :tada:

Coverage data is based on head (3ce136a) compared to base (1819ac2). Patch coverage: 86.20% of modified lines in pull request are covered.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #40 +/- ## ========================================== + Coverage 90.60% 90.80% +0.20% ========================================== Files 16 16 Lines 1032 1055 +23 ========================================== + Hits 935 958 +23 Misses 97 97 ``` | [Impacted Files](https://codecov.io/gh/Miksus/red-bird/pull/40?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Mikael+Koli) | Coverage Δ | | |---|---|---| | [redbird/base.py](https://codecov.io/gh/Miksus/red-bird/pull/40/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Mikael+Koli#diff-cmVkYmlyZC9iYXNlLnB5) | `90.00% <ø> (+1.11%)` | :arrow_up: | | [redbird/utils/query.py](https://codecov.io/gh/Miksus/red-bird/pull/40/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Mikael+Koli#diff-cmVkYmlyZC91dGlscy9xdWVyeS5weQ==) | `100.00% <ø> (+3.77%)` | :arrow_up: | | [redbird/repos/sqlalchemy.py](https://codecov.io/gh/Miksus/red-bird/pull/40/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Mikael+Koli#diff-cmVkYmlyZC9yZXBvcy9zcWxhbGNoZW15LnB5) | `93.67% <86.20%> (-1.56%)` | :arrow_down: | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Mikael+Koli). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Mikael+Koli)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.