Hiya
Had time to look into NDB again. I have a couple of things I'd like to
add to the perl bindings that I assume are interesting for other
languages as well, but most likely should be implemented in the target
language.
1. Strings given to NdbOperation::equal(char*, char*) need to be
length-prefixed. So something like 'shard_uuid' needs to become
"\x0ashard_uuid".
2. You should close all transactions. I would like to have something
akin to auto_ptr<> for that: wrap the transaction in a native language
object that closes it unless it has been explicitly released. This
provides for exception safe releases of transactions.
I'm not even sure where I should write this code so that it integrates
with the swig-created classes, let alone what's the best way to
structure it.
Any hints?
Cheers,
Mika