Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
omari is currently offline  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
#undef ALL_TABLES_NAME



regards
omari.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Printer's dialog shows up multiple times
Next Topic: Fossil,SSH,Npackd,GIT and R.
Goto Forum:
  


Current Time: Fri Jun 20 19:41:11 CEST 2025

Total time taken to generate the page: 0.03918 seconds