Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #109779
| Path | csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | "Peter Heitzer" <peter.heitzer@rz.uni-regensburg.de> |
| Newsgroups | comp.lang.python |
| Subject | Re: Tie dictionary to database table? |
| Date | 10 Jun 2016 10:56:24 GMT |
| Lines | 20 |
| Message-ID | <drvkmoFdk2vU3@mid.individual.net> (permalink) |
| References | <drt5r8Ft1maU1@mid.individual.net> <CAO1D73Hb9_guWHxjer226APrFqTFM3eCWxmW4570Hpt5smvFmQ@mail.gmail.com> <CAGgTfkN6vSY-hSSqmRjxioOYJGDrO6HshNLHJGPtM_tOB8wdFw@mail.gmail.com> <mailman.126.1465512052.2306.python-list@python.org> <drv8l8Fb7nnU1@mid.individual.net> <njdqq7$cr5$1@dont-email.me> |
| X-Trace | individual.net rX6jj73gNaTe8hn/umX0iwfklmi22RrTuNQQRG4df326qKPvy6fyqN4zbD |
| X-Orig-Path | not-for-mail |
| Cancel-Lock | sha1:QaI2mfARRVvUCxo3ScSY7of55eg= |
| User-Agent | tin/2.2.1-20140504 ("Tober an Righ") (UNIX) (Linux/3.16.0-4-amd64 (x86_64)) |
| Xref | csiph.com comp.lang.python:109779 |
Show key headers only | View raw
Christian Gollwitzer <auriocus@gmx.de> wrote: >Am 10.06.16 um 09:30 schrieb Peter Heitzer: >> Michael Selik <michael.selik@gmail.com> wrote: >>> 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. >It wouldn't be that difficult to roll your own thing which does that; >you just need to define __setitem__ and __getitem__ in your class which >translates between the SQL call and the Python code. That's a good idea. -- Dipl.-Inform(FH) Peter Heitzer, peter.heitzer@rz.uni-regensburg.de
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Tie dictionary to database table? "Peter Heitzer" <peter.heitzer@rz.uni-regensburg.de> - 2016-06-09 12:30 +0000
Re: Tie dictionary to database table? justin walters <walters.justin01@gmail.com> - 2016-06-09 06:09 -0700
Re: Tie dictionary to database table? Michael Selik <michael.selik@gmail.com> - 2016-06-09 22:40 +0000
Re: Tie dictionary to database table? "Peter Heitzer" <peter.heitzer@rz.uni-regensburg.de> - 2016-06-10 07:30 +0000
Re: Tie dictionary to database table? Christian Gollwitzer <auriocus@gmx.de> - 2016-06-10 09:38 +0200
Re: Tie dictionary to database table? "Peter Heitzer" <peter.heitzer@rz.uni-regensburg.de> - 2016-06-10 10:56 +0000
Re: Tie dictionary to database table? Peter Otten <__peter__@web.de> - 2016-06-10 14:25 +0200
Re: Tie dictionary to database table? Lawrence D’Oliveiro <lawrencedo99@gmail.com> - 2016-06-16 20:59 -0700
csiph-web