summaryrefslogtreecommitdiff
path: root/src/database/insert_query.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/database/insert_query.cpp')
-rw-r--r--src/database/insert_query.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/database/insert_query.cpp b/src/database/insert_query.cpp
deleted file mode 100644
index f72d67f..0000000
--- a/src/database/insert_query.cpp
+++ /dev/null
@@ -1,21 +0,0 @@
-#include <database/insert_query.hpp>
-
-template <>
-std::string before_value<Database::Date>()
-{
- if (Database::engine_type() == DatabaseEngine::EngineType::Sqlite3)
- return "julianday(";
- if (Database::engine_type() == DatabaseEngine::EngineType::Postgresql)
- return "to_timestamp(";
- return {};
-}
-
-template <>
-std::string after_value<Database::Date>()
-{
- if (Database::engine_type() == DatabaseEngine::EngineType::Sqlite3)
- return ", \"unixepoch\")";
- if (Database::engine_type() == DatabaseEngine::EngineType::Postgresql)
- return ")";
- return {};
-}