pygcam.mcs.schema

This module defines the object-relational mapping used to interface with the SQL database (either Sqlite3 or postgresql). It is implemented using SqlAlchemy.

API

class pygcam.mcs.schema.Code(**kwargs)
class pygcam.mcs.schema.Experiment(**kwargs)
class pygcam.mcs.schema.InValue(**kwargs)
class pygcam.mcs.schema.Input(**kwargs)
class pygcam.mcs.schema.OutValue(**kwargs)
class pygcam.mcs.schema.Output(**kwargs)
class pygcam.mcs.schema.Program(**kwargs)
class pygcam.mcs.schema.Region(**kwargs)
class pygcam.mcs.schema.Run(**kwargs)
class pygcam.mcs.schema.Sim(**kwargs)
class pygcam.mcs.schema.TimeSeries(**kwargs)

N.B. Columns representing the years of interest are added dynamically as “y2005”, “y2010”, etc.