You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.
Currently atk4/data don't support blob field type.
Array and object types are almost the same in atk/data. They both store somehow serialized (as text - json, php serialize or any other textual conversion) structure. So on DB side it's a huge text - longtext or cblob in some engines. It's not binary lob.
Blob could be useful if we wanted to store files (for example, user profile avatar image) in DB table field. Yes, then it could be useful, but currently we don't support that in atk4/data by default. As workaround it's possible to use bin2hex in custom serialize callback to convert binary data to textual before saving in db.
But if we look into future, then probably atk/data should have at least one such binary field type.
Add mapping for blob to/from persistence
The text was updated successfully, but these errors were encountered: