Interface PreparedQueryInterface

Summary

Fully Qualified Name: CodeIgniter\Database\PreparedQueryInterface

Description

Prepared query interface

Methods

Name Description Defined By
close() Explicity closes the statement. PreparedQueryInterface
execute() Takes a new set of data and runs it against the currently prepared query. Upon success, will return a Results object. PreparedQueryInterface
getErrorCode() Returns the error code created while executing this statement. PreparedQueryInterface
getErrorMessage() Returns the error message created while executing this statement. PreparedQueryInterface
getQueryString() Returns the SQL that has been prepared. PreparedQueryInterface
prepare() Prepares the query against the database, and saves the connection info necessary to execute the query later. PreparedQueryInterface

Method Details

close()

Explicity closes the statement.

Returns:

execute()

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

Parameter Name Type Description
$data array

Returns: \ResultInterface

getErrorCode()

Returns the error code created while executing this statement.

Returns: int

getErrorMessage()

Returns the error message created while executing this statement.

Returns: string

getQueryString()

Returns the SQL that has been prepared.

Returns: string

prepare()

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

Parameter Name Type Description
$sql string
$options array Passed

Returns: mixed

Top