/usr/include/Wt/Dbo/Call is in libwtdbo-dev 3.1.10-1ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | // This may look like C code, but it's really -*- C++ -*-
/*
* Copyright (C) 2010 Emweb bvba, Kessel-Lo, Belgium.
*
* See the LICENSE file for terms of use.
*/
#ifndef WT_DBO_CALL_H_
#define WT_DBO_CALL_H_
#include <Wt/Dbo/WDboDllDefs.h>
#include <string>
#include <Wt/Dbo/WDboDllDefs.h>
namespace Wt {
namespace Dbo {
class Session;
class SqlStatement;
/*! \class Call Wt/Dbo/Call Wt/Dbo/Call
* \brief A database call.
*
* A call can be used to execute a database command (e.g. an update,
* or a stored procedure call).
*
* \sa Query
*/
class WTDBO_API Call
{
public:
/*! \brief Destructor.
*
* This executes the call if it wasn't run() yet, and the call has not
* been copied.
*/
~Call();
/*! \brief Copy constructor.
*
* This transfer the call "token" to the copy.
*/
Call(const Call& other);
/*! \brief Binds a value to the next positional marker.
*
* This binds the \p value to the next positional marker.
*/
template<typename T> Call& bind(const T& value);
void run();
private:
bool copied_, run_;
SqlStatement *statement_;
int column_;
Call(Session& session, const std::string& sql);
friend class Session;
};
}
}
#endif // WT_DBO_CALL
|