|
|
Home » Developing U++ » U++ TheIDE and Library: Releases and ChangeLogs » Schema utilities
|
|
|
|
|
|
Re: Schema utilities [message #20699 is a reply to message #20697] |
Wed, 01 April 2009 04:13   |
andrei_natanael
Messages: 262 Registered: January 2009
|
Experienced Member |
|
|
rtmex wrote |
SaveFile("estructura.sch", Exportsch(m_session, "test"));
...
I'm getting the next error
error: 'Exportsch' was not declared in this scope
|
It's name is wrong, it should be ExportSch not Exportsch
rtmex wrote |
I think I have to add an include file but I don't know wich one, I added the Sql and PostgreSQL packages to my program.
I had to put an empty database.sch file because if I didn't, I got an error saying the file does not exist.
I'm also getting this messages when I compile the program
CtrlLib: circular 'uses' chain
CtrlLib: circular 'uses' chain
|
The only required header is SqlSchema.h.
The warnings(or errors) about "circular 'uses' chain"(i've never had such an error) , i think are because you're using "using namespace Upp" twice - once in header and once in .cpp file.
I don't have a PostgreSQL database but i've modified SQLApp example to test ExportSch. The only modifications i've made are in main.cpp.
// line 5
void SchExport()
{
SaveFile("estructura.sch", ExportSch(SQL.GetSession(), ""));
}
void SQLApp::MainMenu(Bar& bar)
{
bar.Add("ExportSch", callback(SchExport));
// ...
}
If you don't get it i may make a small example, but i think it's obvious.
P.S.: use code tags(formating tools) to make your code more readable in posts.
|
|
|
|
Goto Forum:
Current Time: Fri Apr 25 12:56:23 CEST 2025
Total time taken to generate the page: 0.01406 seconds
|
|
|