Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

48 lines (30 sloc) 1.064 kb
/*
Copyright (C) 2010, Oleg Efimov <efimovov@gmail.com>
See license text in LICENSE file
*/
#ifndef NODE_MYSQL_STATEMENT_H
#define NODE_MYSQL_STATEMENT_H
#include <mysql/mysql.h>
#include <v8.h>
#include <node.h>
#include <node_events.h>
// This line caused
// "Do not use namespace using-directives. Use using-declarations instead."
// [build/namespaces] [5] error in cpplint.py
using namespace v8;
// static Persistent<String> prepare_symbol;
class MysqlSyncConn::MysqlSyncStmt : public EventEmitter {
public:
static Persistent<FunctionTemplate> constructor_template;
static void Init(Handle<Object> target);
protected:
MYSQL_STMT *_stmt;
MysqlSyncStmt();
explicit MysqlSyncStmt(MYSQL_STMT *my_stmt):
_stmt(my_stmt), EventEmitter() {}
~MysqlSyncStmt();
static Handle<Value> New(const Arguments& args);
static Handle<Value> Prepare(const Arguments& args);
};
Persistent<FunctionTemplate> MysqlSyncConn::MysqlSyncStmt::constructor_template;
#endif // NODE_MYSQL_STATEMENT_H
Jump to Line
Something went wrong with that request. Please try again.