Branch: Tag:

2018-05-16

2018-05-16 11:30:09 by Stephen R. van den Berg <srb@cuci.nl>

pgsql: Add streaming_typed_query() method to avoid emulate_bindings().

1177:   //! streaming of multiple simultaneous queries through the same connection.   //!   //! @seealso - //! @[big_query()], @[big_typed_query()], @[Sql.Connection], @[Sql.Result] + //! @[big_query()], @[big_typed_query()], @[streaming_typed_query()], + //! @[Sql.Connection], @[Sql.Result]   /*semi*/final variant inline .pgsql_util.Result streaming_query(string q,    void|mapping(string|int:mixed) bindings) {    return big_query(q, bindings);
1192:    void|mapping(string|int:mixed) bindings) {    return big_query(q, bindings, 1);   } +  + //! This function returns an object that allows streaming and typed + //! results. + //! + //! @seealso + //! @[big_query()], @[Sql.Connection], @[Sql.Result] + /*semi*/final variant inline .pgsql_util.Result streaming_typed_query(string q, +  void|mapping(string|int:mixed) bindings) { +  return big_query(q, bindings, 1); + }