|
27 | 27 | #include "wx/wxsqlite3def.h" |
28 | 28 |
|
29 | 29 | /// wxSQLite3 version string |
30 | | -#define wxSQLITE3_VERSION_STRING wxT("wxSQLite3 3.3.0") |
| 30 | +#define wxSQLITE3_VERSION_STRING wxT("wxSQLite3 3.3.1") |
31 | 31 |
|
32 | 32 | #define WXSQLITE_ERROR 1000 |
33 | 33 |
|
@@ -65,7 +65,8 @@ enum wxSQLite3LimitType |
65 | 65 | WXSQLITE_LIMIT_ATTACHED = 7, |
66 | 66 | WXSQLITE_LIMIT_LIKE_PATTERN_LENGTH = 8, |
67 | 67 | WXSQLITE_LIMIT_VARIABLE_NUMBER = 9, |
68 | | - WXSQLITE_LIMIT_TRIGGER_DEPTH = 10 |
| 68 | + WXSQLITE_LIMIT_TRIGGER_DEPTH = 10, |
| 69 | + WXSQLITE_LIMIT_WORKER_THREADS = 11 |
69 | 70 | }; |
70 | 71 |
|
71 | 72 | /// Enumeration of journal modes |
@@ -98,9 +99,10 @@ enum wxSQLite3StatementStatus |
98 | 99 | #define WXSQLITE_OPEN_SHAREDCACHE 0x00020000 |
99 | 100 | #define WXSQLITE_OPEN_PRIVATECACHE 0x00040000 |
100 | 101 |
|
101 | | -#define WXSQLITE_CHECKPOINT_PASSIVE 0 |
102 | | -#define WXSQLITE_CHECKPOINT_FULL 1 |
103 | | -#define WXSQLITE_CHECKPOINT_RESTART 2 |
| 102 | +#define WXSQLITE_CHECKPOINT_PASSIVE 0 |
| 103 | +#define WXSQLITE_CHECKPOINT_FULL 1 |
| 104 | +#define WXSQLITE_CHECKPOINT_RESTART 2 |
| 105 | +#define WXSQLITE_CHECKPOINT_TRUNCATE 3 |
104 | 106 |
|
105 | 107 | inline void operator++(wxSQLite3LimitType& value) |
106 | 108 | { |
@@ -133,8 +135,8 @@ class WXDLLIMPEXP_SQLITE3 wxSQLite3Exception |
133 | 135 | static const wxString ErrorCodeAsString(int errorCode); |
134 | 136 |
|
135 | 137 | private: |
136 | | - int m_errorCode; ///< SQLite3 error code associated with this exception |
137 | | - wxString m_errorMessage; ///< SQLite3 error message associated with this exception |
| 138 | + int m_errorCode; ///< SQLite3 error code associated with this exception |
| 139 | + wxString m_errorMessage; ///< SQLite3 error message associated with this exception |
138 | 140 | }; |
139 | 141 |
|
140 | 142 | /// SQL statment buffer for use with SQLite3's printf method |
@@ -2662,6 +2664,12 @@ class WXDLLIMPEXP_SQLITE3 wxSQLite3Database |
2662 | 2664 | */ |
2663 | 2665 | void ReleaseMemory(); |
2664 | 2666 |
|
| 2667 | + /// Get system error code |
| 2668 | + /** |
| 2669 | + * Get the underlying system error code after a SQLite function has failed, i.e. a file couldn't be opened |
| 2670 | + */ |
| 2671 | + int GetSystemErrorCode() const; |
| 2672 | + |
2665 | 2673 | /// Convert database limit type to string |
2666 | 2674 | /** |
2667 | 2675 | * \param type The database limit type to be converted to string representation. |
|
0 commit comments