ParameterSpecialization

A struct to represent specializations of prepared statement parameters.

There are two specializations. First you can set an isNull flag to indicate that the parameter is to have the SQL NULL value.

Second, if you need to send large objects to the database it might be convenient to send them in pieces. These two variables allow for this. If both are provided then the corresponding column will be populated by calling the delegate repeatedly. the source should fill the indicated slice with data and arrange for the delegate to return the length of the data supplied. Af that is less than the chunkSize then the chunk will be assumed to be the last one.

Members

Variables

chunkDelegate
uint delegate(ubyte[]) chunkDelegate;
Undocumented in source.
chunkSize
uint chunkSize;
Undocumented in source.
dummy
bool dummy;
Undocumented in source.
isNull
bool isNull;
Undocumented in source.
pIndex
uint pIndex;
Undocumented in source.
type
SQLType type;
Undocumented in source.

Meta