ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:axmls:removeschema

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
axmls:removeschema [2015/11/05 02:39] – created mnewnhamv5:axmls:removeschema [2016/01/13 02:26] (current) – ↷ Page moved from axmls:removeschema to v5:axmls:removeschema mnewnham
Line 1: Line 1:
-array RemoveSchema (mixed $filename, [bool $returnSchema = FALSE], string $file)+====== removeSchema ====== 
 +~~NOTOC~~ 
 +<WRAP right box> 
 +  array removeSchema ( 
 +    string $filename,  
 +    optional bool $returnSchema=false 
 +     ) 
 +</WRAP> 
 +===== Description ===== 
 +Loads an XML schema from a file and converts it to uninstallation SQL. 
 + 
 + 
 +Call this method to load the specified schema (see the DTD for the proper formatfrom the filesystem and generate the SQL necessary to remove the database described. 
 + 
 +The method returns an array of SQL queries, ready to execute. In order to execute the generated SQL, is must be passed to [[v5:dictionary:executesqlarray]]. 
 + 
 +If the schema file cannot be opened or the SQL generation fails, the method returns false. 
 +  
v5/axmls/removeschema.txt · Last modified: 2016/01/13 02:26 by mnewnham