MCPcopy Create free account
hub / github.com/baidu/tera / main

Function main

src/sample/tera_sample.cc:246–261  ·  view source on GitHub ↗

演示程序

Source from the content-addressed store, hash-verified

244
245/// 演示程序
246int 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: */

Callers

nothing calls this directly

Calls 2

strerrFunction · 0.85
ShowBigTableFunction · 0.85

Tested by

no test coverage detected