Tie dictionary to database table?

Peter Heitzer peter.heitzer at rz.uni-regensburg.de
Fri Jun 10 03:30:48 EDT 2016


Michael Selik <michael.selik at gmail.com> wrote:
>On Thu, Jun 9, 2016 at 9:10 AM justin walters <walters.justin01 at gmail.com>
>wrote:

>> It looks like you might be looking for an ORM. Have you checked out
>> sqlalchemy?
>>

>An ORM might be overkill. If you just want a persistent dictionary, just
>use the shelve module. https://docs.python.org/3/library/shelve.html
That looks like tie in Perl. Unfortunately I have to use mysql as database
and I need concurrent read/write as the table may be modified by other
processes.
Meanwhile I have analized my demans a bit and modified the task so that I
need not read values but rather make updates to the tables.



-- 
Dipl.-Inform(FH) Peter Heitzer, peter.heitzer at rz.uni-regensburg.de



More information about the Python-list mailing list