All Projects → Ashok-Varma → Sqlitemanager

Ashok-Varma / Sqlitemanager

Licence: apache-2.0
Sqlite Manager is a Dev Debug tool that helps to view/add/remove/edit data your android Sqlite Database in-app with ease. (supports Custom queries aswell)

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Sqlitemanager

Pssqlite
PowerShell module to query SQLite databases
Stars: ✭ 184 (+397.3%)
Mutual labels:  sqlite, sqlite-database
mdb2sqlite
Conversion tool used to convert microsoft access database to sqlite.
Stars: ✭ 79 (+113.51%)
Mutual labels:  sqlite, sqlite-database
Iosdebugdatabase
make it easy to debug databases in iOS applications iOS debug database
Stars: ✭ 219 (+491.89%)
Mutual labels:  sqlite, sqlite-database
nim-gatabase
Connection-Pooling Compile-Time ORM for Nim
Stars: ✭ 103 (+178.38%)
Mutual labels:  sqlite, sqlite-database
Avsqldebugger
A Simple Core Data Debugger that will look inside your apps DB
Stars: ✭ 30 (-18.92%)
Mutual labels:  sqlite, sqlite-database
Cachew
Transparent and persistent cache/serialization powered by type hints
Stars: ✭ 155 (+318.92%)
Mutual labels:  sqlite, sqlite-database
Ionic-2-sqlite-demo
Simple demo to show how to work with Sqlite Storage in Ionic 2
Stars: ✭ 20 (-45.95%)
Mutual labels:  sqlite, sqlite-database
Kirby3 Autoid
Automatic unique ID for Pages, Files and Structures including performant helpers to retrieve them. Bonus: Tiny-URL.
Stars: ✭ 58 (+56.76%)
Mutual labels:  sqlite, sqlite-database
Wxsqlite3
wxSQLite3 - SQLite3 database wrapper for wxWidgets (including SQLite3 encryption extension)
Stars: ✭ 373 (+908.11%)
Mutual labels:  sqlite, sqlite-database
Sqlite Utils
Python CLI utility and library for manipulating SQLite databases
Stars: ✭ 368 (+894.59%)
Mutual labels:  sqlite, sqlite-database
Squeal
A Swift wrapper for SQLite databases
Stars: ✭ 303 (+718.92%)
Mutual labels:  sqlite, sqlite-database
Tuql
Automatically create a GraphQL server from a SQLite database or a SQL file
Stars: ✭ 526 (+1321.62%)
Mutual labels:  sqlite, sqlite-database
Androidwithkotlin
🚀 These are android sample projects which are written in Kotlin. It covers video streaming, mp3 player, sqlite, location services, custom camera, o-notifications, simple compass etc.
Stars: ✭ 447 (+1108.11%)
Mutual labels:  sqlite, sqlite-database
Sqlitedb
Basic SQLite wrapper for Swift 4.x and lightweight ORM for accessing underlying tables in an SQLite database
Stars: ✭ 538 (+1354.05%)
Mutual labels:  sqlite, sqlite-database
Sqlite Transform
Tool for running transformations on columns in a SQLite database
Stars: ✭ 22 (-40.54%)
Mutual labels:  sqlite
Tbls
tbls is a CI-Friendly tool for document a database, written in Go.
Stars: ✭ 940 (+2440.54%)
Mutual labels:  sqlite
Pecee Pixie
Lightweight, easy-to-use querybuilder for PHP inspired by Laravel Eloquent - but with less overhead.
Stars: ✭ 19 (-48.65%)
Mutual labels:  sqlite
Delphi Orm
Delphi ORM
Stars: ✭ 16 (-56.76%)
Mutual labels:  sqlite
Sqlite.swift
A type-safe, Swift-language layer over SQLite3.
Stars: ✭ 7,975 (+21454.05%)
Mutual labels:  sqlite
Sqliteef6migrations
System.Data.SQLite.EntityFramework.Migrations - Migrations for SQLite Entity Framework provider
Stars: ✭ 27 (-27.03%)
Mutual labels:  sqlite

Android Arsenal

SqliteManager

get sample apk from Google Play Store

What is this library about?

Sqlite Manager helps to manage your android Sqlite Database very effectively with ease

(currently under active development, expect to see new releases almost daily)

Features

  • Add, Update and Delete entries from tables in UI (no sql).
  • Check all the table entries in your database with preferred sort order
  • Do custom queries on your database and results are displayed in UI

