diff --git a/services/distributeddataservice/libs/distributeddb/BUILD.gn b/services/distributeddataservice/libs/distributeddb/BUILD.gn index bd6a28f26eebccc0c89404a81dfdbde9b5cee24c..2ccb0157535f71c18e73321ad8a105192fe1641b 100755 --- a/services/distributeddataservice/libs/distributeddb/BUILD.gn +++ b/services/distributeddataservice/libs/distributeddb/BUILD.gn @@ -45,6 +45,7 @@ config("distrdb_config") { "JSONCPP_USE_BUILDER", "OMIT_FLATBUFFER", "RELATIONAL_STORE", + "SQLITE_DISTRIBUTE_RELATIONAL", ] } diff --git a/services/distributeddataservice/libs/distributeddb/interfaces/include/relational/relational_store_sqlite_ext.h b/services/distributeddataservice/libs/distributeddb/interfaces/include/relational/relational_store_sqlite_ext.h index 5f548ae818f985db3a78d170a38087729c845852..98f6797a428b78581f63d45890d3987d83b8bf5d 100644 --- a/services/distributeddataservice/libs/distributeddb/interfaces/include/relational/relational_store_sqlite_ext.h +++ b/services/distributeddataservice/libs/distributeddb/interfaces/include/relational/relational_store_sqlite_ext.h @@ -31,10 +31,29 @@ struct sqlite3_api_routines_relational { }; extern const struct sqlite3_api_routines_relational *sqlite3_export_relational_symbols; +#ifdef sqlite3_close +#undef sqlite3_close +#endif #define sqlite3_close sqlite3_export_relational_symbols->close + +#ifdef sqlite3_close_v2 +#undef sqlite3_close_v2 +#endif #define sqlite3_close_v2 sqlite3_export_relational_symbols->close_v2 + +#ifdef sqlite3_open +#undef sqlite3_open +#endif #define sqlite3_open sqlite3_export_relational_symbols->open + +#ifdef sqlite3_open16 +#undef sqlite3_open16 +#endif #define sqlite3_open16 sqlite3_export_relational_symbols->open16 + +#ifdef sqlite3_open_v2 +#undef sqlite3_open_v2 +#endif #define sqlite3_open_v2 sqlite3_export_relational_symbols->open_v2 #endif