Source code for database.base_model

from playhouse.postgres_ext import *
import database.config

db = PostgresqlExtDatabase(database.config.NAME,
                           user     = database.config.USER,
                           password = database.config.PASSWORD,
                           port     = database.config.PORT,
                           host     = database.config.HOST)

[docs]class BaseModel(Model): class Meta: database = db