[odb-users] how to generate two db files with different schemas
and embedded into an application
Boris Kolpackov
boris at codesynthesis.com
Tue Aug 16 07:19:09 EDT 2022
Jed Wu <jed.wu at ringcentral.com> writes:
> How can I call create_schema() in contact-odb.cxx for contact.db and
> create_schema in phonenumber-odb.cxx for phonenumber.db?
The ODB compiler has the --schema-name option that allows you to
assign names to your database schemas. This name can then be passed
as the second argument to odb::schema_catalog::create_schema(). This
is covered in Section 3.4, "Database" in the ODB manual:
https://codesynthesis.com/products/odb/doc/manual.xhtml#3.4
More information about the odb-users
mailing list