An insert policy object that triggers a new INSERT statement if the object to be added would cause the statement to exceed a maximum size.
More...
#include <insertpolicy.h>
template<class AccessController = Transaction>
class mysqlpp::MaxPacketInsertPolicy< AccessController >
An insert policy object that triggers a new INSERT statement if the object to be added would cause the statement to exceed a maximum size.
This differs from the SizeThresholdInsertPolicy in that it builds the VALUES expression and checks whether it would cause the length of the INSERT statement to exceed the maximum size.
template<class AccessController = Transaction>
Constructor.
- Parameters
-
con | connection object used for escaping text |
size | the maximum allowed size for an INSERT statement |
template<class AccessController = Transaction>
Constructor.
This version does not use a Connection* so it will not be able to take the character set into account when escaping the text.
- Parameters
-
size | the maximum allowed size for an INSERT statement |
template<class AccessController = Transaction>
template<class RowT >
Can we add another object to the query?
- Parameters
-
size | current length of the INSERT statement |
object | the SSQLS object to be added |
- Return values
-
true | if the object is allowed to be added to the INSERT statement |
The documentation for this class was generated from the following file: