Roxen.git / server / base_server / module.pike

version» Context lines:

Roxen.git/server/base_server/module.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2001, Roxen IS. - // $Id: module.pike,v 1.128 2001/08/23 23:34:41 mast Exp $ + // $Id: module.pike,v 1.129 2001/08/28 15:47:59 per Exp $      #include <module_constants.h>   #include <module.h>   #include <request_trace.h>      constant __pragma_save_parent__ = 1;      inherit "basic_defvar";   mapping(string:array(int)) error_log=([]);   
Roxen.git/server/base_server/module.pike:558:   // describe_error( error ) );   // }    if( flag )    {    __my_tables[ "&"+oname+";" ] = res;    return ddc;    }    return __my_tables[ "&"+oname+";" ] = res;   }    - static string my_db = "shared"; + static string my_db = "local";      static void set_my_db( string to )   //! Select the database in which tables will be created with   //! get_my_table, and also the one that will be returned by   //! @[get_my_sql]   {    my_db = to;   }      Sql.Sql get_my_sql( int|void read_only )   //! Return a SQL-object for the database set with @[set_my_db],   //! defaulting to the 'shared' database. If read_only is specified,   //! the database will be opened in read_only mode.   //!   //! See also @[DBManager.get]   {    return DBManager.cached_get( my_db, _my_configuration, read_only );   }