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

version» Context lines:

pike.git/lib/modules/Sql.pmod/mysql.pike:753:   //!   //! This function acts as the combination of @[streaming_query()]   //! and @[big_typed_query()].   //!   //! @seealso   //! @[big_typed_query()], @[streaming_typed_query()]   {    QUERY_BODY (streaming_typed_query);   }    + array(string) list_dbs(string|void wild) + { +  Result res = ::list_dbs(wild); +  array(string) ret = ({}); +  array(string) row; +  while((row = res->fetch_row()) && sizeof(row)) { +  ret += ({ row[0] }); +  } +  return ret; + } +  + array(string) list_tables(string|void wild) + { +  Result res = ::list_tables(wild); +  array(string) ret = ({}); +  array(string) row; +  while((row = res->fetch_row()) && sizeof(row)) { +  ret += ({ row[0] }); +  } +  return ret; + } +    int(0..1) is_keyword( string name )   //! Return 1 if the argument @[name] is a mysql keyword that needs to   //! be quoted in a query. The list is currently up-to-date with MySQL   //! 5.1.   {    return ([    "accessible": 1, "add": 1, "all": 1, "alter": 1, "analyze": 1, "and": 1,    "as": 1, "asc": 1, "asensitive": 1, "before": 1, "between": 1, "bigint": 1,    "binary": 1, "blob": 1, "both": 1, "by": 1, "call": 1, "cascade": 1,    "case": 1, "change": 1, "char": 1, "character": 1, "check": 1, "collate": 1,