MCPcopy Create free account
hub / github.com/4paradigm/OpenMLDB / HandleNSClientHelp

Function HandleNSClientHelp

src/cmd/fedb.cc:2662–2982  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2660}
2661
2662void HandleNSClientHelp(const std::vector<std::string>& parts,
2663 ::fedb::client::NsClient* client) {
2664 if (parts.size() == 1) {
2665 printf("addindex - add index to table \n");
2666 printf("addtablefield - add field to the schema table \n");
2667 printf("addreplica - add replica to leader\n");
2668 printf("cancelop - cancel the op\n");
2669 printf("create - create table\n");
2670 printf("confset - update conf\n");
2671 printf("confget - get conf\n");
2672 printf("count - count the num of data in specified key\n");
2673 printf(
2674 "changeleader - select leader again when the endpoint of leader "
2675 "offline\n");
2676 printf("delete - delete pk\n");
2677 printf("delreplica - delete replica from leader\n");
2678 printf("drop - drop table\n");
2679 printf("exit - exit client\n");
2680 printf("get - get only one record\n");
2681 printf("gettablepartition - get partition info\n");
2682 printf("help - get cmd info\n");
2683 printf("makesnapshot - make snapshot\n");
2684 printf("migrate - migrate partition form one endpoint to another\n");
2685 printf("man - get cmd info\n");
2686 printf(
2687 "offlineendpoint - select leader and delete replica when endpoint "
2688 "offline\n");
2689 printf("preview - preview data\n");
2690 printf("put - insert data into table\n");
2691 printf("quit - exit client\n");
2692 printf("recovertable - recover only one table partition\n");
2693 printf(
2694 "recoverendpoint - recover all tables in endpoint when online\n");
2695 printf("scan - get records for a period of time\n");
2696 printf("showtable - show table info\n");
2697 printf("showtablet - show tablet info\n");
2698 printf("showsdkendpoint - show sdkendpoint info\n");
2699 printf("showns - show nameserver info\n");
2700 printf("showdb - show all databases\n");
2701 printf("showschema - show schema info\n");
2702 printf("showopstatus - show op info\n");
2703 printf("settablepartition - update partition info\n");
2704 printf("setttl - set table ttl\n");
2705 printf("updatetablealive - update table alive status\n");
2706 printf("info - show information of the table\n");
2707 printf("addrepcluster - add remote replica cluster\n");
2708 printf("showrepcluster - show remote replica cluster\n");
2709 printf("removerepcluster - remove remote replica cluste \n");
2710 printf("switchmode - switch cluster mode\n");
2711 printf(
2712 "synctable - synctable from leader cluster to replica cluster\n");
2713 printf("deleteindx - delete index of specified table\n");
2714 printf("setsdkendpoint - set sdkendpoint for external network sdk\n");
2715 printf("showcatalogversion - show catalog version\n");
2716 } else if (parts.size() == 2) {
2717 if (parts[1] == "create") {
2718 printf("desc: create table\n");
2719 printf("usage: create table_meta_file_path\n");

Callers 1

StartNsClientFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected