Home » U++ Library support » U++ SQL » PostgreSQL: JSONB Supporting by Upp
PostgreSQL: JSONB Supporting by Upp [message #52476] |
Fri, 04 October 2019 14:08 |
fermium
Messages: 8 Registered: October 2018
|
Promising Member |
|
|
It would be great if the jsonb type returned to C++ code as Value. Conversely, Value might be accepted into the database.
Now we have to use ParseJSON and StoreAsJson, which degrades performance
For example:
Vector<Value> row;
sql.Fetch(row);
ValueMap v = ParseJSON (row[0].ToString()); //this is the jsonb type in the database, but IsString(row[0]) is true
// ValueMap v = row[0]; // a good way, I think
[Updated on: Fri, 04 October 2019 14:22] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sat May 04 10:26:51 CEST 2024
Total time taken to generate the page: 0.02895 seconds
|