I created 3 classes, that are currently mapped to one database.
I want to create another database so 1 class will map to "db1" and the second to "db2".
I thougt that the right way sould be adding something to the pragma :
#pragma db object ("db1")
elsewise, how can we know where each class will be mapped?
Can anyone advise how to do it? And if the compilationd shpuld be changed?
ODB_COMPILER -d sqlite --generate-query --generate-schema person.h && cp person-odb.cxx person-odb.cpp
Aucun commentaire:
Enregistrer un commentaire