Module helper_statement

This module contains functions these are responsible for processing prepared statements.

Copyright © 2010-2014 Alexei Krasnopolski

Version: 1.2.4

Introduced in: 2010-12-21

Authors: Alexei Krasnopolski (krasnop@bellsouth.net) [web site: http://krasnopolski.org/].

Description

This module contains functions these are responsible for processing prepared statements.

Function Index

pack_null_bit_map/2Generates binary that represents null bit map - definition of parameters with NULL value.
pack_parameters/2The function converts list of parameters to binary that is prepared to form statement execute command.
pack_types/1The function converts list of constants representing a MySQL types of prepared statement parameters to binary().

Function Details

pack_types/1

pack_types(Types::[mysql_type()]) -> binary()

The function converts list of constants representing a MySQL types of prepared statement parameters to binary(). The binary will be inserted to prepared statement execution command.

pack_parameters/2

pack_parameters(Types, Params) -> binary()

The function converts list of parameters to binary that is prepared to form statement execute command.

pack_null_bit_map/2

pack_null_bit_map(Parameter_types, Parameters) -> binary()

Generates binary that represents null bit map - definition of parameters with NULL value.


Generated by EDoc, Mar 19 2014, 23:27:00.