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
*`write_key (str)` - [API key](https://docs.slicingdice.com/docs/api-keys) to authenticate requests with the SlicingDice API Write Key.
79
79
*`read_key (str)` - [API key](https://docs.slicingdice.com/docs/api-keys) to authenticate requests with the SlicingDice API Read Key.
80
80
*`master_key (str)` - [API key](https://docs.slicingdice.com/docs/api-keys) to authenticate requests with the SlicingDice API Master Key.
81
81
*`custom_key (str)` - [API key](https://docs.slicingdice.com/docs/api-keys) to authenticate requests with the SlicingDice API Custom Key.
82
82
*`use_ssl (bool)` - Define if the requests verify SSL for HTTPS requests.
83
83
*`timeout (int)` - Amount of time, in seconds, to wait for results for each request.
84
-
*`uses_test_endpoint (bool)` - If false the client will send requests to production end-point, otherwise to tests end-point.
85
84
86
85
### `get_database()`
87
-
Get information about current database(related to api keys informed on construction). This method corresponds to a `GET` request at `/database`.
86
+
Get information about current database(related to api keys informed on construction). This method corresponds to a [`GET` request at `/database`](https://docs.slicingdice.com/docs/how-to-list-edit-or-delete-databases).
88
87
89
88
#### Request example
90
89
@@ -100,7 +99,7 @@ print(client.get_database())
100
99
{
101
100
"name": "Database 1",
102
101
"description": "My first database",
103
-
"tables": [
102
+
"dimensions": [
104
103
"default",
105
104
"users"
106
105
],
@@ -109,7 +108,7 @@ print(client.get_database())
109
108
}
110
109
```
111
110
112
-
### `get_columns(test=False)`
111
+
### `get_columns()`
113
112
Get all created columns, both active and inactive ones. This method corresponds to a [GET request at /column](https://docs.slicingdice.com/docs/how-to-list-edit-or-delete-columns).
114
113
115
114
#### Request example
@@ -148,7 +147,7 @@ print(client.get_columns())
148
147
}
149
148
```
150
149
151
-
### `create_column(json_data, test=False)`
150
+
### `create_column(json_data)`
152
151
Create a new column. This method corresponds to a [POST request at /column](https://docs.slicingdice.com/docs/how-to-create-columns#section-creating-columns-using-column-endpoint).
Verify which entities exist in a table (uses `default`table if not provided) given a list of entity IDs. This method corresponds to a [POST request at /query/exists/entity](https://docs.slicingdice.com/docs/exists).
234
+
### `exists_entity(ids, dimension=None)`
235
+
Verify which entities exist in a dimension (uses `default`dimension if not provided) given a list of entity IDs. This method corresponds to a [POST request at /query/exists/entity](https://docs.slicingdice.com/docs/exists).
Count the total number of inserted entities in the given tables. This method corresponds to a [POST request at /query/count/entity/total](https://docs.slicingdice.com/docs/total#section-counting-specific-tables).
290
+
### `count_entity_total(dimensions)`
291
+
Count the total number of inserted entities in the given dimensions. This method corresponds to a [POST request at /query/count/entity/total](https://docs.slicingdice.com/docs/total#section-counting-specific-tables).
Copy file name to clipboardExpand all lines: tests_and_examples/examples/count_entity.json
+3-3
Original file line number
Diff line number
Diff line change
@@ -23283,7 +23283,7 @@
23283
23283
"name": "Test for a \"COUNT ENTITY\" query using automatically created columns, operator \"AND\" and parameter \"EQUALS\".",
23284
23284
"columns": [],
23285
23285
"insert": {
23286
-
"auto-create": ["table", "column"],
23286
+
"auto-create": ["dimension", "column"],
23287
23287
"24": {
23288
23288
"string-test-column": "value:matched_value",
23289
23289
"numeric-test-column": 1000001
@@ -23713,7 +23713,7 @@
23713
23713
"name": "Test for a \"COUNT ENTITY\" query using automatically created columns, operators \"AND\" and \"OR\" and parameter \"EQUALS\".",
23714
23714
"columns": [],
23715
23715
"insert": {
23716
-
"auto-create": ["table", "column"],
23716
+
"auto-create": ["dimension", "column"],
23717
23717
"24": {
23718
23718
"string-test-column": "value:matched_value",
23719
23719
"boolean-test-column": "true",
@@ -24251,7 +24251,7 @@
24251
24251
"name": "Test for a \"COUNT ENTITY\" query using automatically created columns, operators \"AND\" and \"OR\" and parameters \"EQUALS\", \"BETWEEN\" and \"MINFREQ\".",
0 commit comments