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 » What does this code do exactly?
What does this code do exactly? [message #36708] Thu, 28 June 2012 03:43 Go to next message
lectus is currently offline  lectus
Messages: 329
Registered: September 2006
Location: Brazil
Senior Member
All_Tables(sch);
if(sch.ScriptChanged(SqlSchema::UPGRADE))
 Sqlite3PerformScript(sch.Upgrade());
if(sch.ScriptChanged(SqlSchema::ATTRIBUTES))
 Sqlite3PerformScript(sch.Attributes());
if(sch.ScriptChanged(SqlSchema::CONFIG)) {
 Sqlite3PerformScript(sch.ConfigDrop());
 Sqlite3PerformScript(sch.Config());
}


I can't find it anywere in the docs.
Re: What does this code do exactly? [message #36732 is a reply to message #36708] Fri, 29 June 2012 14:41 Go to previous message
mirek is currently offline  mirek
Messages: 13986
Registered: November 2005
Ultimate Member
lectus wrote on Wed, 27 June 2012 21:43

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


I can't find it anywere in the docs.


Updates schema in DB.

Mirek
Previous Topic: Can I use netSQLite to solve the problem of sharing SQLite database?
Next Topic: Lowercase field name in table - error
Goto Forum:
  


Current Time: Fri Jun 21 23:30:51 CEST 2024

Total time taken to generate the page: 0.01074 seconds