You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Count the number of inserted entities. This method corresponds to a [GET request at /query/count/entity/total](http://panel.slicingdice.com/docs/#api-details-api-endpoints-get-query-count-entity-total).
296
+
Count the number of inserted entities in the whole database. This method corresponds to a [POST request at /query/count/entity/total](http://panel.slicingdice.com/docs/#api-details-api-endpoints-get-query-count-entity-total).
297
297
298
298
#### Request example
299
299
@@ -302,6 +302,7 @@ Count the number of inserted entities. This method corresponds to a [GET request
302
302
use Slicer\SlicingDice;
303
303
$usesTestEndpoint = true;
304
304
$client = new SlicingDice(array("masterKey" => "MASTER_API_KEY"), $usesTestEndpoint);
Count the total number of inserted entities in the given tables. This method corresponds to a [POST request at /query/count/entity/total](http://panel.slicingdice.com/docs/#api-details-api-endpoints-get-query-count-entity-total).
324
+
325
+
#### Request example
326
+
327
+
```php
328
+
<?php
329
+
use Slicer\SlicingDice;
330
+
$usesTestEndpoint = true;
331
+
$client = new SlicingDice(array("masterKey" => "MASTER_API_KEY"), $usesTestEndpoint);
332
+
333
+
$tables = array("default");
334
+
335
+
print_r($client->countEntityTotal($tables));
336
+
?>
337
+
```
338
+
339
+
#### Output example
340
+
341
+
```json
342
+
{
343
+
"status": "success",
344
+
"result": {
345
+
"total": 42
346
+
},
347
+
"took": 0.103
348
+
}
349
+
```
350
+
321
351
### `countEntity($jsonData)`
322
352
Count the number of entities matching the given query. This method corresponds to a [POST request at /query/count/entity](http://panel.slicingdice.com/docs/#api-details-api-endpoints-post-query-count-entity).
0 commit comments