Add casting example

This commit is contained in:
steve-chavez
2018-05-28 13:26:18 -05:00
committed by Steve Chávez
parent 036cc1c5d7
commit 338e8a1ae3
+10
View File
@@ -150,6 +150,16 @@ You can rename the columns by prefixing them with an alias followed by the colon
{"fullName": "Jane Doe", "birthDate": "01/12/1998"} {"fullName": "Jane Doe", "birthDate": "01/12/1998"}
] ]
Casting the columns is possible by suffixing them with the double colon ``::`` plus the desired type.
.. code-block:: http
GET /people?select=full_name,salary::text HTTP/1.1
[
{"fullName": "John Doe", "salary": "90000.00"},
{"fullName": "Jane Doe", "salary": "120000.00"}
]
.. _computed_cols: .. _computed_cols:
Computed Columns Computed Columns