| 96 | } |
| 97 | |
| 98 | vec_ptr vectorFromTextValue(sqlite3_value *value) { |
| 99 | |
| 100 | try { |
| 101 | |
| 102 | json json = json::parse(sqlite3_value_text(value)); |
| 103 | vec_ptr pVec(new vector<float>()); |
| 104 | json.get_to(*pVec); |
| 105 | return pVec; |
| 106 | |
| 107 | } catch (const json::exception &) { |
| 108 | return nullptr; |
| 109 | } |
| 110 | |
| 111 | return nullptr; |
| 112 | } |
| 113 | |
| 114 | static vec_ptr valueAsVector(sqlite3_value *value) { |
| 115 |
no outgoing calls
no test coverage detected