Comments (3)
I took a quick look at this and want to dig a bit deeper, so reopening for now.
from sqliter.
I reckon iOS File Coordination can be used on the database files to provide guarantees that I need, without needing any change in SQLiter. Thanks anyway.
from sqliter.
To add a bit of context on what I did: File Coordination is applied on the parent directory of the DB (in an App Group container), which makes sure no more than one process can run the create-or-migrate phase at the same time. This was done basically because we start developing app extensions, and they are spawned as throwaway processes by iOS.
The setup uses coordinateWritingItemAtURL
with NSFileCoordinatorWritingForMerging
, inspired by the recommended practices of a popular Swift SQLite library.
from sqliter.
Related Issues (20)
- Database file name being created duplicates the last two characters
- Exclude DB from backup/icloud (iOS) HOT 2
- `create` callback invoked only on first connection for in-memory/temporary DBs
- Fix windows and linux builds HOT 3
- Maven coordinate change in 1.3.0 HOT 3
- Add support for androidNative
- Update Kotlin version: 1.9.20 -> 1.9.21
- any docs? HOT 1
- Flaky watchOS test
- Pull error message from sqlite anywhere we have a failure HOT 1
- Review logging
- Kotlin 1.7.20 compatible aarch64 artifacts HOT 2
- SQLiter - 1.8 Beta Testing HOT 6
- SQliter - 1.8 Release Testing HOT 1
- Documentation references
- The encryption part is not working properly HOT 10
- Support calling `sqlite3_create_collation`
- Cannot run tests on macOS
- in memory DB is not thread-safe
- Support linuxArm64
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sqliter.