QueryMetadata
class QueryMetadata (View source)
This class provides metadata for a database query, including the query string, arguments, columns, and rows.
Methods:
getString(): string: Retrieves the query string.setString(string $string): self: Sets the query string.getArguments(): ?array: Retrieves the query arguments.setArguments(?array $arguments): self: Sets the query arguments.getColumns(): int: Retrieves the number of columns.setColumns(int $columns): self: Sets the number of columns.getRows(): RowsMetadata: Retrieves the rows metadata.
Fields:
$string: The query string.$arguments: The query arguments.$columns: The number of columns in the query result.$rows: The metadata for the rows in the query result.
Properties
| string | $string | Represents the metadata of a database query, including the query string, arguments, column count, and row metadata. |
|
| array|null | $arguments | Holds the arguments for the database query. |
|
| int | $columns | The number of columns returned by the database query. |
|
| RowsMetadata | $rows | Holds the metadata for the rows returned by the database query. |
Methods
QueryMetadata constructor.
Gets the query string.
Sets the query string.
Gets the query arguments.
Sets the query arguments.
Gets the number of columns.
Sets the number of columns.
Gets the rows metadata.
Details
__construct()
QueryMetadata constructor.
Initializes a new instance of the RowsMetadata class.
string
getString()
Gets the query string.
QueryMetadata
setString(string $string)
Sets the query string.
array|null
getArguments()
Gets the query arguments.
QueryMetadata
setArguments(array|null $arguments)
Sets the query arguments.
int
getColumns()
Gets the number of columns.
QueryMetadata
setColumns(int $columns)
Sets the number of columns.
RowsMetadata
getRows()
Gets the rows metadata.