[Tutor] How to write database-agnostic python code? (Is this even possible?)

boB Stepp robertvstepp at gmail.com
Wed Sep 13 23:40:57 EDT 2017


I forgot one other thing you mentioned that I had a question about.

On Wed, Sep 13, 2017 at 2:41 AM, Alan Gauld via Tutor <tutor at python.org> wrote:

> If you limit your SQL to queries fetching raw fields you
> should find you are working with the portable subset of
> standard SQL most of the time. Basically you are just
> mapping your logic layer object models to underlying
> data tables.

My initial thoughts here are that typically a particular class would
map to a particular table and that each object instance would
correspond to a row in said table.  Is this typically how this is
done?


-- 
boB


More information about the Tutor mailing list