diff options
| author | Aotrix <[email protected]> | 2025-03-22 15:10:21 +0100 |
|---|---|---|
| committer | Aotrix <[email protected]> | 2025-03-22 15:10:21 +0100 |
| commit | 562f5dee52a79f52ae78a2a72c3c0adde769cd9a (patch) | |
| tree | 30723317f423c7f0ec863aa13eab7c744dedc043 /src | |
| parent | d88604989893145c8dff1d8d8fd0c88de79c5417 (diff) | |
added todo info
Diffstat (limited to 'src')
| -rw-r--r-- | src/postgresHandler.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/postgresHandler.cpp b/src/postgresHandler.cpp index 4490dcc..f00d337 100644 --- a/src/postgresHandler.cpp +++ b/src/postgresHandler.cpp @@ -43,9 +43,10 @@ void add_cards_to_database(const std::string &t_cards, pqxx::work &t_tx) { auto words_begin = std::sregex_iterator(t_cards.begin(), t_cards.end(), key_regex); auto words_end = std::sregex_iterator(); - std::string insert_query; // TODO: complete + std::string insert_query; // TODO: complete: add base first "insert into..." for (auto it = words_begin; it != words_end; ++it) { const unsigned int type_index = get_type_of_regex_iterator(it); + // TODO: format info depending on type_index then add it to insert_query std::cout << (*it)[type_index].str() << std::endl; } } |
