\CodeIgniter\DatabasePreparedQueryInterface

Prepared query interface

Summary

Methods
Constants
execute()
prepare()
close()
getQueryString()
getErrorCode()
getErrorMessage()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

execute()

execute(array  $data) : \CodeIgniter\Database\ResultInterface

Takes a new set of data and runs it against the currently prepared query. Upon success, will return a Results object.

Parameters

array $data

Returns

\CodeIgniter\Database\ResultInterface

prepare()

prepare(string  $sql, array  $options = array()) : mixed

Prepares the query against the database, and saves the connection info necessary to execute the query later.

Parameters

string $sql
array $options

Passed to the connection's prepare statement.

Returns

mixed

close()

close() 

Explicity closes the statement.

getQueryString()

getQueryString() : string

Returns the SQL that has been prepared.

Returns

string

getErrorCode()

getErrorCode() : integer

Returns the error code created while executing this statement.

Returns

integer

getErrorMessage()

getErrorMessage() : string

Returns the error message created while executing this statement.

Returns

string