[Patches] [ python-Patches-813877 ] entry size for bsddb cursors

SourceForge.net noreply at sourceforge.net
Sun Sep 28 11:41:26 EDT 2003


Patches item #813877, was opened at 2003-09-28 08:55
Message generated for change (Settings changed) made by itamar
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=813877&group_id=5470

Category: Modules
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Itamar Shtull-Trauring (itamar)
Assigned to: Nobody/Anonymous (nobody)
>Summary: entry size for bsddb cursors

Initial Comment:
If you store large entries in a database, there is

currently no way to get their size without reading the

whole thing into memory when using cursors. Knowing the

length is useful for doing partial reads from a record. 



The patch adds a method get_current_size() that returns

the length of the data in the current entry the cursor

is pointing at. 



Implemented at the request of the Quotient developers

(divmod.org). 



I have pybsddb cvs access so I can check in the docs

there if/when this goes in to core python.



(Patch is concatenated two files, hope it's ok.)

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=813877&group_id=5470



More information about the Patches mailing list