#include <insertpolicy.h>
Public Types | |
typedef AccessController | access_controller |
Alias for our access controller type. | |
Public Member Functions | |
RowCountInsertPolicy (unsigned int rows) | |
Constructor. | |
~RowCountInsertPolicy () | |
Destructor. | |
template<class RowT> | |
bool | can_add (int, const RowT &) |
Can we add another object to the query? |
This policy is very lightweight, but is only reliable when you can predict the size of each INSERT in advance. The others do more processing to reduce the risk of unpredictable row sizes.
bool RowCountInsertPolicy< AccessController >::can_add | ( | int | , | |
const RowT & | ||||
) | [inline] |
Can we add another object to the query?
true | if the object is allowed to be added to the INSERT statement |