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

version» Context lines:

pike.git/lib/modules/Sql.pmod/mysql.pike:1:   /* -  * $Id: mysql.pike,v 1.44 2009/11/10 12:55:57 grubba Exp $ +  * $Id: mysql.pike,v 1.45 2009/11/11 13:38:19 grubba Exp $    *    * Glue for the Mysql-module    */      //! Implements the glue needed to access the Mysql-module from the generic   //! SQL module.      #pike __REAL_VERSION__      #if constant(Mysql.mysql)
pike.git/lib/modules/Sql.pmod/mysql.pike:703:   //!   //! Primarily useful with @[charset] set to @expr{"latin1"@} if   //! unicode encode mode (see @[set_unicode_encode_mode]) is enabled   //! (the default) and you have some large queries (typically blob   //! inserts) where you want to avoid the query parsing overhead.   //!   //! @returns   //! A @[Mysql.mysql_result] object is returned if the query is of a   //! kind that returns a result. Zero is returned otherwise.   //! + //! The individual fields are returned as strings except for @tt{NULL@}, + //! which is returned as @[UNDEFINED]. + //!   //! @seealso   //! @[Sql.big_query()], @[big_typed_query()], @[streaming_query()]   {    QUERY_BODY (big_query);   }      Mysql.mysql_result streaming_query (string query,    mapping(string|int:mixed)|void bindings,    void|string charset)   //! Makes a streaming SQL query.
pike.git/lib/modules/Sql.pmod/mysql.pike:737:   Mysql.mysql_result big_typed_query (string query,    mapping(string|int:mixed)|void bindings,    void|string charset)   //! Makes a typed SQL query.   //!   //! This function sends the SQL query @[query] to the Mysql-server.   //!   //! The types of the result fields depend on the corresponding SQL types.   //! They are mapped as follows:   //! @mixed - //! @type zero - //! The @tt{NULL@} value is returned as @[UNDEFINED]. + //! @type Sql.Null + //! The @tt{NULL@} value is returned as @[Sql.NULL].   //! @type int   //! Integer values are returned as @tt{int@} values.   //! @type float   //! Floating point values are returned as @tt{float@} values.   //! @type string   //! All other SQL field types are returned as @tt{string@} values.   //! @endmixed   //!   //! In all other respects, it behaves like @[big_query].   //!