[odb-users] Schema creation for a scattered database
Boris Kolpackov
boris at codesynthesis.com
Thu Jan 15 08:19:38 EST 2026
Javier Gutierrez <javier.gutierrez at web.de> writes:
> I am wondering how to use the ODB feature
> odb::schema_catalog::create_schema() for a database that is scattered among
> different parts of the application.
This feature expects each named schema to be self-contained.
> My question is, what is the best way to deal with such a scenario?
The only option that I can think of is to manage the foreign keys
yourself. Without the foreign keys pointing to the main table your
schemas are self-contained. So you could create them and then add
the necessary foreign keys manually.
More information about the odb-users
mailing list