24#include <plugin/json_server/db_access.h>
30 DBAccess::DBAccess(Json::Value &json_in,Json::Value &json_out,
enum evhttp_cmd_type
type,
const char* schema,
const char* table)
43 generator->generateSql(
_type);
44 sql= generator->getSQL();
56 if(
_type == EVHTTP_REQ_POST && executor->
getErr() == drizzled::ER_TABLE_UNKNOWN)
58 generator->generateCreateTableSql();
59 sql= generator->getSQL();
62 generator->generateSql(
_type);
63 sql= generator->getSQL();
84 delete(jsonGenerator);
DBAccess(Json::Value &json_in, Json::Value &json_out, enum evhttp_cmd_type type, const char *schema, const char *table)
enum evhttp_cmd_type _type
bool executeSQL(string &sql)
const drizzled::error_t & getErr() const
void generateJson(enum evhttp_cmd_type type)
Json::Value getJson() const
void generateSQLErrorJson()
Convert from decimal to binary representation.