Skip to content

lusfold/AWebDB-Sample

Repository files navigation

AWebDB


build passing AWebDB Maven

I found it was pretty hard to check database when you develop apps, cause you had to export th db file then...

Finally,i found nanohttpd, a android base mini web server.

As you see,i made AWebDB (Android web database),help you to look up you sqlite databse from web browser.

#Quickstart

####step 1

add dependency

dependencies {
compile 'com.lusfold.awebdb:awebdb:0.1.0'
}

####step 2

hook it

AWebDB.hook(mContext, dbName,port)  
String ip=AWebDB.getLocalIPAddress();  
int port = AWebDB.getLocalServerPort();  

####step 3

in your browser
https://ip:port/?sql

like this:

https://192.168.1.141:8080/?SELECT * FROM sqlite_master WHERE type = 'table';


#LICENSE

Copyright 2014-2015 Lusfold(https://github.com/lusfold)

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

https://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.

About

Help you to query sqlite database from web browser.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages