[odb-users] design questions: c++ / python / sqlite
    Boris Kolpackov 
    boris at codesynthesis.com
       
    Fri May 23 12:58:36 EDT 2014
    
    
  
Hi,
MM <finjulhich at gmail.com> writes:
> The python code would fill up the existing tables that have been generated
> from ODB, with data.  I write the sqlite also from python. To do that, I
> would need to know the columns of the tables. Having the  C++ class that
> odb used to generate the table, exposed as a python class, should help for
> my python code to write to the tables?
Hm, that sounds like a very complicated way to get a list of columns in
Python. Instead, you could query the database to get the list of columns
for a table, their datatypes, etc. All the databases that ODB currently
supports have the ability to retrieve this meta-data.
Boris
    
    
More information about the odb-users
mailing list