开发者

What does R_CURSOR mean in DB_File?

I've been trying to replace BerkeleyDB module in some old Perl with DB_File ties. Reading the DB_File documentation on CPAN is helpful, but not complete. It mentions some flags to use for put, tie, etc and I'm not sure what they mean. R_CURSOR is one of thos开发者_如何学运维e.

Specifically, if I use put with R_CURSOR, what does that mean?


Try man dbopen for the C level API which describes these flags, as DB_file is really a very thin wrapper around that.

The meaning of this flag differs according to which method you use it on, when used with put this means that a value is replaced (rather than added before or after) and needs to be used after an existing search, i.e., after using the seq function at the C level.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