/* Copyright (c) 2017-2018 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "test-lib.h"
#include "str.h"
#include "buffer.h"
#include "sql-api-private.h"
#include "driver-test.h"
#include "array.h"
#include "hex-binary.h"
struct test_sql_db {
const char *error;
};
struct test_sql_result {
const char *error;
};
static const char *
static const char *
static struct sql_result *
static struct sql_transaction_context *
void *context);
static int
const char **error_r);
static void
static void
unsigned int *affected_rows);
static const char *
static const char *
static unsigned int
static const char *
static int
static const char *
static const unsigned char *
static const char *
const char *field_name);
static const char *const *
.name = "mysql",
.v = {
.exec = driver_test_exec,
}
};
.name = "cassandra",
.v = {
.exec = driver_test_exec,
}
};
.name = "sqlite",
.v = {
.exec = driver_test_exec,
}
};
.v = {
}
};
void sql_driver_test_register(void)
{
}
void sql_driver_test_unregister(void)
{
}
const char *connect_string ATTR_UNUSED)
{
}
{
}
{
}
{
}
{
}
{
/* nix */
return 0;
}
{ }
static const char *
const char *string)
{
}
}
static const char *
{
return string;
}
{
/* i_debug("DUMMY EXECUTE: %s", query);
i_debug("DUMMY EXPECT : %s", result->queries[result->cur]); */
}
}
static void
{
}
static struct sql_result *
{
}
}
/* drop it from array if it's used up */
}
static struct sql_transaction_context *
{
return ctx;
}
static void
{
}
static int
const char **error_r)
{
int ret = 0;
ret = -1;
}
return ret;
}
static void
{
}
static void
unsigned int *affected_rows)
{
if (affected_rows != NULL)
/* drop it from array if it's used up */
}
static const char *
{
}
static const char *
{
}
{
(struct test_sql_result *)result;
}
{
(struct test_sql_result *)result;
if (r == NULL) return 0;
}
}
static unsigned int
{
(struct test_sql_result *)result;
}
static const char *
{
(struct test_sql_result *)result;
}
static int
{
(struct test_sql_result *)result;
return i;
}
return -1;
}
static const char *
{
(struct test_sql_result *)result;
}
static const unsigned char *
{
/* expect it hex encoded */
*size_r = 0;
return NULL;
}
}
static const char *
const char *field_name)
{
}
static const char *const *
{
(struct test_sql_result *)result;
}
{
(struct test_sql_result *)result;
}
const struct test_driver_result *result)
{
}
{
}