Source
int zbx_db_init_basic(const char *dbname, const char *const dbschema, int log_slow_queries, char **error);
/*
** Copyright (C) 2001-2025 Zabbix SIA
**
** This program is free software: you can redistribute it and/or modify it under the terms of
** the GNU Affero General Public License as published by the Free Software Foundation, version 3.
**
** 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 Affero General Public License for more details.
**
** You should have received a copy of the GNU Affero General Public License along with this program.
** If not, see <https://www.gnu.org/licenses/>.
**/
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;
int read_only_recoverable;
}
zbx_config_dbhigh_t;
/* we have to put double % here for sprintf */