Peewee连接在PostgreSQL 9.4和JSON领域集中支持

问题描述:

知道了已经存在于Peewee connection pooling for Postgres支持,也为JSON fields in Postgres支持,我想知道,如果PooledPostgresqlDatabase实际上支持的JSON领域也一样,如果不是如何我能做到这一点:PostgresqlExtDatabasePeewee连接在PostgreSQL 9.4和JSON领域集中支持

有一个名为PooledPostgresqlExtDatabase同时支持集中的方式PostgresqlExtDatabase的确但连接池支持的类:

from playhouse.pool import PooledPostgresqlExtDatabase 

db = PooledPostgresqlExtDatabase(
    'my_database', 
    max_connections=8, 
    stale_timeout=300, 
    user='postgres')