Skip to content

Docs: select_one_or_none behaviour raises exceptions or not, clarification ? #134

Description

@euri10

Description

hey @cofin I was thinking maybe wrongfully that select_one_or_none was never raising exceptions given its name, am I wrog in expecting that or it can ?

docstring says Raises an exception if more than one row is returned. so it looks like it can in that case

I have a case where it does raise an exception when my query had a typo in a column name, so should the docstring reflect that ?

just want to conform the intended behaviour so that I can use that safely

URL to code causing the issue

No response

MCVE

# Your MCVE code here

Steps to reproduce

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

Screenshots

"In the format of: ![SCREENSHOT_DESCRIPTION](SCREENSHOT_LINK.png)"

Logs

Package Version

main

Platform

  • Linux
  • Mac
  • Windows
  • Other (Please specify in the description above)

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions