Context
In PR #47 (BLOB_STORAGE backend), the size field is defined as FieldType.INTEGER. However, file sizes can exceed the 32-bit integer range (2^31 - 1 ≈ 2.1 GB), so a LONG (64-bit integer) type would be more appropriate.
Proposed Changes
- Add
LONG to the FieldType enum in the protocol types.
- Update the
size field definition in src/backends/blob_storage/__init__.py to use FieldType.LONG.
- Ensure all backend implementations handle the LONG type correctly (e.g., RDBMS mapping to
BIGINT).
References
Context
In PR #47 (BLOB_STORAGE backend), the
sizefield is defined asFieldType.INTEGER. However, file sizes can exceed the 32-bit integer range (2^31 - 1 ≈ 2.1 GB), so a LONG (64-bit integer) type would be more appropriate.Proposed Changes
LONGto theFieldTypeenum in the protocol types.sizefield definition insrc/backends/blob_storage/__init__.pyto useFieldType.LONG.BIGINT).References