知道已经支持Peewee中的Postgres连接池,并且还支持Postgres中的JSON字段,我想知道是否PooledPostgresqlDatabase实际上也支持这些JSON字段,如果不是,我该如何做才能使其作为PostgresqlExtDatabase。
有一个名为PooledPostgresqlExtDatabase的类,它以PostgresqlExtDatabase的方式支持池化,但支持连接池化:
from playhouse.pool import PooledPostgresqlExtDatabase
db = PooledPostgresqlExtDatabase(
'my_database',
max_connections=8,
stale_timeout=300,
user='postgres')