ISchemaWrapper

interface OCP\DB\ISchemaWrapper
Interface ISchemaWrapper
Implemented by:OC\DB\SchemaWrapper
Source:lib/public/DB/ISchemaWrapper.php#31

Methods

public OCP\DB\ISchemaWrapper::getTable($tableName)
Source:

lib/public/DB/ISchemaWrapper.php#40

Parameters:
  • $tableName (string)
Returns:

\Doctrine\DBAL\Schema\Table

Throws:

\Doctrine\DBAL\Schema\SchemaException

Since:

13.0.0

public OCP\DB\ISchemaWrapper::hasTable($tableName)
Does this schema have a table with the given name?
Source:

lib/public/DB/ISchemaWrapper.php#50

Parameters:
  • $tableName (string) Prefix is automatically prepended
Returns:

bool

Since:

13.0.0

public OCP\DB\ISchemaWrapper::createTable($tableName)
Creates a new table.
Source:

lib/public/DB/ISchemaWrapper.php#59

Parameters:
  • $tableName (string) Prefix is automatically prepended
Returns:

\Doctrine\DBAL\Schema\Table

Since:

13.0.0

public OCP\DB\ISchemaWrapper::dropTable($tableName)
Drops a table from the schema.
Source:

lib/public/DB/ISchemaWrapper.php#68

Parameters:
  • $tableName (string) Prefix is automatically prepended
Returns:

\Doctrine\DBAL\Schema\Schema

Since:

13.0.0

public OCP\DB\ISchemaWrapper::getTables()
Gets all tables of this schema.
Source:lib/public/DB/ISchemaWrapper.php#76
Returns:\Doctrine\DBAL\Schema\Table[]
Since:13.0.0
public OCP\DB\ISchemaWrapper::getTableNames()
Gets all table names, prefixed with table prefix
Source:lib/public/DB/ISchemaWrapper.php#84
Returns:array
Since:13.0.0
public OCP\DB\ISchemaWrapper::getTableNamesWithoutPrefix()
Gets all table names
Source:lib/public/DB/ISchemaWrapper.php#92
Returns:array
Since:13.0.0