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
"command_text": "WITH ... SELECT ... ON COLUMNS, ... ON ROWS FROM ... WHERE ..."
256
+
}
257
+
258
+
``result_model``
259
+
260
+
- As the default value of the ``result_model`` argument suggests ('**DictOfList**'), the result structural model received by the client will be a dictionary of array, like:
261
+
262
+
.. code-block:: JSON
263
+
264
+
{
265
+
"Column_A": [value_a1, value_a2, value_a3, ...],
266
+
"Column_B": [value_b1, value_b2, value_b3, ...],
267
+
"Column_C": [value_c1, value_c2, value_c3, ...],
268
+
...
269
+
}
270
+
271
+
This model can be directly passed to Oracle (`PL/SQL Associative Array Parameters <https://github.com/DataBooster/DbWebApi#associative-array-parameters>`__) for storage or further processing.
272
+
Please see `PL/SQL Associative Array Parameters <https://github.com/DataBooster/DbWebApi#associative-array-parameters>`__ for more details;
273
+
274
+
.
275
+
276
+
- If you want to pass the whole result directly to a `Table-Valued Parameter <https://github.com/DataBooster/DbWebApi#table-valued-parameters>`__ of a SQL Server stored procedure,
277
+
it is suitable to set the ``result_model`` parameter to '**SqlTvp**', and the result structure looks like:
MDX result column headers are often not valid identifiers for most languages. The ``column_mapping`` argument is used to specify the name mapping for certain columns
319
+
(other columns not specified in the mapping dictionary will be returned as is. If a column header is mapped to an empty name, the corresponding column will be filtered out from the return).
320
+
This is especially useful when passing the entire result of MDX directly to a stored procedure in a database.
321
+
It allows you to map MDX column names to input parameter names of the stored procedure.
0 commit comments