Edit
↰
Home
↑
pq-gateway
↑
Gateway
↑
Table
↻
Table::delete
↲
Attributes
↲
Identity
↲
Relations
↲
Table::__construct
↲
Table::__toString
↲
Table::attach
↲
Table::by
↲
Table::create
↲
Table::detach
↲
Table::execute
↲
Table::find
↲
Table::getAttributes
↲
Table::getConnection
↲
Table::getIdentity
↲
Table::getMetadataCache
↲
Table::getName
↲
Table::getQueryExecutor
↲
Table::getQueryWriter
↲
Table::getRelation
↲
Table::getRelations
↲
Table::getRowsetPrototype
↲
Table::notify
↲
Table::of
↲
Table::onResult
↲
Table::resolve
↲
Table::setMetadataCache
↲
Table::setQueryExecutor
↲
Table::setQueryWriter
↲
Table::setRowsetPrototype
↲
Table::update
↲
Table::with
#
mixed
pq\Gateway\Table::delete
(
array
$where
,[,
$returning
=
NULL
])
Delete rows from the table.
Params:
#
array
$where
#
Removal criteria.
Optional
string
$returning
#
=
NULL
What the DELETE should return.
Returns:
#
a
deferred promise of React/Promise
, when using
pq\Query\AsyncExecutor
, the asynchronous executor.
Else:
pq\Result
, if
pq\Result::$status
!=
pq\Result::TUPLES_OK
.
pq\Result
, if the rowset prototype
pq\Gateway\Table::$rowset
is empty.
pq\Gateway\Rowset
, an instance of the rowset prototype.
Show Comments from Github Discussions