SQLITE_BUSY 문제에 대한 해결방안


SQLITE_BUSY 문제에 대한 해결방안

여러 Process 가 같은 Database 를 read/write 를 하는 경우 SQLITE_BUSY 가 return 되면서 원하는 동작을 하지 못하는 문제가 있었다. 어떻게 해결하였는지 기술하겠다. 우선 SQLITE_BUSY 가 어떤 상황에서 발생하는지 referece 를 참조하자. 친절하게 예시까지 쓰여져있다. https://www.sqlite.org/rescode.html#busy Result and Error Codes Overview Many of the routines in the SQLite C-language Interface return numeric result codes indicating either success or failure, and in the event of a fai..


원문링크 : SQLITE_BUSY 문제에 대한 해결방안