~ubuntu-branches/ubuntu/wily/steam/wily

« back to all changes in this revision

Viewing changes to server/kernel/db_searching.pike

  • Committer: Package Import Robot
  • Author(s): Felix Geyer
  • Date: 2013-10-29 19:51:18 UTC
  • mfrom: (1.1.4) (0.1.4 trusty-proposed)
  • Revision ID: package-import@ubuntu.com-20131029195118-b9bxciz5hwx5z459
Tags: 1:1.0.0.39-2ubuntu1
Add an epoch to the version number as there was an unrelated steam package
in the archive with a higher version number.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
inherit "/kernel/module";
2
 
function fDb;
3
 
 
4
 
static final void load_module()
5
 
{
6
 
    load_db_mapping();
7
 
}
8
 
 
9
 
static final void load_db_mapping()
10
 
{
11
 
    string sDbTable;
12
 
    //    werror("***");
13
 
    [fDb, sDbTable] = _Database->connect_db_mapping();
14
 
    //    werror(" *** handle received is %O\n", fDb);
15
 
}
16
 
 
17
 
array(mapping(string:mixed)) query(object|string q, mixed ... extraargs)
18
 
{
19
 
    return fDb()->query(q, @extraargs);
20
 
}
21
 
 
22
 
int|object big_query(string q, mixed ... bindings)
23
 
{
24
 
    return fDb()->big_query(q, @bindings);
25
 
}
26
 
 
27
 
array(string) list_tables(string|void wild)
28
 
{
29
 
    return fDb()->list_tables(wild);
30
 
}