1 Star 0 Fork 512

赵广志 / sequoiasql-mysql

forked from SequoiaDB / sequoiasql-mysql 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
sdb_conf.h 1.63 KB
一键复制 编辑 原始数据 按行查看 历史
/* Copyright (c) 2018, SequoiaDB and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
#ifndef SDB_CONF__H
#define SDB_CONF__H
#include "sdb_util.h"
#include <mysql/plugin.h>
#include <my_global.h>
#include <sql_string.h>
#define SDB_COORD_NUM_MAX 128
class Sdb_conn_addrs {
public:
Sdb_conn_addrs();
~Sdb_conn_addrs();
int parse_conn_addrs(const char *conn_addrs);
const char **get_conn_addrs() const;
int get_conn_num() const;
private:
Sdb_conn_addrs(const Sdb_conn_addrs &rh) {}
Sdb_conn_addrs &operator=(const Sdb_conn_addrs &rh) { return *this; }
void clear_conn_addrs();
private:
char *addrs[SDB_COORD_NUM_MAX];
int conn_num;
};
int sdb_encrypt_password();
int sdb_get_password(String &res);
extern char *sdb_conn_str;
extern char *sdb_user;
extern my_bool sdb_use_partition;
extern my_bool sdb_use_bulk_insert;
extern int sdb_bulk_insert_size;
extern int sdb_replica_size;
extern my_bool sdb_use_autocommit;
extern my_bool sdb_debug_log;
extern st_mysql_sys_var *sdb_sys_vars[];
#endif
C++
1
https://gitee.com/zgzwelldone/sequoiasql-mysql.git
git@gitee.com:zgzwelldone/sequoiasql-mysql.git
zgzwelldone
sequoiasql-mysql
sequoiasql-mysql
master

搜索帮助