Repository navigation
v1.1.2
#24
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
NeoSQLite v1.1.2 Release Notes
Overview
This is a significant enhancement release that adds full GridFS support with MongoDB-compatible ObjectId functionality. The release includes a complete GridFS implementation that maintains backward compatibility while adding modern ObjectId support for file identification.
Highlights
MongoDB-compatible ObjectId Support for GridFS
Comprehensive GridFS Implementation
New Features
GridFS with ObjectId Support
GridFSBucketClass: Complete PyMongo-compatible GridFSBucket implementation with ObjectId supportGridFSLegacy Class: Compatible with legacy PyMongo GridFS API with ObjectId enhancementsEnhanced GridFS Capabilities
upload_from_stream(),upload_from_stream_with_id()with ObjectId return valuesdownload_to_stream(),open_download_stream()compatible with ObjectId, integer, and hex string IDsfind()operations support ObjectId queries against _id fieldGridFS Operations
upload_from_stream(),open_upload_stream(),upload_from_stream_with_id(),open_upload_stream_with_id()download_to_stream(),open_download_stream(),open_download_stream_by_name(),download_to_stream_by_name()find(),get(),list(),find_one(),exists(),_id-compatible queriesdelete(),rename(),drop(),delete_by_name(),rename_by_name()Performance Improvements
API Changes
Return Value Updates
upload_from_stream(): Now returns ObjectId instead of integer ID for MongoDB compatibilityput()in legacy GridFS: Now returns ObjectId instead of integer IDParameter Updates
GridFSBucket Methods
GridFS Legacy Methods
Technical Benefits
Migration Notes
For Existing GridFS Code
All existing GridFS code continues to work unchanged. The main change is that upload operations now return ObjectIds instead of integer IDs. If your code relies on integer IDs being returned, you'll need to update the type assertions.
Updated Code Patterns
File Schema Changes
New files will have ObjectIds in the _id field while the integer ID remains in the id field. Existing files maintain their original structure until updated.
Installation
This release represents a major step forward for NeoSQLite's file storage capabilities, providing a complete and robust GridFS implementation with full MongoDB compatibility while maintaining the performance and reliability that NeoSQLite is known for.
This discussion was created from the release v1.1.2.
All reactions