Access sqlite from a remote server

前端 未结 8 1197
悲哀的现实
悲哀的现实 2020-11-28 15:05

I am wondering how i can access an sqlite database that is sitting a remote server.I have read threads discouraging it but i need to do it if its possible.

          


        
8条回答
  •  无人及你
    2020-11-28 15:52

    SQLite isn't a network database, so it doesn't have any network connection ability built into it.

    You would need to either:

    • Make the SQLite DB available on a network-accessible shared drive OR
    • Write/find an existing network server/web service for it

    A web application is essentially a web service. If you happen to be running a web application on top of this DB, just expose certain levels of DB access to admins-only.

    It's not recommended you do this because multiple threads/clients/etc. accessing a SQLite DB simultaneously may lead to concurrency problems very quickly.

提交回复
热议问题