Skip to content

[5.4] add configuration to limit size of sqlite #181

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 19, 2021

Conversation

tomerd
Copy link
Contributor

@tomerd tomerd commented Jan 11, 2021

same as #179 and #180

motivation: there are use cases where users of the SQLite DB may want to limit its size

changes:
* introduce SQLiteCache::Configuraiton allowing to set max database size
* refactor SQLite::checkError to throw more structured errro when database is full, adding infrastructure to other structured errors
* add tests
@tomerd
Copy link
Contributor Author

tomerd commented Jan 11, 2021

@swift-ci please test

@tomerd
Copy link
Contributor Author

tomerd commented Jan 11, 2021

cc @airspeedswift

@tomerd tomerd merged commit bc79617 into swiftlang:release/5.4 Jan 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants