https://www.sqlite.org/faq.html#q5

    SQlite一次只允许一个进程从FAQ更新数据库中的任何内容
    Multiple processes can have the same database open at the same time. Multiple processes can be doing a SELECT at the same time. But only one process can be making changes to the database at any moment in time,
    以及
    When SQLite tries to access a file that is locked by another process, the default behavior is to return SQLITE_BUSY. You can adjust this behavior from C code using the sqlite3_busy_handler() or sqlite3_busy_timeout() API functions.
    因此,如果只有几个更新,那么这将起作用,否则您需要更改到一个功能更强大的数据库。在
    所以整个数据库只有一个锁