#include <insertpolicy.h>
Public Types | |
| typedef AccessController | access_controller |
| Alias for our access controller type. | |
Public Member Functions | |
| MaxPacketInsertPolicy (Connection *con, int size) | |
| Constructor. | |
| MaxPacketInsertPolicy (int size) | |
| Constructor. | |
| ~MaxPacketInsertPolicy () | |
| Destructor. | |
| template<class RowT> | |
| bool | can_add (int size, const RowT &object) const |
| Can we add another object to the query? | |
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.
| MaxPacketInsertPolicy< AccessController >::MaxPacketInsertPolicy | ( | Connection * | con, | |
| int | size | |||
| ) | [inline] |
Constructor.
| con | connection object used for escaping text | |
| size | the maximum allowed size for an INSERT statement |
| MaxPacketInsertPolicy< AccessController >::MaxPacketInsertPolicy | ( | int | size | ) | [inline] |
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.
| size | the maximum allowed size for an INSERT statement |
| bool MaxPacketInsertPolicy< AccessController >::can_add | ( | int | size, | |
| const RowT & | object | |||
| ) | const [inline] |
Can we add another object to the query?
| size | current length of the INSERT statement | |
| object | the SSQLS object to be added |
| true | if the object is allowed to be added to the INSERT statement |
1.4.7