Definition at line 22 of file SQLiteUtils.cpp.
◆ SQLiteIniter()
audacity::sqlite::anonymous_namespace{SQLiteUtils.cpp}::SQLiteIniter::SQLiteIniter |
( |
| ) |
|
|
inline |
Definition at line 25 of file SQLiteUtils.cpp.
26 {
27
28 mError =
Error(sqlite3_config(SQLITE_CONFIG_URI, 1));
29
31 return;
32
35
37 return;
38
40
41#ifdef NO_SHM
43 return;
44
45
46
47
48
49 auto vfs = sqlite3_vfs_find("unix-excl");
50 if (vfs)
51 sqlite3_vfs_register(vfs, 1);
52#endif
53 }
bool IsError() const noexcept
Returns true if the object represents an error.
static void SQLiteLogCallback(void *initer, int code, const char *msg)
◆ ~SQLiteIniter()
audacity::sqlite::anonymous_namespace{SQLiteUtils.cpp}::SQLiteIniter::~SQLiteIniter |
( |
| ) |
|
|
inline |
Definition at line 55 of file SQLiteUtils.cpp.
56 {
57
58
59 (void)sqlite3_shutdown();
60 }
◆ GetError()
Error audacity::sqlite::anonymous_namespace{SQLiteUtils.cpp}::SQLiteIniter::GetError |
( |
| ) |
const |
|
inlinenoexcept |
◆ SetLogCallback()
void audacity::sqlite::anonymous_namespace{SQLiteUtils.cpp}::SQLiteIniter::SetLogCallback |
( |
LogCallback |
callback | ) |
|
|
inline |
◆ SQLiteLogCallback()
static void audacity::sqlite::anonymous_namespace{SQLiteUtils.cpp}::SQLiteIniter::SQLiteLogCallback |
( |
void * |
initer, |
|
|
int |
code, |
|
|
const char * |
msg |
|
) |
| |
|
inlinestatic |
Definition at line 62 of file SQLiteUtils.cpp.
63 {
65
66 if (self->mLogCallback)
67 self->mLogCallback(code, msg);
68 }
References mLogCallback.
◆ mError
Error audacity::sqlite::anonymous_namespace{SQLiteUtils.cpp}::SQLiteIniter::mError |
|
private |
◆ mLogCallback
LogCallback audacity::sqlite::anonymous_namespace{SQLiteUtils.cpp}::SQLiteIniter::mLogCallback |
|
private |
The documentation for this class was generated from the following file: