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

feat(session): Use merge instead of add #22

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Salamek
Copy link

@Salamek Salamek commented Mar 5, 2023

This allows to update records by primary key, should solve #6
See merge docs https://docs.sqlalchemy.org/en/20/orm/session_api.html#sqlalchemy.orm.Session.merge

  • Adds load_list function to allow loading fixtures from list type (this allows use of other parsers then yml
  • Allows use of key in nested objects:
- Form:
  - id: 'fdc76171-e06a-499d-9f33-42768b8481f1'
    name: 'Test'
    form_steps:
        - __key__: 'my_key'  # Works now!
          name: 'Step 1'
        - name: 'Step 2'
          parent_step: 'my_key'

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.

1 participant