

#ifndef SQLStatementSync_h
#define SQLStatementSync_h

#if ENABLE(SQL_DATABASE)

#include "SQLValue.h"
#include <wtf/Forward.h>
#include <wtf/Vector.h>
#include <wtf/text/WTFString.h>

namespace WebCore {

class DatabaseSync;
class SQLResultSet;

typedef int ExceptionCode;

class SQLStatementSync {
public:
    SQLStatementSync(const String& statement, const Vector<SQLValue>& arguments, int permissions);

    PassRefPtr<SQLResultSet> execute(DatabaseSync*, ExceptionCode&);

private:
    String m_statement;
    Vector<SQLValue> m_arguments;
    int m_permissions;
};

} // namespace WebCore

#endif // ENABLE(SQL_DATABASE)

#endif // SQLStatementSync_h
