Code Monkey home page Code Monkey logo

sqlite-viewer's Introduction

Android Arsenal

SQLite Viewer

View SQLite file online. Uses sql.js for parsing sqlite files.

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

License

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

sqlite-viewer's People

Contributors

bryant1410 avatar fiatjaf avatar infuzion avatar kyle-seongwoo-jun avatar nachiketbhuta avatar ricardojlrufino avatar robertmarsal avatar yuraj11 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sqlite-viewer's Issues

Use decodeURI for remote URL

This prevents errors in urls with parameters
See patch file (check and apply).

git apply --check 0001-use-decodeURI-for-remote-URL.patch
git am < 0001-use-decodeURI-for-remote-URL.patch

0001-use-decodeURI-for-remote-URL.patch

From 83036066645a42fc32bed6cbdd26fb83e2b77fbd Mon Sep 17 00:00:00 2001
From: "[email protected]" <[email protected]>
Date: Tue, 16 May 2017 12:51:29 -0300
Subject: [PATCH] use decodeURI for remote URL

---
 js/main.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/js/main.js b/js/main.js
index eca5a64..8ebefb7 100644
--- a/js/main.js
+++ b/js/main.js
@@ -110,7 +110,7 @@ var loadUrlDB = $.urlParam('url');
 if (loadUrlDB != null) {
     setIsLoading(true);
     var xhr = new XMLHttpRequest();
-    xhr.open('GET', loadUrlDB, true);
+    xhr.open('GET', decodeURIComponent(loadUrlDB), true);
     xhr.responseType = 'arraybuffer';
 
     xhr.onload = function(e) {
-- 
2.7.4

Sqlite-View Library/Component

I wanted to include most of this functionality in a different web application, so I abstracted most of this out into a separate project which may interest sqlite-viewer users: sqlite-view.

Here's a demo in which I've ported the sqlite-viewer application to my library with an aim for feature parity. The biggest difference is that I switched from select2 to choices for the table selector because I dropped jquery as a dependency.

To the maintainers: Sorry for abusing issues for self-promotion and thanks for open sourcing this application! I do mean this issue to be in the spirit of collaboration and not as an attempt to hard fork or hijack your project. I'd make a PR but the diff would basically be 100%.

This is so awesome

This is really handy and i want to use it to debug my app but how would i go about auto loading a database?
UPDATE: nevermind... i just found the load url function. Thanks for this

Load DB via URL Parameter

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?

Cannot paginate SQL query with sub-SELECT.

Consider this query:

SELECT * FROM foo WHERE bar_id IN (SELECT id FROM bar) LIMIT 0,30

The paginator will try to find the count by running SELECT COUNT(*) AS count FROM bar). Note the trailing closing parenthesis and the wrong table. This result in the pagination no longer works due to SQL syntax error.

Dockerize it !

Well.. it would be interesting to have a some sort of dockerize way to use it.

like:

docker run sqlite-viewer -v ${PWD}/data.sqlite:/var/www/data.sqlite -p 80:80

How to open the specified sql file?

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

Exporting results to mysql OR xlsx

Dears,
I have an SQLite file that I couldn't open anywhere including Visual Studio Code with SQLite extension but your solution did.
I want to export the result into MySQL OR xlsx but I couldn't find it. I highly suggest you enable the export feature at least to CSV for us to get the benefit out of it. Currently, I am seeing my data without any use of the benefit.

Appreciate it if you could help me with that

Export(download) table as csv file

Provide functionality to download a queried table as a csv file. This way we can freely compare data of multiple instances of the database. Or ability to upload 2 files at the same time and compare data between them

Website freeze on entering Query

When entering this Query

UPDATE entries
SET category=(
SELECT S.nr FROM categories C, subcategories S
WHERE (C.name="Transport") AND (S.name="Öffentlich") AND (C.nr=S.catNr)
)
WHERE nr = 1

the webapp freezes

It happens when entering the text or pasting it into the text field.
Tested on Chrome and Firefox

Broken CSS

The CSS broke; probably due to some CSS dependency changing domains?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.