I've been playing a bit with peewee and had to add a few things to inspect a Postgresql database within a schema.
I haven't done much testing apart from this local Postgresql (a MusicBrainz DB mirror).
Add schema support for Postgresql
probably better rewritten as:
res = super(PostgresqlDatabase, self).connect()
if self._schema is not None:
self.execute('SET search_path TO %s', (self._schema,))
Is this logic redundant if its built into the postgresqldatabase?
I ran w/some of your ideas and have added functionality for switching search path and specifying schema when introspecting:
I'll continue learning peewee.