Skip to content

0.12.29

Compare
Choose a tag to compare
@uriyyo uriyyo released this 01 Oct 12:36
· 50 commits to main since this release
894b38c
  • Fix issue with sqlalchemy scalar select detection. #1313
  • Add unwrap mode for sqlalchemy ext. #1316

New Feature

sqlalchemy unwrap_mode allows you to control how to unwrap result rows before passing them to items transformer
and page creation.

unwrap_mode can be set to one of the following values:

  • None - will use auto mode for default queries, and legacy for text and from_statement queries.
  • "auto" - will unwrap only in case if you are selecting single model.
  • "legacy" - will use old behavior, where row will be unwrapped if it contains only one element.
  • "unwrap" - will always unwrap row, even if it contains multiple elements.
  • "no-unwrap" - will never unwrap row, even if it contains only one element.