pike.git
/
lib
/
modules
/
Sql.pmod
/
mysql.pike
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/lib/modules/Sql.pmod/mysql.pike:732:
\ if (utf8_mode & UNICODE_DECODE_MODE) { \ CH_DEBUG ("Using unicode wrapper for result.\n"); \ return \ HAVE_MYSQL_FIELD_CHARSETNR_IFELSE ( \ .sql_util.MySQLUnicodeWrapper(res), \ .sql_util.MySQLBrokenUnicodeWrapper (res)); \ } \ return res;
-
Mysql.mysql_result
big_query (string query,
+
Result
big_query (string query,
mapping(string|int:mixed)|void bindings, void|string charset) //! Sends a query to the server. //! //! @param query //! The SQL query. //! //! @param bindings //! An optional bindings mapping. See @[Sql.query] for details about //! this.
pike.git/lib/modules/Sql.pmod/mysql.pike:759:
//! @endcode //! is sent to the server first, then @[query] is sent as-is, and then //! the connection charset is restored again (if necessary). //! //! 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
+
//! A @[
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,
+
Result
streaming_query (string query,
mapping(string|int:mixed)|void bindings, void|string charset) //! Makes a streaming SQL query. //! //! This function sends the SQL query @[query] to the Mysql-server. //! The result of the query is streamed through the returned
-
//! @[
Mysql.mysql_result
] object. Note that the involved database
+
//! @[
Result
] object. Note that the involved database
//! tables are locked until all the results has been read. //! //! In all other respects, it behaves like @[big_query]. //! //! @seealso //! @[big_query()], @[streaming_typed_query()] { QUERY_BODY (streaming_query); }
-
Mysql.mysql_result
big_typed_query (string query,
+
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 and //! returns a result object in typed mode, which means that the types //! of the result fields depend on the corresponding SQL types. See //! the class docs for details. //! //! In all other respects, it behaves like @[big_query]. //! //! @seealso //! @[big_query()], @[streaming_typed_query()] { QUERY_BODY (big_typed_query); }
-
Mysql.mysql_result
streaming_typed_query (string query,
+
Result
streaming_typed_query (string query,
mapping(string|int:mixed)|void bindings, void|string charset) //! Makes a streaming typed SQL query. //! //! This function acts as the combination of @[streaming_query()] //! and @[big_typed_query()]. //! //! @seealso //! @[big_typed_query()], @[streaming_typed_query()] {