lib/Db/MembersRequestBuilder.php 1 location
|
@@ 179-187 (lines=9) @@
|
| 176 |
|
* |
| 177 |
|
* @return IQueryBuilder |
| 178 |
|
*/ |
| 179 |
|
protected function getGroupsDeleteSql($groupId) { |
| 180 |
|
$qb = $this->dbConnection->getQueryBuilder(); |
| 181 |
|
$expr = $qb->expr(); |
| 182 |
|
|
| 183 |
|
$qb->delete(CoreRequestBuilder::TABLE_GROUPS) |
| 184 |
|
->where($expr->eq('group_id', $qb->createNamedParameter($groupId))); |
| 185 |
|
|
| 186 |
|
return $qb; |
| 187 |
|
} |
| 188 |
|
|
| 189 |
|
/** |
| 190 |
|
* Base of the Sql Delete request for Members |
lib/Db/SharingFrameRequestBuilder.php 1 location
|
@@ 105-114 (lines=10) @@
|
| 102 |
|
* |
| 103 |
|
* @return IQueryBuilder |
| 104 |
|
*/ |
| 105 |
|
protected function getSharesUpdateSql($uniqueId) { |
| 106 |
|
$qb = $this->dbConnection->getQueryBuilder(); |
| 107 |
|
$qb->update(self::TABLE_SHARES) |
| 108 |
|
->where( |
| 109 |
|
$qb->expr() |
| 110 |
|
->eq('unique_id', $qb->createNamedParameter((string)$uniqueId)) |
| 111 |
|
); |
| 112 |
|
|
| 113 |
|
return $qb; |
| 114 |
|
} |
| 115 |
|
|
| 116 |
|
|
| 117 |
|
/** |
lib/Db/CirclesRequestBuilder.php 2 locations
|
@@ 336-345 (lines=10) @@
|
| 333 |
|
* |
| 334 |
|
* @return IQueryBuilder |
| 335 |
|
*/ |
| 336 |
|
protected function getCirclesUpdateSql($uniqueId) { |
| 337 |
|
$qb = $this->dbConnection->getQueryBuilder(); |
| 338 |
|
$qb->update(self::TABLE_CIRCLES) |
| 339 |
|
->where( |
| 340 |
|
$qb->expr() |
| 341 |
|
->eq('unique_id', $qb->createNamedParameter($uniqueId)) |
| 342 |
|
); |
| 343 |
|
|
| 344 |
|
return $qb; |
| 345 |
|
} |
| 346 |
|
|
| 347 |
|
|
| 348 |
|
/** |
|
@@ 355-367 (lines=13) @@
|
| 352 |
|
* |
| 353 |
|
* @return IQueryBuilder |
| 354 |
|
*/ |
| 355 |
|
protected function getCirclesDeleteSql($circleUniqueId) { |
| 356 |
|
$qb = $this->dbConnection->getQueryBuilder(); |
| 357 |
|
$qb->delete(self::TABLE_CIRCLES) |
| 358 |
|
->where( |
| 359 |
|
$qb->expr() |
| 360 |
|
->eq( |
| 361 |
|
$qb->createFunction( |
| 362 |
|
'SUBSTR(`unique_id`, 1, ' . Circle::SHORT_UNIQUE_ID_LENGTH . ')' |
| 363 |
|
), |
| 364 |
|
$qb->createNamedParameter($circleUniqueId) |
| 365 |
|
) |
| 366 |
|
); |
| 367 |
|
|
| 368 |
|
return $qb; |
| 369 |
|
} |
| 370 |
|
|
lib/Db/CircleProviderRequestBuilder.php 2 locations
|
@@ 555-563 (lines=9) @@
|
| 552 |
|
* |
| 553 |
|
* @return \OCP\DB\QueryBuilder\IQueryBuilder |
| 554 |
|
*/ |
| 555 |
|
protected function getBaseDeleteSql() { |
| 556 |
|
$qb = $this->dbConnection->getQueryBuilder(); |
| 557 |
|
$expr = $qb->expr(); |
| 558 |
|
|
| 559 |
|
$qb->delete('share') |
| 560 |
|
->where($expr->eq('share_type', $qb->createNamedParameter(Share::SHARE_TYPE_CIRCLE))); |
| 561 |
|
|
| 562 |
|
return $qb; |
| 563 |
|
} |
| 564 |
|
|
| 565 |
|
|
| 566 |
|
/** |
|
@@ 571-579 (lines=9) @@
|
| 568 |
|
* |
| 569 |
|
* @return \OCP\DB\QueryBuilder\IQueryBuilder |
| 570 |
|
*/ |
| 571 |
|
protected function getBaseUpdateSql() { |
| 572 |
|
$qb = $this->dbConnection->getQueryBuilder(); |
| 573 |
|
$expr = $qb->expr(); |
| 574 |
|
|
| 575 |
|
$qb->update('share') |
| 576 |
|
->where($expr->eq('share_type', $qb->createNamedParameter(Share::SHARE_TYPE_CIRCLE))); |
| 577 |
|
|
| 578 |
|
return $qb; |
| 579 |
|
} |
| 580 |
|
} |
| 581 |
|
|