SQLite database in Javascript locally

前端 未结 4 667
梦谈多话
梦谈多话 2020-12-24 09:26

I\'m using a PhoneGap project on XCode. I am trying to connect to a SQLite databse by using Javascript.

I have made a file \"myDatabase.sqlite\" in an SQLite tool.

4条回答
  •  北海茫月
    2020-12-24 09:53

    myDatabase and myDatabase.sqlite are 2 different filenames, update your code to reference the correct filename with extension.

    SQLite does automatically create a new empty database if you try to open a database that doesn't exist.

提交回复
热议问题