This includeme recognizes a zodbconn.uri setting in your deployment settings and creates a ZODB database if it finds one. zodbconn.uri is the database URI or URIs (either a whitespace-delimited string, a carriage-return-delimed string or a list of strings).
Database is activated with ZODB.ActivityMonitor.ActivityMonitor.
It will also recognize named database URIs as long as an unnamed database is in the configuration too:
zodbconn.uri.sessions = file:///home/project/var/Data.fs
request must be a Pyramid request object.
When called with no dbname argument or a dbname argument of None, return a connection to the primary datbase (the database set up as zodbconn.uri in the current configuration).
If you’re using named databases, you can obtain a connection to a named database by passing its name as dbname. It must be the name of a database (e.g. if you’ve added zodbconn.uri.foo to the configuration, it should be foo).