19 #include <ndb_global.h>
27 int main(
int argc,
const char** argv){
32 {
"usage",
'?', arg_flag, &_help,
"Print help",
"" }
34 int num_args =
sizeof(args) /
sizeof(args[0]);
37 "This program will drop all Ndb standard tables from NDB\n";
39 if(getarg(args, num_args, argc, argv, &optind) || _help) {
40 arg_printusage(args, num_args, argv[0], desc);
41 return NDBT_ProgramExit(NDBT_WRONGARGS);
48 return NDBT_ProgramExit(NDBT_FAILED);
51 Ndb MyNdb(&con,
"TEST_DB" );
53 if(MyNdb.init() != 0){
54 ERR(MyNdb.getNdbError());
55 return NDBT_ProgramExit(NDBT_FAILED);
58 while(MyNdb.waitUntilReady() != 0)
59 ndbout <<
"Waiting for ndb to become ready..." << endl;
61 return NDBT_Tables::dropAllTables(&MyNdb);