Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
cetlib
cetlib
sqlite
detail
DefaultDatabaseOpenPolicy.h
Go to the documentation of this file.
1
#ifndef cetlib_sqlite_detail_DefaultDatabaseOpenPolicy_h
2
#define cetlib_sqlite_detail_DefaultDatabaseOpenPolicy_h
3
4
//=====================================================================
5
// The locking mechanisms for NFS systems are deficient and can thus
6
// wreak havoc with SQLite, which depends upon them. In order to
7
// support an SQLite database on NFS, we use a URI, explicitly
8
// including the query parameter: 'nolock=1'. The
9
// DefaultDatabaseOpenPolicy achieves this.
10
//=====================================================================
11
12
#include <string>
13
14
struct
sqlite3
;
15
16
namespace
cet::sqlite::detail
{
17
class
DefaultDatabaseOpenPolicy
{
18
public
:
19
sqlite3
*
open
(
std::string
const
&
file_name
);
20
};
21
}
22
23
#endif
/* cetlib_sqlite_detail_DefaultDatabaseOpenPolicy_h */
24
25
// Local variables:
26
// mode: c++
27
// End:
cet::sqlite::detail::DefaultDatabaseOpenPolicy::open
sqlite3 * open(std::string const &file_name)
Definition:
DefaultDatabaseOpenPolicy.cc:10
string
std::string string
Definition:
nybbler.cc:12
file_name
QCString file_name
Definition:
tclscanner.cpp:1122
cet::sqlite::detail
Definition:
create_table.h:70
cet::sqlite::detail::DefaultDatabaseOpenPolicy
Definition:
DefaultDatabaseOpenPolicy.h:17
sqlite3
struct sqlite3 sqlite3
Definition:
DatabaseSupport.h:12
Generated by
1.8.11