Releases: piccolo-orm/piccolo_api
0.51.0
You can now get all rows with a null / not-null value in PiccoloCRUD
.
For example, if we have a nullable column called score
:
GET /?score__operator=is_null
Likewise, to get all rows whose score is not null:
GET /?score__operator=not_null
0.50.0
0.49.0
- Added Python 3.11 support.
PiccoloCRUD
validators can now be async.- Improved logging.
- The minimum version of FastAPI is now
0.87.0
. The reason for this is Starlette made a fairly large change in version0.21.0
, which meant we had to refactor a lot of our tests, which makes it challenging to support older versions.
0.48.1
0.48.0
0.47.0
PiccoloCRUD
now handles database exceptions better. If a query fails due to a unique constraint, a 422
response code is returned, along with information about the error.
This means Piccolo Admin will show more useful debugging information when a query fails.
Thanks to @ethagnawl for reporting this issue, and @sinisaos for help prototyping a solution.
0.46.0
0.45.0
Previously you had to provide folder_name
as an argument to S3MediaStorage
.
It's now optional, as some users may choose to store their files in a bucket without a folder.
0.44.0
When uploading files to S3, we try and correctly set the content type. This now works correctly for .jpg
files (previously only .jpeg
worked for JPEGs). Thanks to @sumitsharansatsangi for adding this.
0.43.0
Fixed a bug with MediaStorage.delete_unused_files
- it was raising an exception when used with Array
columns. Thanks to @sumitsharansatsangi for reporting this issue.
When using S3MediaStorage
you can now specify additional arguments when files are uploaded (using the upload_metadata
argument), for example, setting the cache settings, and much more. Thanks to @sumitsharansatsangi, and @sinisaos for help reviewing.
S3MediaStorage(
...,
# Cache the file for 24 hours:
upload_metadata={'CacheControl': 'max-age=86400'}
)