| 32 | static const uint16_t id_max_len = 22; |
| 33 | #define kIdMaxLen (id_max_len + 1) |
| 34 | static bool isFileExists(const std::string& filePath) { |
| 35 | std::ifstream fin(filePath.c_str()); |
| 36 | if (!fin) { |
| 37 | std::cerr << filePath << " not exists" << std::endl; |
| 38 | return false; |
| 39 | } |
| 40 | return true; |
| 41 | } |
| 42 | |
| 43 | struct sqlite3_blob_data { |
| 44 | unsigned char* data; |