inloop / sqlite-viewer

View SQLite file online
http://inloop.github.io/sqlite-viewer
Apache License 2.0
861 stars 324 forks source link

How to open the specified sql file? #20

Closed hgy987654 closed 4 years ago

hgy987654 commented 4 years ago

I am a novice. I want to open the specified sql file. When the web page is opened, the specified sql file is directly opened without dragging or opening. Where can I modify the source code? Thank you

TomTasche commented 4 years ago

You can pass a URL to a database to load immediately via an URL parameter: https://github.com/inloop/sqlite-viewer/blob/gh-pages/js/main.js#L109-L123

yuraj11 commented 4 years ago

You can also load remote files (using JS ajax, remote server must send Access-Control-Allow-Origin:*): http://inloop.github.io/sqlite-viewer/?url=http://example.com/data.sqlite