小编Nic*_*k T的帖子

如何从命令行在 sqlite3 中指定超时?

我有几个基本脚本,它们在填充我的 sqlite3 数据库时踢出一些信息,但大约有一半的时间命令立即失败:

$ sqlite3 outgoing.db "select * from edges where worker is not null;"
Error: database is locked
$ sqlite3 outgoing.db "select * from edges where worker is not null;"
Error: database is locked
$ sqlite3 outgoing.db "select * from edges where worker is not null;"
1014->9000|1014|9000||-1.0|2
1014->9001|1014|9001||-1.0|2
...
Run Code Online (Sandbox Code Playgroud)

如果我添加.timeout 1;到命令的开头,我只会收到一个语法错误;如何.通过命令行以非交互方式向sqlite 传递特殊参数?

sqlite

6
推荐指数
2
解决办法
1万
查看次数

标签 统计

sqlite ×1