pkjvit / couchbase-lite-android-viewer

A Library for debugging couchbase lite android database. - with cool features like smart query templates, pagination etc.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

couchbase-lite-android-viewer

Couchbase Lite Android Viewer is a sdk tool provide for Couchbase Lite Android Applications to view all databases and query on them using smart query templates. Now it's supporting all version of Couchbase lite.

Functionality

  • Show all couchbase databases
  • Show all tables of selected database
  • Gives a console where you can query on selected table
  • Provide Smart Query Templates which gives you predefined queries on the fly
  • Shows queried data in a page of default size 50 rows(can be change from pagination tool), for large data you can go particular page on the go using bottom Pagination view

Screen Shots

Preview

CbliteViewer

Requirements

  • Android 4.1+
  • Android Studio 3.0

Installation

Add the following in the dependencies section of the application's build.gradle (the one in the app folder).

    compile 'com.pkj.wow.cblite.viewer:couchbase-lite-android-viewer:0.1.1-11'
    
    // dependencies
    compile 'com.pkj.wow.paginationview:PaginationView:1.0.2-7'
    compile 'de.codecrafters.tableview:tableview:2.8.0'
    compile 'com.android.support.constraint:constraint-layout:1.0.2'

Usage

To view your all database's it needs context to redirect on screen which have all data and sync information regarding manger.

// Initialise by passing activity context and couchbase Manager
CbLiteViewer cbLiteViewer = CbLiteViewer.instance(mContext, mManager);
                
// Start will show database screen
cbLiteViewer.start();

Licence

Copyright 2018 Pankaj Jangid

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.

About

A Library for debugging couchbase lite android database. - with cool features like smart query templates, pagination etc.

License:Apache License 2.0


Languages

Language:Java 100.0%