|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "../rocksdb/include/rocksdb/c.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef struct rocksdb_ingestexternalfilearg_t {
|
|
|
|
rocksdb_column_family_handle_t* column_family;
|
|
|
|
char const* const* external_files;
|
|
|
|
size_t external_files_len;
|
|
|
|
rocksdb_ingestexternalfileoptions_t* options;
|
|
|
|
} rocksdb_ingestexternalfilearg_t;
|
|
|
|
|
|
|
|
extern ROCKSDB_LIBRARY_API rocksdb_pinnableslice_t* rocksdb_transactiondb_get_pinned_cf(
|
|
|
|
rocksdb_transactiondb_t* db, const rocksdb_readoptions_t* options,
|
|
|
|
rocksdb_column_family_handle_t* column_family, const char* key,
|
|
|
|
size_t keylen, char** errptr);
|
|
|
|
|
|
|
|
extern ROCKSDB_LIBRARY_API void rocksdb_transactiondb_flush_cf(
|
|
|
|
rocksdb_transactiondb_t* db, const rocksdb_flushoptions_t* options,
|
|
|
|
rocksdb_column_family_handle_t* column_family, char** errptr);
|
|
|
|
|
|
|
|
extern ROCKSDB_LIBRARY_API void rocksdb_transactiondb_compact_range_cf_opt(
|
|
|
|
rocksdb_transactiondb_t* db, rocksdb_column_family_handle_t* column_family,
|
|
|
|
rocksdb_compactoptions_t* opt, const char* start_key, size_t start_key_len,
|
|
|
|
const char* limit_key, size_t limit_key_len, char** errptr);
|
|
|
|
|
|
|
|
extern ROCKSDB_LIBRARY_API void rocksdb_transactiondb_ingest_external_file_cf(
|
|
|
|
rocksdb_transactiondb_t* db, rocksdb_column_family_handle_t* handle,
|
|
|
|
const char* const* file_list, const size_t list_len,
|
|
|
|
const rocksdb_ingestexternalfileoptions_t* opt, char** errptr);
|
|
|
|
|
|
|
|
extern ROCKSDB_LIBRARY_API void rocksdb_transactiondb_ingest_external_files(
|
|
|
|
rocksdb_transactiondb_t* db, const rocksdb_ingestexternalfilearg_t* list,
|
|
|
|
const size_t list_len, char** errptr);
|
|
|
|
|
|
|
|
extern ROCKSDB_LIBRARY_API rocksdb_pinnableslice_t* rocksdb_transaction_get_pinned_cf(
|
|
|
|
rocksdb_transaction_t* txn, const rocksdb_readoptions_t* options,
|
|
|
|
rocksdb_column_family_handle_t* column_family, const char* key,
|
|
|
|
size_t keylen, char** errptr);
|
|
|
|
|
|
|
|
extern ROCKSDB_LIBRARY_API rocksdb_pinnableslice_t* rocksdb_transaction_get_for_update_pinned_cf(
|
|
|
|
rocksdb_transaction_t* txn, const rocksdb_readoptions_t* options,
|
|
|
|
rocksdb_column_family_handle_t* column_family, const char* key,
|
|
|
|
size_t keylen, char** errptr);
|
|
|
|
|
|
|
|
extern ROCKSDB_LIBRARY_API rocksdb_readoptions_t* rocksdb_readoptions_create_copy(
|
|
|
|
rocksdb_readoptions_t*);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|