| Extracted from Pike v7.8 release 866 at 2018-07-18.

[Top]
Sql
Sql.Sql

# Method Sql.Sql()->streaming_typed_query()

Method streaming_typed_query

  `int|object streaming_typed_query(object|string q, mixed ... extraargs)`

Description

  Sends an SQL query synchronously to the underlying SQL-server and returns the results streaming in typed mode.

  For the arguments, please see the query() function.

  The result is returned as a streaming Sql.sql_result object in typed mode. This allows for having results larger than the available memory, and returning some more info about the result. Returns `0` if the query didn't return any result (e.g. INSERT or similar).

Note

  Neither streaming operation nor typed results are supported by all sql databases. If not supported, this function will fall back to calling big_typed_query() .

See also

  streaming_query , big_typed_query