24#ifndef __M_SQL_STMT_H__
25#define __M_SQL_STMT_H__
29#include <mstdlib/base/m_defs.h>
30#include <mstdlib/base/m_types.h>
31#include <mstdlib/sql/m_sql.h>
struct M_buf M_buf_t
Definition: m_buf.h:77
struct M_sql_connpool M_sql_connpool_t
Definition: m_sql.h:335
M_sql_error_t
Definition: m_sql.h:190
M_sql_data_type_t
Definition: m_sql.h:256
void M_sql_stmt_bind_clear(M_sql_stmt_t *stmt)
void M_sql_stmt_bind_new_row(M_sql_stmt_t *stmt)
M_sql_error_t M_sql_stmt_bind_int16_null(M_sql_stmt_t *stmt)
M_sql_error_t M_sql_stmt_bind_int16(M_sql_stmt_t *stmt, M_int16 val)
M_sql_error_t M_sql_stmt_bind_text_own(M_sql_stmt_t *stmt, char *text, size_t max_len)
M_sql_error_t M_sql_stmt_bind_int32(M_sql_stmt_t *stmt, M_int32 val)
M_sql_error_t M_sql_stmt_bind_text_dup(M_sql_stmt_t *stmt, const char *text, size_t max_len)
M_sql_error_t M_sql_stmt_bind_int32_null(M_sql_stmt_t *stmt)
M_sql_error_t M_sql_stmt_bind_binary_const(M_sql_stmt_t *stmt, const M_uint8 *bin, size_t bin_len)
M_sql_error_t M_sql_stmt_bind_binary_own(M_sql_stmt_t *stmt, M_uint8 *bin, size_t bin_len)
M_sql_error_t M_sql_stmt_bind_int64(M_sql_stmt_t *stmt, M_int64 val)
M_sql_error_t M_sql_stmt_bind_int64_null(M_sql_stmt_t *stmt)
void M_sql_stmt_bind_clear_row(M_sql_stmt_t *stmt)
M_sql_error_t M_sql_stmt_bind_bool(M_sql_stmt_t *stmt, M_bool val)
M_sql_error_t M_sql_stmt_bind_bool_null(M_sql_stmt_t *stmt)
M_sql_error_t M_sql_stmt_bind_text_const(M_sql_stmt_t *stmt, const char *text, size_t max_len)
M_sql_error_t M_sql_stmt_bind_binary_dup(M_sql_stmt_t *stmt, const M_uint8 *bin, size_t bin_len)
const M_uint8 * M_sql_stmt_result_binary_byname_direct(M_sql_stmt_t *stmt, size_t row, const char *col, size_t *bin_size)
const char * M_sql_stmt_result_col_name(M_sql_stmt_t *stmt, size_t col)
M_sql_error_t M_sql_stmt_result_bool(M_sql_stmt_t *stmt, size_t row, size_t col, M_bool *val)
M_bool M_sql_stmt_result_isnull_byname_direct(M_sql_stmt_t *stmt, size_t row, const char *col)
M_sql_data_type_t M_sql_stmt_result_col_type_byname(M_sql_stmt_t *stmt, const char *col, size_t *type_size)
M_sql_error_t M_sql_stmt_result_text_byname(M_sql_stmt_t *stmt, size_t row, const char *col, const char **text)
M_sql_error_t M_sql_stmt_result_text(M_sql_stmt_t *stmt, size_t row, size_t col, const char **text)
M_sql_error_t M_sql_stmt_result_binary_byname(M_sql_stmt_t *stmt, size_t row, const char *col, const M_uint8 **bin, size_t *bin_size)
M_int64 M_sql_stmt_result_int64_byname_direct(M_sql_stmt_t *stmt, size_t row, const char *col)
M_int64 M_sql_stmt_result_int64_direct(M_sql_stmt_t *stmt, size_t row, size_t col)
M_bool M_sql_stmt_result_bool_direct(M_sql_stmt_t *stmt, size_t row, size_t col)
M_int16 M_sql_stmt_result_int16_byname_direct(M_sql_stmt_t *stmt, size_t row, const char *col)
M_bool M_sql_stmt_result_isnull_direct(M_sql_stmt_t *stmt, size_t row, size_t col)
size_t M_sql_stmt_result_num_rows(M_sql_stmt_t *stmt)
M_sql_error_t M_sql_stmt_result_int32_byname(M_sql_stmt_t *stmt, size_t row, const char *col, M_int32 *val)
M_int32 M_sql_stmt_result_int32_byname_direct(M_sql_stmt_t *stmt, size_t row, const char *col)
size_t M_sql_stmt_result_total_rows(M_sql_stmt_t *stmt)
M_sql_error_t M_sql_stmt_result_int32(M_sql_stmt_t *stmt, size_t row, size_t col, M_int32 *val)
M_sql_error_t M_sql_stmt_result_bool_byname(M_sql_stmt_t *stmt, size_t row, const char *col, M_bool *val)
size_t M_sql_stmt_result_num_cols(M_sql_stmt_t *stmt)
const M_uint8 * M_sql_stmt_result_binary_direct(M_sql_stmt_t *stmt, size_t row, size_t col, size_t *bin_size)
M_sql_error_t M_sql_stmt_result_binary(M_sql_stmt_t *stmt, size_t row, size_t col, const M_uint8 **bin, size_t *bin_size)
M_sql_error_t M_sql_stmt_result_int16_byname(M_sql_stmt_t *stmt, size_t row, const char *col, M_int16 *val)
M_sql_error_t M_sql_stmt_result_isnull(M_sql_stmt_t *stmt, size_t row, size_t col, M_bool *is_null)
M_bool M_sql_stmt_result_col_idx(M_sql_stmt_t *stmt, const char *col, size_t *idx)
M_sql_error_t M_sql_stmt_result_int64(M_sql_stmt_t *stmt, size_t row, size_t col, M_int64 *val)
const char * M_sql_stmt_result_text_direct(M_sql_stmt_t *stmt, size_t row, size_t col)
M_bool M_sql_stmt_result_bool_byname_direct(M_sql_stmt_t *stmt, size_t row, const char *col)
M_sql_error_t M_sql_stmt_result_int16(M_sql_stmt_t *stmt, size_t row, size_t col, M_int16 *val)
M_sql_data_type_t M_sql_stmt_result_col_type(M_sql_stmt_t *stmt, size_t col, size_t *type_size)
size_t M_sql_stmt_result_affected_rows(M_sql_stmt_t *stmt)
M_int16 M_sql_stmt_result_int16_direct(M_sql_stmt_t *stmt, size_t row, size_t col)
M_int32 M_sql_stmt_result_int32_direct(M_sql_stmt_t *stmt, size_t row, size_t col)
const char * M_sql_stmt_result_text_byname_direct(M_sql_stmt_t *stmt, size_t row, const char *col)
M_sql_error_t M_sql_stmt_result_isnull_byname(M_sql_stmt_t *stmt, size_t row, const char *col, M_bool *is_null)
M_sql_error_t M_sql_stmt_result_int64_byname(M_sql_stmt_t *stmt, size_t row, const char *col, M_int64 *val)
M_sql_error_t M_sql_stmt_prepare(M_sql_stmt_t *stmt, const char *query)
M_bool M_sql_stmt_set_max_fetch_rows(M_sql_stmt_t *stmt, size_t num)
M_sql_error_t M_sql_stmt_execute(M_sql_connpool_t *pool, M_sql_stmt_t *stmt)
M_sql_stmt_t * M_sql_stmt_groupinsert_prepare(M_sql_connpool_t *pool, const char *query)
M_sql_error_t M_sql_stmt_fetch(M_sql_stmt_t *stmt)
struct M_sql_stmt M_sql_stmt_t
Definition: m_sql_stmt.h:46
const char * M_sql_stmt_get_error_string(M_sql_stmt_t *stmt)
M_sql_error_t M_sql_stmt_prepare_buf(M_sql_stmt_t *stmt, M_buf_t *query)
M_sql_stmt_t * M_sql_stmt_groupinsert_prepare_buf(M_sql_connpool_t *pool, M_buf_t *query)
M_bool M_sql_stmt_has_remaining_rows(M_sql_stmt_t *stmt)
M_sql_error_t M_sql_stmt_get_error(M_sql_stmt_t *stmt)
void M_sql_stmt_destroy(M_sql_stmt_t *stmt)
M_bool M_sql_stmt_set_master_only(M_sql_stmt_t *stmt)
M_sql_stmt_t * M_sql_stmt_create(void)