MySQL++
3.2.5
|
An insert policy object that triggers a new INSERT statement after a given number of rows have been inserted. More...
#include <query.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? More... | |
An insert policy object that triggers a new INSERT statement after a given number of rows have been inserted.
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.
|
inline |
Can we add another object to the query?
true | if the object is allowed to be added to the INSERT statement |