# SQLite and locking

**URL:** https://discourse.julialang.org/t/sqlite-and-locking/40018
**Category:** General Usage
**Tags:** question
**Created:** [May 23, 2020, 1:01pm UTC](https://discourse.julialang.org/t/sqlite-and-locking/40018 "2020-05-23T13:01:10Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mlhetland](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mlhetland/32/283_2.png) [@mlhetland](https://discourse.julialang.org/u/mlhetland)
#### Post date: [May 23, 2020, 1:01pm UTC](https://discourse.julialang.org/t/sqlite-and-locking/40018/1 "2020-05-23T13:01:10Z")

</div>

I had a couple of processes working (intermittently) on the same SQLite file, and got a lock exception – and I couldn’t find any obvious way of handling that, other than using the low-level API or a loop with `try`/`catch`. Does anyone have experience with this kind of issue (using `SQLite.jl` and/or `DBInterface.jl`)? (My desired behavior is simply to wait in line until the lock is freed…)
