Source
int zbx_db_init_basic(const char *dbname, const char *const dbschema, int log_slow_queries, char **error);
/*
** Zabbix
** Copyright (C) 2001-2023 Zabbix SIA
**
** 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; either version 2 of the License, or
** (at your option) any later version.
**
** 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 Street, Fifth Floor, Boston, MA 02110-1301, USA.
**/
typedef char **zbx_db_row_t;
typedef struct zbx_db_result *zbx_db_result_t;
/* database field value */
typedef union
{
int i32;
zbx_uint64_t ui64;
double dbl;
char *str;
}
zbx_db_value_t;
typedef struct
{
char *config_dbhost;
char *config_dbname;
char *config_dbschema;
char *config_dbuser;
char *config_dbpassword;
char *config_dbsocket;
char *config_db_tls_connect;
char *config_db_tls_cert_file;
char *config_db_tls_key_file;
char *config_db_tls_ca_file;
char *config_db_tls_cipher;
char *config_db_tls_cipher_13;
int config_dbport;
}
zbx_config_dbhigh_t;