Roxen.git/
server/
base_server/
module.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2001-08-13
2001-08-13 18:20:10 by Per Hedbor <ph@opera.com>
298be1f3060ff6b372fee652ba781cec9cc359c2 (
14
lines) (+
12
/-
2
)
[
Show
|
Annotate
]
Branch:
5.2
Set table descriptions when they are created
Rev: server/base_server/module.pike:1.123
1:
// This file is part of Roxen WebServer. // Copyright © 1996 - 2001, Roxen IS.
-
// $Id: module.pike,v 1.
122
2001/08/
09
16
:
59
:
56
mast
Exp $
+
// $Id: module.pike,v 1.
123
2001/08/
13
18
:
20
:
10
per
Exp $
#include <module_constants.h> #include <module.h>
65:
#endif }
+
RoxenModule this_module()
+
{
+
return this_object(); // To be used from subclasses.
+
}
+
string _sprintf() { return sprintf ("RoxenModule(%s)", _module_identifier || "?");
404:
} static string sql_table_exists( string name )
+
//! Return the real name of the table 'name' if it exists.
{ if(strlen(name)) name = "_"+name;
416:
static string get_my_table( string|array(string) name,
-
void|array(string)|string defenition )
+
void|array(string)|string defenition
,
+
string|void comment
)
//! @decl string get_my_table( string name, array(string) types ) //! @decl string get_my_table( string name, string defenition ) //! @decl string get_my_table( string defenition )
481:
catch { get_my_sql()->query( "CREATE TABLE "+res+" ("+defenition+")" );
+
DBManager.is_module_table( this_object(), my_db, res,
+
oname+"\0"+comment );
}; if( error ) {