U++ framework
Do not panic. Ask here before giving up.

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: Sun Jun 21 13:37:30 GMT+2 2026

Total time taken to generate the page: 0.00543 seconds