| 52 | } |
| 53 | |
| 54 | std::string Getter::get_string(int i) const { |
| 55 | uint8_t *binary; |
| 56 | int size = get_binary(i, &binary); |
| 57 | if (size == -1) { |
| 58 | return std::string(""); |
| 59 | } else { |
| 60 | return std::string(reinterpret_cast<char *>(binary), |
| 61 | static_cast<size_t>(size)); |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | std::shared_ptr<Row> Getter::get_struct(int i, |
| 66 | StructTypePtr struct_type) const { |