SqlResult

Represents the result of an operation on database.

package

Default

Methods

__construct

__construct() 

Get the names of columns in the PgResult.

columnsNames() : array

Response

array

the list of names of columns.

Return the next available result or <code>null</code>, e.g for a simple query that executed multiple queries or for a batch result.

next() : \io\vertx\jphp\sqlclient\SqlResult<T>

Response

\io\vertx\jphp\sqlclient\SqlResult

the next available result or {@code null} if none is available

Get the number of the affected rows in the operation to this PgResult.

rowCount() : integer

The meaning depends on the executed statement:

  • INSERT: the number of rows inserted
  • DELETE: the number of rows deleted
  • UPDATE: the number of rows updated
  • SELECT: the number of rows retrieved

Response

integer

the count of affected rows.

Get the number of rows in the PgResult.

size() : integer

Response

integer

the count of rows.

Get the result value.

value() : mixed

Response

mixed

the result