Commit 8218fa7
committed
Update Codec API with get_dtype(is_external) method
- Codec.get_dtype(is_external) now determines storage type based on
whether @ modifier is present in the declaration
- BlobCodec returns "bytes" for internal, "<hash>" for external
- AttachCodec returns "bytes" for internal, "<hash>" for external
- HashCodec, ObjectCodec, FilepathCodec enforce external-only usage
- Consolidates <blob>/<xblob> and <attach>/<xattach> into unified codecs
- Adds backward compatibility aliases for old type names
- Updates __init__.py with new codec exports (Codec, list_codecs, get_codec)1 parent 2dde3d9 commit 8218fa7
File tree
3 files changed
+410
-484
lines changed- src/datajoint
3 files changed
+410
-484
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
48 | 53 | | |
49 | 54 | | |
50 | 55 | | |
| |||
61 | 66 | | |
62 | 67 | | |
63 | 68 | | |
64 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
65 | 77 | | |
66 | 78 | | |
67 | 79 | | |
| |||
0 commit comments