On Tue, Apr 19, 2011 at 5:06 PM, Pherl Liu <[email protected]> wrote: > We only have auto-generated API docs. > http://code.google.com/apis/protocolbuffers/docs/reference/cpp/index.html > BTW, to implement such a database, you can actually build it using protobuf > APIs. Probably don't need to dig into protobuf implementations. >
Thank you Pherl. I will go through the apidocs. The reason why I thought the file-format should be known is because, the search will be faster that way. I can go through all the records (?) in the protocol buffer file iteratively using the APIs but I believe that will be slower. I was wondering if I could implement a cursor based API which will return matching record for a passed query, one at a time, until there are no more matches, etc. Sankar > On Tue, Apr 19, 2011 at 7:28 PM, Sankar P <[email protected]> > wrote: >> >> On Thu, Apr 7, 2011 at 8:07 PM, Sankar P <[email protected]> >> wrote: >> > On Thu, Apr 7, 2011 at 3:06 PM, Pherl Liu <[email protected]> wrote: >> >> protobuf officially does not provide this function. There might be some >> >> 3rd >> >> party libraries though. >> >> >> > >> > I did a search and could not find any. Have you (or anyone in the >> > list) come across any such tools/libraries ? If I am ready to >> > implement it, what will be the best place to begin understanding about >> > the protocolbuffer ? The google code page seem to contain links which >> > are more suited for consumers of protocolbuffers than the >> > architecture/implementation of it. Any help is appreciated. Thanks. >> > >> >> >> Any pointers to such documents ? I checked out the protocolbuffers >> sources. But I could not find any docs on the file-format. >> >> Also, are there any known tools to synchronize protocol buffers >> between two places ? (Say I am storing my browser history in >> protocolbuffers and synchronizing it with a server) >> >> Thanks for any help. >> >> > >> >> On Thu, Apr 7, 2011 at 4:38 PM, Sankar <[email protected]> >> >> wrote: >> >>> >> >>> Hi, >> >>> >> >>> I am trying to use protocolbuffers as a storage database for my >> >>> application, as it provides data-format-versioning which is not >> >>> available in other storage options such as sqlite. However, I want to >> >>> know if there is a way we can search inside a protocolbuffers file >> >>> (like a select query with WHERE clause on a sqlite db). Can someone >> >>> help me with this ? >> >>> >> >>> Please CC me in the replies. Thanks. >> >>> >> >>> Sankar >> >>> >> >>> -- >> >>> You received this message because you are subscribed to the Google >> >>> Groups >> >>> "Protocol Buffers" group. >> >>> To post to this group, send email to [email protected]. >> >>> To unsubscribe from this group, send email to >> >>> [email protected]. >> >>> For more options, visit this group at >> >>> http://groups.google.com/group/protobuf?hl=en. >> >>> >> >> >> >> >> > >> > >> > >> > -- >> > Sankar P >> > http://psankar.blogspot.com >> > >> >> >> >> -- >> Sankar P >> http://psankar.blogspot.com > > -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.
