inloop / sqlite-viewer

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

Load DB via URL Parameter #4

Closed gavinr closed 8 years ago

gavinr commented 8 years ago

Hi, thanks for this project- it's really cool!

Would it be possible to allow the loading of a sqlite db via url parameter? Like http://inloop.github.io/sqlite-viewer?url=http://mysite.com/data.sqlite?

yuraj11 commented 8 years ago

Thanks and good idea! :+1:
It's implemented now, use in this format: http://inloop.github.io/sqlite-viewer/?url= Keep in mind that remote server must have set http header - Access-Control-Allow-Origin: * otherwise It will not work.

gavinr commented 8 years ago

Thanks! Here it is in action: https://github.com/gavinr/university-city-mo-crime

ddfe01e5cae5d30a358b704c2142701033063826