| Fully Qualified Name: | CodeIgniter\Database\PreparedQueryInterface |
Prepared query interface
| 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 |
Explicity closes the statement.
Returns:
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
Returns the error code created while executing this statement.
Returns: int
Returns the error message created while executing this statement.
Returns: string
Returns the SQL that has been prepared.
Returns: string
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