Comments (4)
Could it be SQLITE_MISUSE?
#define SQLITE_MISUSE 21 /* Library used incorrectly */
That can happen when a connection is shared between multiple processes/threads. Or that a query was already done or errored earlier.
Before 0.8 every connection had its own associated os level thread. It looks like you were already using the never version which uses dirty schedulers.
The later releases have been small fixes, and sqlite version updates.
from esqlite.
With version > 0.8 you must be really sure to serialize requests to SQLite. The plus side is that connections are now much more light weight.
from esqlite.
@mmzeeman thanks a lot, that was it. The new version is much faster and the process who opens the DB originally closes it earlier than before.
Keep up the work ;-)
from esqlite.
👍
Thanks for your reply... It is always nice to hear from people using this library.
from esqlite.
Related Issues (20)
- Module can't be loaded on Windows HOT 11
- Use sqlite3_open_v2 to support only read mode HOT 5
- Occasional VM crash due to race condition between deferred prepare and garbage collection HOT 25
- Race condition: Occasional VM crash due to dangling pointer to sqlite3_stmt struct HOT 18
- Fatal error C1083: Cannot open include file: 'stdlib.h': No such file or directory HOT 6
- Timeouts on heavy insert load HOT 1
- insert with parameters and get autoincrement value HOT 2
- Investigate server-process-edition branch. HOT 2
- Compilation issue on 0.2.5 HOT 6
- mix deps.compile esqlite fails while linking esqlite3_nif.so on ARM HOT 7
- Erlang/OTP 23 /usr/bin/ld: cannot find -lerl_interface HOT 2
- `exec` return type is `integer() | {error, error_message()}` but returns `ok | {error, error_message()}` HOT 2
- Library module name 'esqlite3_nif' does not match calling module ... HOT 1
- Is there a way to get results out of a transaction? HOT 2
- enif_alloc_env one msg_env, after use to send msg but not enif_free_env HOT 2
- Named parameters
- Sporadic read latencies HOT 13
- Case clause error $busy HOT 5
- Litestream capability to ESQLite
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 esqlite.