QueryInfo
extends QueryInfo
in package
FinalYes
Represents query information.
This class extends the functionality of SqlQueryInfo, providing additional features and information about a database query.
Table of Contents
Properties
- $affected : int
- The number of affected rows by the query.
- $error : string
- Any error message associated with the query execution.
- $insertid : int
- The ID of the last inserted row (if applicable).
- $query : string
- The SQL query string.
- $type : string
- The type of the query (e.g., SELECT, INSERT, UPDATE, DELETE).
Methods
- __construct() : mixed
- Constructs a new QueryInfo object.
Properties
$affected
The number of affected rows by the query.
public
int
$affected
$error
Any error message associated with the query execution.
public
string
$error
$insertid
The ID of the last inserted row (if applicable).
public
int
$insertid
$query
The SQL query string.
public
string
$query
$type
The type of the query (e.g., SELECT, INSERT, UPDATE, DELETE).
public
string
$type
Methods
__construct()
Constructs a new QueryInfo object.
public
__construct(string $type, int $insertid, int $affected, string $error, string $query) : mixed
Parameters
- $type : string
-
The type of the query.
- $insertid : int
-
The ID of the last inserted row (if applicable).
- $affected : int
-
The number of affected rows by the query.
- $error : string
-
Any error message associated with the query execution.
- $query : string
-
The SQL query string.