Download

Based on your IDE you can import library in one of the following ways

Gradle:

debugCompile 'com.ashokvarma.android:sqlite-manager:1.3.0'
releaseCompile 'com.ashokvarma.android:sqlite-manager-no-op:1.3.0'

If you want this in library in production also then try this :

compile 'com.ashokvarma.android:sqlite-manager:1.3.0'

or grab via Maven:

<dependency>
  <groupId>com.ashokvarma.android</groupId>
  <artifactId>sqlite-manager</artifactId>
  <version>1.3.0</version>
  <type>pom</type>
</dependency>

or Ivy:

<dependency org='com.ashokvarma.android' name='sqlite-manager' rev='1.3.0'>
  <artifact name='$AID' ext='pom'></artifact>
</dependency>

or Download the latest JAR

Usage

Implement SqliteDataRetriever interface either directly in SqliteOpenHelper (OR) if you are using thrid party ORM's ..etc just provide the inteface to library

Here is an example interface if SqliteOpenHelper is used (for other library implementations - check sample project)

    public class HelperSqliteDataRetriever implements SqliteDataRetriever {
        SqliteHelper mSqliteHelper;
        SQLiteDatabase mSQLiteDatabase;

        HelperSqliteDataRetriever(SqliteHelper sqliteHelper) {
            mSqliteHelper = sqliteHelper;
            mSQLiteDatabase = mSqliteHelper.getWritableDatabase();
        }

        @Override
        public Cursor rawQuery(@NonNull String query, String[] selectionArgs) {
            if (mSQLiteDatabase == null || !mSQLiteDatabase.isOpen()) {
                mSQLiteDatabase = mSqliteHelper.getWritableDatabase();
            }
            return mSQLiteDatabase.rawQuery(query, selectionArgs);
        }

        @Override
        public String getDatabaseName() {
            return mSqliteHelper.getDatabaseName();
        }

        @Override
        public void freeResources() {
            // not good practice to open multiple database connections and close every time
        }
    }

Then just pass the interface instance with the context to launchSqliteManager method

    SqliteManager.launchSqliteManager(this, new HelperSqliteDataRetriever(sqliteHelper), null);

CSV/Json Export feature

To Use export as CSV/Json feature. need to define FileProvider in your app manifest.

1. If you don't have file-provider in your manifest

  1. Add this section under application tag in your manifest
<provider
    android:name="android.support.v4.content.FileProvider"
    android:authorities="${applicationId}"
    android:exported="false"
    android:grantUriPermissions="true">

    <meta-data
        android:name="android.support.FILE_PROVIDER_PATHS"
        android:resource="@xml/file_provider_paths" />
</provider>
  1. create a new xml file with name file_provider_paths and paste the below content in the file
<?xml version="1.0" encoding="utf-8"?>
<paths>
    <files-path
        name="sqlite_dump"
        path="sqliteManager/" />
</paths>
  1. while launching sqlite manager pass application_id
    SqliteManager.launchSqliteManager(this, new HelperSqliteDataRetriever(sqliteHelper), BuildConfig.APPLICATION_ID);

2. If you already have a file-provider in your manifest

  1. add files-path mentioned below to existing paths in your xml file.
<?xml version="1.0" encoding="utf-8"?>
<paths>
    <!-- -.-.-.-.-.-.-.-.-.-.- your current paths, caches ..etc -.-.-.-.-.-.-.-.-.-.- -->
    <files-path
        name="sqlite_dump"
        path="sqliteManager/" />
</paths>
  1. while launching sqlite manager pass the authorities declared in your manifest
    SqliteManager.launchSqliteManager(this, new HelperSqliteDataRetriever(sqliteHelper), "authority_string_mentioned_in_your_manifest");

License

Sqlite Manager library for Android
Copyright (c) 2016 Ashok Varma (http://ashokvarma.me/).

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.

Other Open Source Libraries

  1. Gander : Gander is a simple in-app HTTP inspector for Android OkHttp clients. Gander intercepts and persists all HTTP requests and responses inside your application, and provides a UI for inspecting their content.
  2. SharedPrefManager : SharedPref Manager is a Dev Debug tool that helps to manage(Edit, Add, Clear) your android Shared Preferences.
  3. BottomNavigation : This Library helps users to use Bottom Navigation Bar (A new pattern from google) with ease and allows ton of customizations.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].