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 |
|