◐ Shell
clean mode source ↗

gh-84943: Add support for 'directonly' and 'innocuous' flags for user-defined functions by jbosboom · Pull Request #149961 · python/cpython

Based on #20398, hence Co-authored-by. The flags have also been added to create_window_function, which did not exist at the time. apply_deterministic_flag_if_supported was dropped because all stable Python versions require SQLite version 3.15.2 or later. The other two apply-flag-if-supported functions were modified to only raise when the flag is True. The tests were moved to their new location with updated style and some unnecessary SQL statements were dropped. The documentation now links to the SQLite documentation, which seems to be the prevailing style, rather than repeating it inline.