mirror of
https://gitee.com/wangbin579/cetus.git
synced 2024-12-03 20:37:45 +08:00
eec052ddf7
DATETIME partitions first parsed as STR, then convert to int64_t
55 lines
2.6 KiB
C
55 lines
2.6 KiB
C
#ifndef ADMIN_COMMANDS_H
|
|
#define ADMIN_COMMANDS_H
|
|
|
|
#include "glib-ext.h"
|
|
|
|
typedef struct token_t {
|
|
char* z;
|
|
int n;
|
|
} token_t;
|
|
|
|
typedef struct network_mysqld_con network_mysqld_con;
|
|
|
|
void admin_clear_error(network_mysqld_con*);
|
|
int admin_get_error(network_mysqld_con*);
|
|
void admin_syntax_error(network_mysqld_con*);
|
|
void admin_stack_overflow(network_mysqld_con*);
|
|
|
|
void admin_select_conn_details(network_mysqld_con* con);
|
|
void admin_select_all_backends(network_mysqld_con*);
|
|
void admin_select_all_groups(network_mysqld_con* con);
|
|
void admin_show_connectionlist(network_mysqld_con *admin_con, int show_count);
|
|
void admin_show_allow_ip(network_mysqld_con *con, const char* module_name);
|
|
void admin_add_allow_ip(network_mysqld_con *con, char *module, char *addr);
|
|
void admin_delete_allow_ip(network_mysqld_con *con, char* module, char* ip);
|
|
void admin_set_reduce_conns(network_mysqld_con* con, int mode);
|
|
void admin_set_maintain(network_mysqld_con* con, int mode);
|
|
void admin_show_status(network_mysqld_con* con, const char* like);
|
|
void admin_show_variables(network_mysqld_con* con, const char* like);
|
|
void admin_select_version(network_mysqld_con* con);
|
|
void admin_select_connection_stat(network_mysqld_con* con, int backend_ndx, char *user);
|
|
void admin_select_user_password(network_mysqld_con* con, char* from_table, char *user);
|
|
void admin_update_user_password(network_mysqld_con* con, char *from_table,
|
|
char *user, char *password);
|
|
void admin_delete_user_password(network_mysqld_con* con, char* user);
|
|
void admin_insert_backend(network_mysqld_con* con, char *addr, char *type, char *state);
|
|
void admin_update_backend(network_mysqld_con* con, GList* equations,
|
|
char *cond_key, char *cond_val);
|
|
void admin_delete_backend(network_mysqld_con* con, char *key, char *val);
|
|
void admin_get_stats(network_mysqld_con* con, char* p);
|
|
void admin_get_config(network_mysqld_con* con, char* p);
|
|
void admin_set_config(network_mysqld_con* con, char* key, char* value);
|
|
void admin_reset_stats(network_mysqld_con* con);
|
|
void admin_select_help(network_mysqld_con* con);
|
|
void admin_send_overview(network_mysqld_con* con);
|
|
enum sharding_method_t;
|
|
void admin_create_vdb(network_mysqld_con* con, int id, GPtrArray* partitions,
|
|
enum sharding_method_t method, int key_type, int shard_num);
|
|
void admin_create_sharded_table(network_mysqld_con*, const char* schema, const char* table,
|
|
const char* key, int vdb_id);
|
|
|
|
void admin_select_vdb(network_mysqld_con* con);
|
|
void admin_select_sharded_table(network_mysqld_con* con);
|
|
|
|
#endif // ADMIN_COMMANDS_H
|