演示程序
| 244 | |
| 245 | /// 演示程序 |
| 246 | int main(int argc, char* argv[]) { |
| 247 | tera::ErrorCode error_code; |
| 248 | // 根据配置创建一个client |
| 249 | tera::Client* client = tera::Client::NewClient("./tera.flag", "tera_sample", &error_code); |
| 250 | if (client == NULL) { |
| 251 | printf("Create tera client fail: %s\n", tera::strerr(error_code)); |
| 252 | return 1; |
| 253 | } |
| 254 | |
| 255 | // CreateTable(client); |
| 256 | // 演示三种使用方式 |
| 257 | ShowBigTable(client); |
| 258 | // ShowSampleTable(client); |
| 259 | // ShowKv(client); |
| 260 | return 0; |
| 261 | } |
| 262 | |
| 263 | /* vim: set expandtab ts=4 sw=4 sts=4 tw=100: */ |
nothing calls this directly
no test coverage detected