| 908 | } |
| 909 | |
| 910 | void editDatabaseBoardLabel() |
| 911 | { |
| 912 | using namespace ::Database; |
| 913 | std::string coordStr, newText; |
| 914 | std::cin >> coordStr; |
| 915 | std::cin.ignore(1); |
| 916 | std::getline(std::cin, newText); |
| 917 | getDatabasePosition(); |
| 918 | |
| 919 | std::stringstream ss; |
| 920 | ss << coordStr; |
| 921 | auto pos = parseLegalCoord(ss, *board); |
| 922 | if (!pos.has_value()) |
| 923 | return; |
| 924 | |
| 925 | if (Search::Threads.dbStorage() && !Config::DatabaseReadonlyMode) { |
| 926 | DBClient dbClient(*Search::Threads.dbStorage(), RECORD_MASK_TEXT); |
| 927 | dbClient.setBoardText(*board, options.rule, *pos, ConsoleCPToUTF8(newText)); |
| 928 | } |
| 929 | } |
| 930 | |
| 931 | void deleteDatabaseAll(bool getPosition) |
| 932 | { |
nothing calls this directly
no test coverage detected