Simon Willison
69a1c0d960
Fixes for Ruff>=0.16.0 ( #814 )
...
* Automated upgrades by Ruff
uvx --with 'ruff>=0.16.0' ruff check . --fix --unsafe-fixes
* Fix remaining Ruff errors with GPT-5.6 Sol high
https://gist.github.com/simonw/6da7906a9fea6e90da131c21a9055199
* Fix flake E501 long lines
* New Protocol for migrations to make ty happy
2026-07-25 14:53:12 -07:00
Simon Willison
fb93452ea8
Use double quotes not braces for tables and columns ( #678 )
...
Closes #677
2025-11-23 20:43:26 -08:00
Simon Willison
d2bcdc00c6
Swapped the order of a bunch of pytest comparisons
...
When I wrote this I thought constant == value was a better assertion. I no longer think that.
2023-08-17 18:05:13 -07:00
Andreas Madsack
c5f4f0f70c
Use jsonify_if_need for sql updates ( #204 )
...
* add failing tests for update with json values
* use jsonify_if_needed in for sql updates
Thanks, @mfa
2020-12-08 09:49:42 -08:00
Simon Willison
04ec53c039
Validate column names in more places, refs #86
2020-02-26 20:55:17 -08:00
Simon Willison
16d7008002
Applied black
2019-07-28 18:37:27 +03:00
Simon Willison
bc9c4db34b
.update(...) with no update argument sets last_pk
2019-07-28 17:59:52 +03:00
Simon Willison
4ab8d46b03
Added table.update(pk, ..., alter=True)
2019-07-28 17:51:49 +03:00
Simon Willison
5225dbb89c
Unit tests for invalid .update() pks
2019-07-28 17:46:49 +03:00
Simon Willison
455071f3c5
Unit tests for .update()
...
Also now set .last_pk to lastrowid for rowid tables.
2019-07-28 15:30:28 +03:00