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 this namespace is a class with static methods so that
30 * it wraps as we want in C# and Java.
*/
37 Database open
(const std
::string
&host, unsigned int port, unsigned timeout, unsigned connect_timeout);
39 Database open
(const std
::string
&host, unsigned int port, unsigned timeout = 10000);
42 WritableDatabase open_writable
(const std
::string
&host, unsigned int port, unsigned timeout, unsigned connect_timeout);
44 WritableDatabase open_writable
(const std
::string
&host, unsigned int port, unsigned timeout = 10000);
47 Database open
(const std
::string
&program, const std::string &args, unsigned timeout = 10000);
50 WritableDatabase open_writable
(const std
::string
&program, const std::string &args, unsigned timeout = 10000);