Struct ParameterSpecialization

A struct to represent specializations of prepared statement parameters.

Strongly considering the removal of the isNull field, now that Prepared can handle null as a value just fine.

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.

Fields

Name Type Description
chunkDelegate uint delegate(ubyte[])
chunkSize uint
pIndex ulong
type SQLType

Authors

Copyright

License