Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [core] Remove unused bool() functions | Bruno de Oliveira Abinader | 2017-04-14 | 1 | -4/+0 |
| | |||||
* | [core] Replace sqlite3.h dependency in offline database | Bruno de Oliveira Abinader | 2017-01-23 | 1 | -1/+7 |
| | |||||
* | [core] Move sqlite::Statement::check to pimpl | Bruno de Oliveira Abinader | 2017-01-23 | 1 | -2/+0 |
| | |||||
* | [core] Move lastInsertRowId/changes to sqlite::Statement | Bruno de Oliveira Abinader | 2017-01-23 | 1 | -3/+3 |
| | |||||
* | [core] Private implementation for SQLite interface | Bruno de Oliveira Abinader | 2017-01-23 | 1 | -7/+8 |
| | |||||
* | [core] Move SQLite logging setup to before database initialization | Jason Wray | 2016-09-09 | 1 | -1/+1 |
| | | | | | | - Ensure that sqlite3_config() is always called before db init. - Should only be called once, now. - Move sqliteVersionCheck into mapbox::sqlite namespace. | ||||
* | [core] Implement SQLite error logging (#6291) | Jason Wray | 2016-09-08 | 1 | -0/+1 |
| | |||||
* | [core] Avoid redundant 'inline' usage | Bruno de Oliveira Abinader | 2016-06-18 | 1 | -2/+2 |
| | |||||
* | [core] Fix race condition that could lead to a UNIQUE constraint failure (#4677) | John Firebaugh | 2016-04-11 | 1 | -0/+24 |
| | |||||
* | [core] Implement an eviction policy for OfflineDatabase | John Firebaugh | 2016-02-10 | 1 | -0/+1 |
| | | | | | | | | | | | | | When inserting an cached resource, or removing a region, remove least-recently used resources and tiles, not used by offline regions, until the used database size, as calculated by multiplying the number of in-use pages by the page size, is less than the maximum cache size minus 5 times the page size. In addition, OfflineDatabase may be configured to ignore cache puts of individual resources larger than a certain size. This policy is similar but not identical to the former SQLiteCache policy: * It accounts for offline, by exempting resources required by offline regions from eviction. * It must delete from two tables (resources and tiles), rather than one. Currently the strategy is naive: evict 50 rows at a time from each table. * It makes maximumCacheSize and maximumCacheEntrySize completely independent. The SQLiteCache implementation evicted when `usedSize > maximumCacheSize - 2 * maximumCacheEntrySize`. This evicts when `usedSize > maximumCacheSize - 5 * pageSize`. * It uses a non-unlimited default value for maximumCacheSize: 50 MB. We should have always had a limit in place; "a cache without an eviction policy is a resource leak". | ||||
* | [core] Reset SQLite statements after use in order to release locks | John Firebaugh | 2016-02-10 | 1 | -0/+1 |
| | |||||
* | [core] Disable SQLite busy timeouts so that multiple readers can access the ↵ | John Firebaugh | 2016-02-10 | 1 | -0/+2 |
| | | | | same database | ||||
* | [core] Explicit operator bool | John Firebaugh | 2016-02-10 | 1 | -2/+2 |
| | |||||
* | [core] Interface and implementation for offline | John Firebaugh | 2016-02-10 | 1 | -1/+12 |
| | |||||
* | [core] Eliminate macros in sqlite3.cpp | John Firebaugh | 2016-01-19 | 1 | -0/+2 |
| | |||||
* | [core] throw values, catch references | Konstantin Käfer | 2015-12-03 | 1 | -0/+1 |
| | |||||
* | make storage lib separate so we can build without storage libs | Konstantin Käfer | 2015-02-04 | 1 | -0/+74 |