2 /* fake_dbfactory.i
: Fake classes for xapian
/dbfactory.h functions.
4 * Copyright
1999,2000,2001 BrightStation PLC
5 * Copyright
2001,2002 Ananova Ltd
6 * Copyright
2002,2003,2005 James Aylett
7 * Copyright
2002,2003,2004,2005,2006,2007,2008,2009,2010,2011 Olly Betts
8 * Copyright
2007 Lemur Consulting Ltd
10 * This program is free software
; you can redistribute it and
/or
11 * modify it under the terms of the GNU General Public License as
12 * published by the Free Software Foundation
; either version
2 of the
13 * License
, or
(at your option
) any later version.
15 * This program is distributed in the hope that it will be useful
,
16 * but WITHOUT
ANY WARRANTY
; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program
; if not
, write to the Free Software
22 * Foundation
, Inc.
, 51 Franklin St
, Fifth Floor
, Boston
, MA
02110-1301
29 /* Lie to SWIG that Auto
, etc are classes with static methods rather than
30 namespaces so it wraps it as we want in C# and Java.
*/
37 Database open_stub
(const string
& file);
46 Database open
(const std
::string
&dir);
48 WritableDatabase open
(const std
::string
&dir, int action, int block_size = 8192);
57 WritableDatabase open
();
66 Database open
(const std
::string
&host, unsigned int port, useconds_t timeout, useconds_t connect_timeout);
68 Database open
(const std
::string
&host, unsigned int port, useconds_t timeout = 10000);
71 WritableDatabase open_writable
(const std
::string
&host, unsigned int port, useconds_t timeout, useconds_t connect_timeout);
73 WritableDatabase open_writable
(const std
::string
&host, unsigned int port, useconds_t timeout = 10000);
76 Database open
(const std
::string
&program, const std::string &args, useconds_t timeout = 10000);
79 WritableDatabase open_writable
(const std
::string
&program, const std::string &args, useconds_t timeout = 10000);