Background

David Thomas 2017/01/27

Create Database


In [ ]:
DATABASE = 'sqlite:/Users/user/Code/MassLuminosity/mass_luminosity.db'

from sqlalchemy import Column, ForeignKey, Integer, String
from sqlalchemy.ext.declarative import declarative_base

Base = declarative_base()

class Likelihood(Base):
    __tablename__ = 'likelihood'
    id = Column(Integer, primary_key=True)
    
    
#Can probably hold off on this for now
class Posterior(Base):
    __tablename__ = 'posterior'