should be it
This commit is contained in:
7930
external/duckdb/third_party/yyjson/include/yyjson.hpp
vendored
Normal file
7930
external/duckdb/third_party/yyjson/include/yyjson.hpp
vendored
Normal file
File diff suppressed because it is too large
Load Diff
33
external/duckdb/third_party/yyjson/include/yyjson_utils.hpp
vendored
Normal file
33
external/duckdb/third_party/yyjson/include/yyjson_utils.hpp
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
// DuckDB
|
||||
//
|
||||
// yyjson_utils.hpp
|
||||
//
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "yyjson.hpp"
|
||||
|
||||
using namespace duckdb_yyjson; // NOLINT
|
||||
|
||||
namespace duckdb {
|
||||
|
||||
struct ConvertedJSONHolder {
|
||||
public:
|
||||
~ConvertedJSONHolder() {
|
||||
if (doc) {
|
||||
yyjson_mut_doc_free(doc);
|
||||
}
|
||||
if (stringified_json) {
|
||||
free(stringified_json);
|
||||
}
|
||||
}
|
||||
|
||||
public:
|
||||
yyjson_mut_doc *doc = nullptr;
|
||||
char *stringified_json = nullptr;
|
||||
};
|
||||
|
||||
} // namespace duckdb
|
||||
Reference in New Issue
Block a user