class SqlManager extends AbstractManager
Service class for managing SQL.
Methods
array |
getSchemas()
Returns the list of schemas. |
from AbstractManager |
setSchemas(array $schemas)
Sets the schemas list. |
from AbstractManager | |
setWorkingDirectory(string $workingDirectory)
Sets the working directory path. |
from AbstractManager | |
string |
getWorkingDirectory()
Returns the working directory path. |
from AbstractManager |
array |
getDataModels()
Returns the data models that have been processed. |
from AbstractManager |
array |
getDataModelDbMap()
Returns the data model to database name map. |
from AbstractManager |
setValidate(boolean $validate)
Sets whether to perform validation on the datamodel schema.xml file(s). |
from AbstractManager | |
setXsd(string $xsd)
Sets the XSD schema to use for validation of any datamodel schema.xml file(s). |
from AbstractManager | |
setXsl(string $xsl)
Sets the normalization XSLT to use to transform datamodel schema.xml file(s) before validation and parsing. |
from AbstractManager | |
setDbEncoding(string $encoding)
Sets the current target database encoding. |
from AbstractManager | |
setLoggerClosure(Closure $logger)
Sets a logger closure. |
from AbstractManager | |
setGeneratorConfig(GeneratorConfigInterface $generatorConfig)
Sets the GeneratorConfigInterface implementation. |
from AbstractManager | |
setConnections(array $connections)
Set the database connection settings |
||
array |
getConnections()
Get the database connection settings |
|
hasConnection($connection) | ||
getConnection($datasource) | ||
array | getDatabases() | |
string | getSqlDbMapFilename() | |
buildSql()
Build SQL files. |
||
insertSql(string $datasource = null) |
Details
in AbstractManager at line 100
public array
getSchemas()
Returns the list of schemas.
in AbstractManager at line 110
public
setSchemas(array $schemas)
Sets the schemas list.
in AbstractManager at line 120
public
setWorkingDirectory(string $workingDirectory)
Sets the working directory path.
in AbstractManager at line 130
public string
getWorkingDirectory()
Returns the working directory path.
in AbstractManager at line 142
public array
getDataModels()
Returns the data models that have been processed.
in AbstractManager at line 156
public array
getDataModelDbMap()
Returns the data model to database name map.
in AbstractManager at line 170
public
setValidate(boolean $validate)
Sets whether to perform validation on the datamodel schema.xml file(s).
in AbstractManager at line 181
public
setXsd(string $xsd)
Sets the XSD schema to use for validation of any datamodel schema.xml file(s).
in AbstractManager at line 192
public
setXsl(string $xsl)
Sets the normalization XSLT to use to transform datamodel schema.xml file(s) before validation and parsing.
in AbstractManager at line 202
public
setDbEncoding(string $encoding)
Sets the current target database encoding.
in AbstractManager at line 212
public
setLoggerClosure(Closure $logger)
Sets a logger closure.
in AbstractManager at line 370
public
setGeneratorConfig(GeneratorConfigInterface $generatorConfig)
Sets the GeneratorConfigInterface implementation.
at line 40
public
setConnections(array $connections)
Set the database connection settings
at line 50
public array
getConnections()
Get the database connection settings
at line 55
public
hasConnection($connection)
at line 60
public
getConnection($datasource)
at line 72
public array
getDatabases()
at line 100
public string
getSqlDbMapFilename()
at line 108
public
buildSql()
Build SQL files.