is there a standard format to save flatbuffers files that include the schema of the file?

63 views
Skip to first unread message

desarrol...@gmail.com

unread,
Mar 6, 2018, 11:34:47 AM3/6/18
to FlatBuffers
is there a standard format to save flatbuffers files that include the schema of the file?

The idea is to have self-descriptive flatbuffers files, but with fixed schema not schema-less as flex-buffers... exists that format?

Wouter van Oortmerssen

unread,
Mar 8, 2018, 12:34:57 PM3/8/18
to desarrol...@gmail.com, FlatBuffers
There is no format that includes both schema and wire data, as for most applications that would be very inefficient.

Depending on what you're trying to do, the binary schema format may be appropriate, since it is also a FlatBuffer. So now you just need a way to save two FlatBuffers to one file. I'd recommend keeping them seperate though.

On Tue, Mar 6, 2018 at 8:34 AM, <desarrol...@gmail.com> wrote:
is there a standard format to save flatbuffers files that include the schema of the file?

The idea is to have self-descriptive flatbuffers files, but with fixed schema not schema-less as flex-buffers... exists that format?

--
You received this message because you are subscribed to the Google Groups "FlatBuffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flatbuffers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Wouter van Oortmerssen

unread,
Mar 8, 2018, 12:37:40 PM3/8/18
to desarrol...@gmail.com, FlatBuffers
If you want self-describing data, using schemas at runtime is actually pretty clumsy.. you might find FlexBuffers more appropriate, which is self-describing without a schema.

desarrol...@gmail.com

unread,
Mar 13, 2018, 11:59:15 AM3/13/18
to FlatBuffers
Thanks you for the answer. In my use case, the fixed cost from save the schema is minimal compared with the data that schema describe.


El jueves, 8 de marzo de 2018, 12:34:57 (UTC-5), Wouter van Oortmerssen escribió:
There is no format that includes both schema and wire data, as for most applications that would be very inefficient.

Depending on what you're trying to do, the binary schema format may be appropriate, since it is also a FlatBuffer. So now you just need a way to save two FlatBuffers to one file. I'd recommend keeping them seperate though.
On Tue, Mar 6, 2018 at 8:34 AM, <desarrol...@gmail.com> wrote:
is there a standard format to save flatbuffers files that include the schema of the file?

The idea is to have self-descriptive flatbuffers files, but with fixed schema not schema-less as flex-buffers... exists that format?

--
You received this message because you are subscribed to the Google Groups "FlatBuffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flatbuffers...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages