John Firebaugh
5910124010
[core] Reset SQLite statements after use in order to release locks
2016-02-10 15:40:20 -08:00
John Firebaugh
96e0e5252e
[core] Disable SQLite busy timeouts so that multiple readers can access the same database
2016-02-10 15:40:20 -08:00
John Firebaugh
c3c4c7b9a6
[core] Interface and implementation for offline
2016-02-10 15:40:20 -08:00
John Firebaugh
cdedb66387
[core] Reimplement existing caching within an offline-capable database schema
2016-02-10 15:40:20 -08:00
John Firebaugh
1c21d0fd4c
[core] Use better types for modified / expires / etag
2016-01-21 11:22:11 -08:00
John Firebaugh
dbfa932ed1
[core] Eliminate macros in sqlite3.cpp
2016-01-19 13:39:18 -08:00
Konstantin Käfer
c279fb1717
[core] throw values, catch references
2015-12-03 15:38:36 +01:00
Konstantin Käfer
d5fb535058
[core] add namespace comment to closing brace
2015-12-03 15:38:36 +01:00
Konstantin Käfer
dc620f48de
[core] Fix std::move() misuse that disables copy elision
2015-12-03 15:38:36 +01:00
Thomas Voß
3f786c7171
Fix GCC5 complaining about -Wunused-variable.
2015-11-25 14:23:13 +01:00
Konstantin Käfer
78ec33320f
don't use certain STL functions
...
some functions defined in <cmath>, as well as std::to_string aren't available on GNU's STL for some platforms, e.g. Android
2015-08-04 14:08:19 +02:00
Konstantin Käfer
7d58a41de5
make sqlite storage more resilient to sporadic errors
...
- catch SQLite exceptions and report them
- failed statements are ignored, we're really just caching here, so if it fails we're handling it gracefully elsewhere
- handle cases where the database file goes away after we opened it
- handle cases where the schema wasn't created after the database file was opened successfully
- add tests
2015-04-07 18:04:23 +02:00
John Firebaugh
bb73dbcd30
Relax sqlite version check to major version only
...
iOS 8.2 updates the included SQLite version to 3.8.4, while iOS 7.0 up
to iOS 8.1 provides version 3.7.13. When compiling with the 8.2 SDK and
running on 8.1 or below, or vice versa, a strict check fails.
Fixes #968 .
2015-03-11 10:21:26 -07:00
Konstantin Käfer
12341ce0ee
add missing headers
2015-02-04 10:49:08 +01:00
Konstantin Käfer
272fa8935e
make storage lib separate so we can build without storage libs
2015-02-04 10:49:07 +01:00