| 73 | } |
| 74 | |
| 75 | bool Annotations::Close() { |
| 76 | int r = sqlite3_close(sqldb); |
| 77 | sqldb = nullptr; |
| 78 | |
| 79 | if (r != SQLITE_OK) { |
| 80 | SDL_LogError(SDL_LOG_CATEGORY_ERROR, "%s", "Annotations database could not be closed"); |
| 81 | return false; |
| 82 | } |
| 83 | |
| 84 | return true; |
| 85 | } |
| 86 | |
| 87 | bool Annotations::GenerateList() { |
| 88 | static const char sql[] = "SELECT id,side,posx,posy,net,part,pin,note FROM annotations WHERE visible=1;"; |
no outgoing calls
no test coverage detected