Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/p/y/Pyfa-HEAD/eos/utils/scripts/eveCacheToDb.py   Pyfa(Download)
            for header in row:
                setattr(instance, header, process_value(row[header], tableclass, header))
            eos.db.gamedata_session.add(instance)
            rows += 1
        except ValueError:
    # Add versioning info to the metadata table
    for fieldname in metadata:
        eos.db.gamedata_session.add(MetaData(fieldname, metadata[fieldname]))
 
    eos.db.gamedata_session.commit()

src/p/y/Pyfa-HEAD/eos/utils/scripts/jsonToSql.py   Pyfa(Download)
                    setattr(instance, fieldMap.get(k, k), v)
 
                eos.db.gamedata_session.add(instance)
 
        eos.db.gamedata_session.commit()