Nextcloud PHP API (stable18)

ISchemaWrapper

Interface ISchemaWrapper

Tags
since
13.0.0

Table of Contents

createTable()  : Table
Creates a new table.
dropTable()  : Schema
Drops a table from the schema.
getTable()  : Table
getTableNames()  : array
Gets all table names, prefixed with table prefix
getTableNamesWithoutPrefix()  : array
Gets all table names
getTables()  : \Doctrine\DBAL\Schema\Table[]
Gets all tables of this schema.
hasTable()  : bool
Does this schema have a table with the given name?

Methods

createTable()

Creates a new table.

public createTable(string $tableName) : Table
Parameters
$tableName : string

Prefix is automatically prepended

Tags
since
13.0.0
Return values
Table

dropTable()

Drops a table from the schema.

public dropTable(string $tableName) : Schema
Parameters
$tableName : string

Prefix is automatically prepended

Tags
since
13.0.0
Return values
Schema

getTable()

public getTable(string $tableName) : Table
Parameters
$tableName : string
Tags
throws
SchemaException
since
13.0.0
Return values
Table

getTableNames()

Gets all table names, prefixed with table prefix

public getTableNames() : array
Tags
since
13.0.0
Return values
array

getTableNamesWithoutPrefix()

Gets all table names

public getTableNamesWithoutPrefix() : array
Tags
since
13.0.0
Return values
array

getTables()

Gets all tables of this schema.

public getTables() : \Doctrine\DBAL\Schema\Table[]
Tags
since
13.0.0
Return values
\Doctrine\DBAL\Schema\Table[]

hasTable()

Does this schema have a table with the given name?

public hasTable(string $tableName) : bool
Parameters
$tableName : string

Prefix is automatically prepended

Tags
since
13.0.0
Return values
bool

Search results