\JSONDB\PreparedQueryStatement

Class PreparedQueryStatement

Summary

Properties

$database

$database : \JSONDB\Database
Description The Database class instance to use with the prepared query
Type \JSONDB\Database

$queryString

$queryString : string
Description The prepared query
Type string

$preparedQueryKeys

$preparedQueryKeys : array
Description The array of key presents in the prepared query
Type array

Methods

__construct()

__construct(string  $query, \JSONDB\Database  $database)

PreparedQueryStatement __constructor.

Parameters
string $query The prepared query
\JSONDB\Database $database The Database class instance to use with the prepared query

bindValue()

bindValue(string  $key, string|integer|boolean|array|null  $value, integer  $parse_method = \JSONDB\JSONDB::PARAM_STRING)

Binds a value in the prepared query.

Parameters
string $key The name of the key
string|integer|boolean|array|null $value The value which replaces the given key
integer $parse_method The method used to parse the value
Throws

\JSONDB\Exception