pike.git / lib / modules / Sql.pmod / pgsql.pike

version» Context lines:

pike.git/lib/modules/Sql.pmod/pgsql.pike:933:   //! querystring.   //! I.e. it allows for but does not require a trailing semicolon, but it   //! simply ignores any commands after the first unquoted semicolon. This can   //! be viewed as a limited protection against SQL-injection attacks.   //! To make it support multiple queries in one querystring, use the   //! @ref{:_text@} option (not recommended).   //!   //! @seealso   //! @[big_typed_query()], @[Sql.Connection], @[Sql.Result],   //! @[query()], @[Sql.pgsql_util.Result] - /*semi*/final .pgsql_util.Result big_query(string q, + /*semi*/final variant .pgsql_util.Result big_query(string q,    void|mapping(string|int:mixed) bindings,    void|int _alltyped) {    throwdelayederror(this);    string preparedname = "";    mapping(string:mixed) options = proxy.options;    .pgsql_util.conxion c = proxy.c;    int forcecache = -1, forcetext = options.text_query;    int syncparse = zero_type(options.sync_parse)    ? -1 : options.sync_parse;    if (proxy.waitforauthready)
pike.git/lib/modules/Sql.pmod/pgsql.pike:1144:    }    throwdelayederror(portal);    return portal;   }      //! This is an alias for @[big_query()], since @[big_query()] already supports   //! streaming of multiple simultaneous queries through the same connection.   //!   //! @seealso   //! @[big_query()], @[big_typed_query()], @[Sql.Connection], @[Sql.Result] - /*semi*/final inline .pgsql_util.Result streaming_query(string q, + /*semi*/final variant inline .pgsql_util.Result streaming_query(string q,    void|mapping(string|int:mixed) bindings) {    return big_query(q, bindings);   }      //! This function returns an object that allows streaming and typed   //! results.   //!   //! @seealso   //! @[big_query()], @[Sql.Connection], @[Sql.Result] - /*semi*/final inline .pgsql_util.Result big_typed_query(string q, + /*semi*/final variant inline .pgsql_util.Result big_typed_query(string q,    void|mapping(string|int:mixed) bindings) {    return big_query(q, bindings, 1);   }