Home » Community » Newbie corner » How to use multiple schemas and databases?
Re: How to use multiple schemas and databases? [message #45446 is a reply to message #34289] |
Sun, 15 November 2015 00:44   |
omari
Messages: 276 Registered: March 2010
|
Experienced Member |
|
|
Interesting,
i think that can be acheived by adding a macro ALL_TABLES_NAME :
#define MODEL <studyDraw_01/db.sch>
#define SCHEMADIALECT <plugin/sqlite3/Sqlite3Schema.h>
#include "Sql/sch_header.h"
#include "Sql/sch_source.h"
#include "Sql/sch_schema.h"
#define MODEL <studyDraw_01/db_info.sch>
#define SCHEMADIALECT <plugin/sqlite3/Sqlite3Schema.h>
#include "Sql/sch_header.h"
#include "Sql/sch_source.h"
#define ALL_TABLES_NAME AllTables2
#include "Sql/sch_schema.h"
then in the file "Sql/sch_schema.h" :
- use ALL_TABLES_NAME instead of AllTables
- add this macro befor :
#ifndef ALL_TABLES_NAME
#define ALL_TABLES_NAME AllTables
#endif
- add this one at the end of file
regards
omari.
|
|
|
Goto Forum:
Current Time: Fri Jun 20 19:41:11 CEST 2025
Total time taken to generate the page: 0.03918 seconds
|