You are not logged in.
Pages: 1
In mORMot Framework, when creating, you only use double type, why don't use single type; sometimes using double type data will need more storage capacity.
Offline
Use of "single" is not handled, not planned, at ORM level.
If fact, we rely on a DOUBLE, as it is the native type of our SQLite3 core, and internally by our JSON marshalling.
I'm not convinced that SINGLE may be of any benefit, for parameters or DB storage.
Just use DOUBLE instead.
The only exception I can see may be for dynamic arrays with a lot of contents.
What is the scope of your use case of SINGLE?
Offline
My data structure include more TSQLRAWBlob( Dynamic Arrays) type in database. Let me think how to solve it. thanks a lot!
Offline
I've introduced TSingleDynArray, recognized as such in JSON serialization.
May help your work with "array of single" fields.
sorry, I can't find TSingleDynArray, which unit is it ?
Offline
Pages: 1