Skip to content

Commit 2f38734

Browse files
Fix dtype table: longblob is native type for raw bytes
Correct the dtype documentation to clarify: - longblob is a native MySQL type for raw binary data (not serialized) - <djblob> should be used as dtype for serialized Python objects Co-authored-by: dimitri-yatsenko <dimitri@datajoint.com>
1 parent 21dd700 commit 2f38734

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/src/design/tables/customtype.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,13 @@ The `dtype` property specifies how data is stored in the database:
162162
| dtype | Use Case | Stored Format |
163163
|-------|----------|---------------|
164164
| `"bytes"` | Raw binary data (core type) | Binary (LONGBLOB/BYTEA) |
165-
| `"longblob"` | Complex Python objects, arrays | Serialized binary |
165+
| `"longblob"` | Raw binary data (native type, MySQL-specific) | Binary |
166166
| `"json"` | JSON-serializable data | JSON string |
167167
| `"varchar(N)"` | String representations | Text |
168168
| `"int"` | Integer identifiers | Integer |
169169
| `"blob@store"` | Large objects in external storage | UUID reference |
170170
| `"object"` | Files/folders in object storage | JSON metadata |
171+
| `"<djblob>"` | Serialized Python objects | DJ blob format |
171172
| `"<other_type>"` | Chain to another custom type | Varies |
172173

173174
### External Storage

0 commit comments

Comments
 (0)