diff options
Diffstat (limited to 'slicer/db')
-rw-r--r-- | slicer/db/sqlBinder.h | 2 | ||||
-rw-r--r-- | slicer/db/sqlCommon.cpp | 1 | ||||
-rw-r--r-- | slicer/db/sqlInsertSerializer.cpp | 1 | ||||
-rw-r--r-- | slicer/db/sqlInsertSerializer.h | 1 | ||||
-rw-r--r-- | slicer/db/sqlSelectDeserializer.h | 1 | ||||
-rw-r--r-- | slicer/db/sqlSource.h | 3 | ||||
-rw-r--r-- | slicer/db/sqlTablePatchSerializer.cpp | 3 | ||||
-rw-r--r-- | slicer/db/sqlTablePatchSerializer.h | 1 | ||||
-rw-r--r-- | slicer/db/sqlUpdateSerializer.h | 1 | ||||
-rw-r--r-- | slicer/db/testInsert.cpp | 1 | ||||
-rw-r--r-- | slicer/db/testMockCommon.h | 1 | ||||
-rw-r--r-- | slicer/db/testPatch.cpp | 2 |
12 files changed, 18 insertions, 0 deletions
diff --git a/slicer/db/sqlBinder.h b/slicer/db/sqlBinder.h index 4f5437c..71f23ea 100644 --- a/slicer/db/sqlBinder.h +++ b/slicer/db/sqlBinder.h @@ -6,6 +6,7 @@ #include <memory> #include <slicer/modelParts.h> #include <string> + namespace DB { class Command; } @@ -33,6 +34,7 @@ namespace Slicer { DB::Command & command; const unsigned int idx; }; + typedef std::shared_ptr<SqlBinder> SqlBinderPtr; } diff --git a/slicer/db/sqlCommon.cpp b/slicer/db/sqlCommon.cpp index 40e43f7..21fb9e5 100644 --- a/slicer/db/sqlCommon.cpp +++ b/slicer/db/sqlCommon.cpp @@ -59,6 +59,7 @@ namespace Slicer { } AdHocFormatter(UnsuitableIdFieldTypeMsg, "Unsuitable id field type [%?]"); + void UnsuitableIdFieldType::ice_print(std::ostream & s) const { diff --git a/slicer/db/sqlInsertSerializer.cpp b/slicer/db/sqlInsertSerializer.cpp index 58e30e2..b4d46e6 100644 --- a/slicer/db/sqlInsertSerializer.cpp +++ b/slicer/db/sqlInsertSerializer.cpp @@ -88,6 +88,7 @@ namespace Slicer { private: DB::Connection * const connection; + template<typename T> inline void doSet([[maybe_unused]] T & v, [[maybe_unused]] const char * Tname) const diff --git a/slicer/db/sqlInsertSerializer.h b/slicer/db/sqlInsertSerializer.h index b6a0d27..4a6a423 100644 --- a/slicer/db/sqlInsertSerializer.h +++ b/slicer/db/sqlInsertSerializer.h @@ -7,6 +7,7 @@ #include <slicer/serializer.h> #include <string> #include <visibility.h> + namespace DB { class Connection; class ModifyCommand; diff --git a/slicer/db/sqlSelectDeserializer.h b/slicer/db/sqlSelectDeserializer.h index bf2b351..9e9d499 100644 --- a/slicer/db/sqlSelectDeserializer.h +++ b/slicer/db/sqlSelectDeserializer.h @@ -6,6 +6,7 @@ #include <slicer/serializer.h> #include <string> #include <visibility.h> + namespace DB { class SelectCommand; } diff --git a/slicer/db/sqlSource.h b/slicer/db/sqlSource.h index 4b76974..70a0122 100644 --- a/slicer/db/sqlSource.h +++ b/slicer/db/sqlSource.h @@ -5,9 +5,11 @@ #include <Ice/Config.h> #include <memory> #include <string> + namespace DB { class Column; } + namespace boost::posix_time { class ptime; class time_duration; @@ -36,6 +38,7 @@ namespace Slicer { private: const DB::Column & column; }; + typedef std::shared_ptr<SqlSource> SqlSourcePtr; } diff --git a/slicer/db/sqlTablePatchSerializer.cpp b/slicer/db/sqlTablePatchSerializer.cpp index 3b73f05..a22f15a 100644 --- a/slicer/db/sqlTablePatchSerializer.cpp +++ b/slicer/db/sqlTablePatchSerializer.cpp @@ -11,6 +11,7 @@ namespace Slicer { AdHocFormatter(ttname, "slicer_tmp_%?"); + SqlTablePatchSerializer::SqlTablePatchSerializer(DB::Connection * const d, DB::TablePatch & tp) : db(d), tablePatch(tp) { @@ -47,6 +48,7 @@ namespace Slicer { } AdHocFormatter(createTmpTable, "CREATE TEMPORARY TABLE %? AS SELECT * FROM %? WHERE 1 = 0"); + void SqlTablePatchSerializer::createTemporaryTable() { @@ -54,6 +56,7 @@ namespace Slicer { } AdHocFormatter(dropTmpTable, "DROP TABLE %?"); + void SqlTablePatchSerializer::dropTemporaryTable() { diff --git a/slicer/db/sqlTablePatchSerializer.h b/slicer/db/sqlTablePatchSerializer.h index 21c8b3d..73e084d 100644 --- a/slicer/db/sqlTablePatchSerializer.h +++ b/slicer/db/sqlTablePatchSerializer.h @@ -4,6 +4,7 @@ #include <slicer/modelParts.h> #include <slicer/serializer.h> #include <visibility.h> + namespace DB { class Connection; class TablePatch; diff --git a/slicer/db/sqlUpdateSerializer.h b/slicer/db/sqlUpdateSerializer.h index 8707988..54a5f82 100644 --- a/slicer/db/sqlUpdateSerializer.h +++ b/slicer/db/sqlUpdateSerializer.h @@ -6,6 +6,7 @@ #include <slicer/serializer.h> #include <string> #include <visibility.h> + namespace DB { class Connection; class ModifyCommand; diff --git a/slicer/db/testInsert.cpp b/slicer/db/testInsert.cpp index a9e42f1..24cae7e 100644 --- a/slicer/db/testInsert.cpp +++ b/slicer/db/testInsert.cpp @@ -25,6 +25,7 @@ using namespace std::literals; BOOST_TEST_DONT_PRINT_LOG_VALUE(TestModule::DateTime) BOOST_TEST_DONT_PRINT_LOG_VALUE(TestModule::IsoDate) BOOST_TEST_DONT_PRINT_LOG_VALUE(TestDatabase::Timespan) + // LCOV_EXCL_STOP namespace std { diff --git a/slicer/db/testMockCommon.h b/slicer/db/testMockCommon.h index e12d2c6..891fb74 100644 --- a/slicer/db/testMockCommon.h +++ b/slicer/db/testMockCommon.h @@ -5,6 +5,7 @@ #include <mockDatabase.h> #include <pq-mock.h> #include <visibility.h> + // IWYU pragma: no_forward_declare PQ::Mock namespace DB { class Connection; diff --git a/slicer/db/testPatch.cpp b/slicer/db/testPatch.cpp index 6db440a..3e8b1e4 100644 --- a/slicer/db/testPatch.cpp +++ b/slicer/db/testPatch.cpp @@ -11,9 +11,11 @@ #include <memory> #include <string> #include <tablepatch.h> + namespace TestDatabase { class Timespan; } + namespace TestModule { struct DateTime; struct IsoDate; |