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 » U++ Library support » U++ SQL » Please help me understand u++ schemas  () 1 Vote
Re: Please help me understand u++ schemas [message #1594 is a reply to message #1573] Thu, 09 March 2006 13:31 Go to previous messageGo to previous message
santiago is currently offline  santiago
Messages: 13
Registered: March 2006
Location: C�rdoba, Argentina
Promising Member
Thank you for the really quick answers.

Here's the code of the SQL_Sqlite3 example that i don't understand.

SQL = sqlite3;

SqlSchema sch(SQLD_SQLITE3);
StdStatementExecutor se(sqlite3);

All_Tables(sch);

if(sch.ScriptChanged(SqlSchema::UPGRADE))
    Sqlite3PerformScript(sch.Upgrade(),se);
	
if(sch.ScriptChanged(SqlSchema::ATTRIBUTES)) {
	Sqlite3PerformScript(sch.Attributes(),se);
}
	
if(sch.ScriptChanged(SqlSchema::CONFIG)) {
	Sqlite3PerformScript(sch.ConfigDrop(),se);
	Sqlite3PerformScript(sch.Config(),se);
}
	
sch.SaveNormal();


The "SQL = sqlite3;" line even has a comment above saying "What does this do?"

Thanks again for the help.
 
Read Message icon9.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon7.gif
Read Message
Previous Topic: Multithread build problem with MySql
Next Topic: MySQL Link Issue [SOLVED]
Goto Forum:
  


Current Time: Mon Aug 25 22:58:50 CEST 2025

Total time taken to generate the page: 0.08680 seconds