SchemaWrapper¶
-
class
OC\DB\
SchemaWrapper
¶ Source: lib/private/DB/SchemaWrapper.php#30 Implements: OCP\DB\ISchemaWrapper
Properties¶
-
protected static property
OC\DB\SchemaWrapper::$
connection
¶ Source: lib/private/DB/SchemaWrapper.php#33 Type: \OC\DB\Connection
-
protected static property
OC\DB\SchemaWrapper::$
schema
¶ Source: lib/private/DB/SchemaWrapper.php#36 Type: \Doctrine\DBAL\Schema\Schema
-
protected static property
OC\DB\SchemaWrapper::$
tablesToDelete
¶ Source: lib/private/DB/SchemaWrapper.php#39 Type: array
Methods¶
-
public
OC\DB\SchemaWrapper::
__construct
($connection)¶ Source: lib/private/DB/SchemaWrapper.php#41
-
public
OC\DB\SchemaWrapper::
getWrappedSchema
()¶ Source: lib/private/DB/SchemaWrapper.php#46
-
public
OC\DB\SchemaWrapper::
performDropTableCalls
()¶ Source: lib/private/DB/SchemaWrapper.php#50
-
public
OC\DB\SchemaWrapper::
getTableNamesWithoutPrefix
()¶ - Gets all table names
Source: lib/private/DB/SchemaWrapper.php#62 Returns: array
-
public
OC\DB\SchemaWrapper::
getTableNames
()¶ Source: lib/private/DB/SchemaWrapper.php#78 Returns: array
-
public
OC\DB\SchemaWrapper::
getTable
($tableName)¶ Source: Parameters: - $tableName (string)
Returns: \Doctrine\DBAL\Schema\Table
Throws: \Doctrine\DBAL\Schema\SchemaException
-
public
OC\DB\SchemaWrapper::
hasTable
($tableName)¶ - Does this schema have a table with the given name?
Source: Parameters: - $tableName (string)
Returns: bool
-
public
OC\DB\SchemaWrapper::
createTable
($tableName)¶ - Creates a new table.
Source: Parameters: - $tableName (string)
Returns: \Doctrine\DBAL\Schema\Table
-
public
OC\DB\SchemaWrapper::
dropTable
($tableName)¶ - Drops a table from the schema.
Source: Parameters: - $tableName (string)
Returns: \Doctrine\DBAL\Schema\Schema
-
public
OC\DB\SchemaWrapper::
getTables
()¶ - Gets all tables of this schema.
Source: lib/private/DB/SchemaWrapper.php#130 Returns: \Doctrine\DBAL\Schema\Table[]