Source
int zbx_dbconn_lock_ids(zbx_dbconn_t *db, const char *table_name, const char *field_name, zbx_vector_uint64_t *ids);
/*
** Copyright (C) 2001-2024 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;
typedef struct zbx_dbconn zbx_dbconn_t;
/* database field value */
typedef union
{
int i32;
zbx_uint64_t ui64;
double dbl;
char *str;
}
zbx_db_value_t;
typedef struct
{
char *dbhost;
char *dbname;
char *dbschema;
char *dbuser;
char *dbpassword;
char *dbsocket;
char *db_tls_connect;
char *db_tls_cert_file;
char *db_tls_key_file;
char *db_tls_ca_file;
char *db_tls_cipher;
char *db_tls_cipher_13;
unsigned int dbport;
int log_slow_queries;
int read_only_recoverable;
}
zbx_db_config_t;