Serializes data into the Protobuf format
serializeProtobuf(data, schema [, messageType, queryFormat, useCustomSerialization, protoPath])
→ returns any
struct
row
column
struct
true
Serializes a ColdFusion query into an array of Protobuf binary data
news = queryNew("id,title",
"integer,varchar",
[ {"id":1,"title":"Dewey defeats Truman"}, {"id":2,"title":"Man walks on Moon"} ]);
newsSchema = 'syntax = "proto3";
message News { int32 id = 1; string title = 2; }';
writeDump(serializeProtobuf(news, newsSchema));
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.