ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:axmls:printsql

Differences

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

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
axmls:printsql [2015/11/05 02:38] – created mnewnhamv5:axmls:printsql [2016/01/13 02:26] – ↷ Page moved from axmls:printsql to v5:axmls:printsql mnewnham
Line 1: Line 1:
-array PrintSQL ([string $format = 'NONE'])+====== printSql ====== 
 +~~NOTOC~~ 
 +<WRAP right box> 
 +== Syntax == 
 +  array printSql ( 
 +    optional string $format = 'NONE' 
 +    ) 
 +</WRAP>   
 +===== Description ===== 
 +Returns the last generated current SQL array in printable format. 
 + 
 +Call this method to fetch the array of SQL queries resulting from [[axmls:parseschema|ParseSchema()]] or [[axmls:parseschemastring|ParseSchemaString()]]. 
 + 
 +The method returns an array of SQL statements or FALSE if an error occurs. The available options are: 
 + 
 +^Value^Description^ 
 +|'string' or 'text'|Returns a value formatted for the console| 
 +|'html'|Returns an HTML formatted string| 
 + 
 +Any other provided argument returns a PHP array, which can be sent to [[axmls:executeSchema()]] or [[v5:dictionary:executesqlarray]] 
 + 
 + 
 + 
 +  
v5/axmls/printsql.txt · Last modified: 2016/01/13 02:26 by mnewnham