Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 1.18 KB

File metadata and controls

23 lines (20 loc) · 1.18 KB

fSQLSchemaTranslation

<<css mode="next" class="sidebar"></css>> (((

Class Resources <<toc></toc>>

 - '''<a href="/docs/fSQLSchemaTranslation">Class Documentation</a>'''
 - <a href="/api/fSQLSchemaTranslation">API Reference</a>
 - <a href="https://github.com/flourishlib/flourish-classes/blob/master/fSQLSchemaTranslation.php" target="_blank">Source Code</a>

Database Classes <<toc></toc>>

 - fDatabase
 - fNoRowsException
 - fResult
 - fSQLException
 - fSQLTranslation
 - '''fSQLSchemaTranslation'''
 - fSchema
 - fStatement
 - fUnbufferedResult

)))

The fSQLSchemaTranslation class is an internal class used by fSQLTranslation for translating Flourish SQL DDL statements, such as `ALTER TABLE` and `CREATE TABLE`, into the dialect of SQL supported by the current database. To take advantage of the features of this class, be sure to call `translatedQuery()` instead of `query()`.

fSQLSchemaTranslation is separate from fSQLTranslation due to the sheer amount of code necessary to implement `ALTER TABLE` functionality that works consistently across databases. In addition, this functionality is not used as frequently as the DML statements supported by fSQLTranslation.