[ZODB-Dev] grab zodb dict keys by search term

Jens W. Klein jens at bluedynamics.com
Wed Dec 11 22:04:41 CET 2013


you might be interested in
https://pypi.python.org/pypi/souper/
which addresses this kind of problem

hth Jens

On 2013-12-10 23:46, Tamer Higazi wrote:
> Hi people!
>
> I am working a lot with IOB and OOB Trees as well with PersistentDict
> and PersistentList to store my Data in ZODB.
> I want to ask if there is a way to grab data from a dataset by search time.
>
> I know only the SQL way:
>
> select lower(COL1) from table1 where COL1 LIKE 'aa%'
>
> so usually I want to get the entryies only that starts with 'aa'
>
> do I have to iterate the entire dict with an interator or are there
> builtin functions that could accomplish those tasks for me ?!
>
>
> I would kindly thank you
>
>
>
> Tamer
> _______________________________________________
> For more information about ZODB, see http://zodb.org/
>
> ZODB-Dev mailing list  -  ZODB-Dev at zope.org
> https://mail.zope.org/mailman/listinfo/zodb-dev
>


-- 
Klein & Partner KG, member of BlueDynamics Alliance



More information about the ZODB-Dev mailing list