Hi, a couple questions for a new peewee scenario (using Flask and Postgres):
• Is it possible to tell peewee the db is read-only? This particular app will have no write or update access, I don't need peewee to create any tables, and there's no need for the possibility of INSERTs, UPDATEs, DELETEs, etc. (there is another question in this mailing list about read-only but it refers to a local SQLite db)
• I'd like to use a SELECT query as the source of a model. I could define a view in the DB itself but I would prefer to write that query in the app (source control, fewer db objects to manage, one location if I want to make changes in the future). Possible?
• Following the Flask application factory example, is this line all I need to get a db connection with the PG extensions (like jsonb and timestamp+tz support) AND connection pool support?
app.config['DATABASE'] = 'postgresext+pool://user:pw@server:5432/db'
• How can I define a connection that specifies a default schema within the db? I have a schema that is exclusively for this app, no other app will use this schema and this app has no reason to query other schemas. SQLAlchemy has a MetaData function to choose a schema, is there something similar in peewee?
Thanks very much for helping me get started, I think peewee is an attractive alternative to SQL-A.