• Stars
    star
    943
  • Rank 46,767 (Top 1.0 %)
  • Language
    Kotlin
  • License
    Apache License 2.0
  • Created about 10 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Android library for viewing, editing and sharing in app databases.

Download Validate Gradle Wrapper Code analysis CodeFactor codecov

DbInspector

UI

DbInspector provides a simple way to view the contents of the in-app database for debugging purposes. There is no need to pull the database from a connected device. This library also supports inspecting of the SQLite databases created by CouchBase Lite out of the box. With this library you can:

  • preview all application sandbox databases
  • import single or multiple databases at once
  • search, delete, rename, copy, share a database
  • preview tables, views and triggers
  • preview table or view pragma
  • delete table contents
  • drop view or trigger
  • search table, view or trigger
  • sort table, view or trigger per column
  • execute any valid SQL command in editor per database connection

Getting started

To include DbInspector in your project, you have to add buildscript dependencies in your project level build.gradle or build.gradle.kts:

Groovy

buildscript {
    repositories {
        mavenCentral()
    }
}

KotlinDSL

buildscript {
    repositories {
        mavenCentral()
    }
}

Then add the following dependencies in your app build.gradle or build.gradle.kts :

Groovy

debugImplementation "com.infinum.dbinspector:dbinspector:5.4.9"
releaseImplementation "com.infinum.dbinspector:dbinspector-no-op:5.4.9"

KotlinDSL

debugImplementation("com.infinum.dbinspector:dbinspector:5.4.9")
releaseImplementation("com.infinum.dbinspector:dbinspector-no-op:5.4.9")

Usage

DbInspector can be invoked explicitly or implicitly.

  • explicitly - call DbInspector.show() anywhere and anytime that you see fit, like onClick methods, lambdas or similar.
  • implicitly - when you add the dbinspector package an Activity alias is automatically merged into your application manifest that in return creates a launcher icon for DbInspector, but when you add the dbinspector-no-op the same Activity alias node is automatically removed from your application manifest. Implicit way can be tweaked to achieve desired behaviour as demonstrated in an example below.

Explicit

DbInspector.show()

Implicit If you use dbinspector package but do not want an additional automatic launcher icon merged in and generated.

<!--suppress AndroidDomInspection -->
<activity-alias
    android:name="com.infinum.dbinspector.DbInspectorActivity"
    tools:node="remove" />

If you use DbInspector for a specific flavor and need to override merged in launcher label, you can provide a String resource in your project exactly like this:

<string name="dbinspector_launcher_name">Sample Debug</string>

Please do mind and copy over the suppression comment line too, if you need it. Further modification can be done according to rules of manifest merging and attributes of activity-alias XML node.

Editor

Editor

DbInspector has a build in editor scoped per database connection currently used.
It offers autocomplete of SQLite3 keywords and functions, current table and column names.
Built in editor also provides a history of executed statements, not matter if they were successful or not.
History of statements is persisted between sessions and can be cleared on demand at any point.
Panes between editors' input and result are scalable and can be adjusted by dragging the splitter between them.
Landscape mode is supported too for better result preview of large datasets.

Logging

DbInspector provides a independent and built in logger mechanism. Per default logger is initiated as an EmptyLogger omitting any output whatsoever.
In case logs output is required, AndroidLogger should be used as shown below:

DbInspector.show(logger = AndroidLogger())

Additionally, AndroidLogger uses Level to filter out between info, debug, error or no messages at all.

Requirements

Minimum required API level to use DbInspector is 21 known as Android 5.0, Lollipop. As of 4.0.0 version, AndroidX is required. If you cannot unfortunately migrate your project, keep the previous version until you get the opportunity to migrate to AndroidX. DbInspector is written entirely in Kotlin, but also works with Java only projects and all combinations of both.

License

Copyright 2020 Infinum

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.

Credits

Maintained and sponsored by Infinum.

More Repositories

1

rails-handbook

Describing the development process used by the Infinum Rails Team.
Slim
763
star
2

FBAnnotationClustering

iOS library for clustering map notifications in an easy and performant way
Objective-C
713
star
3

Android-Goldfinger

Android library to simplify Biometric authentication implementation.
Java
654
star
4

ios-viper-xcode-templates

Used for generating template files for the VIPER architecture, which solves the common Massive View Controller issues in iOS apps.
HTML
576
star
5

phrasing

Edit phrases inline for your Ruby on Rails applications!
Ruby
544
star
6

eightshift-boilerplate

This repository contains all the tools you need to start building a modern WordPress theme, using all the latest front end development tools.
PHP
511
star
7

Android-GoldenEye

A wrapper for Camera1 and Camera2 API which exposes simple to use interface.
Kotlin
375
star
8

cookies_eu

Gem to add cookie consent to Rails application
Haml
266
star
9

dox

Automated API documentation from Rspec
Ruby
234
star
10

MjolnirRecyclerView

[DEPRECATED] This library is no longer maintained and it will not receive any more updates.
Java
220
star
11

ios-nuts-and-bolts

iOS bits and pieces that you can include in your project to make your life a bit easier.
Swift
194
star
12

Japx

Lightweight parser for the complex JSON:API (http://jsonapi.org/) structure.
Swift
149
star
13

flutter-charts

Customizable charts library for flutter.
Dart
137
star
14

datx

DatX is an opinionated JS/TS data store. It features support for simple property definition, references to other models and first-class TypeScript support.
TypeScript
137
star
15

learnQuery

Learn JavaScript fundamentals by building your own jQuery equivalent library
JavaScript
137
star
16

flutter-dasher

Dart
115
star
17

android-complexify

An Android library which makes checking the quality of user's password a breeze.
Java
113
star
18

floggy

Customizable logger for dart and flutter applications.
Dart
111
star
19

Android-Prince-of-Versions

Android library for handling application updates.
Java
104
star
20

android_connectionbuddy

Utility library for handling connectivity change events.
Java
94
star
21

eightshift-docs

A documentation website for Eightshift open source projects
JavaScript
79
star
22

eightshift-frontend-libs

Frontend library that exposes custom scripts and styles for modern WordPress projects
JavaScript
69
star
23

Retromock

Java library for mocking responses in a Retrofit service.
Java
65
star
24

eightshift-libs

Library that is meant to be used inside Eightshift Boilerplate and Eightshift Boilerplate Plugin libs via composer in order to be able to easily set up a modern development process.
PHP
61
star
25

frontend-handbook

Our handbook based on 10 years of experience in Frontend/JS development
Slim
57
star
26

emotion-normalize

normalize.css but for emotion.js
JavaScript
51
star
27

Locker

Securely lock your secrets under the watch of TouchID or FaceID keeper πŸ”’
Swift
50
star
28

mobx-jsonapi-store

JSON API Store for MobX
TypeScript
48
star
29

Dagger-2-Example

Dagger 2 example project
Java
44
star
30

ios-prince-of-versions

Library used for easier versioning of your applications, allowing you to prompt your users to update the app to the newest version
Swift
42
star
31

enumerations

Better Rails Enumerations
Ruby
37
star
32

mobx-collection-store

Data collection store for MobX
TypeScript
35
star
33

eightshift-boilerplate-plugin

This repository contains all the tools you need to start building a modern WordPress plugin.
PHP
35
star
34

kotlin-jsonapix

JsonApiX is an Android, annotation processor library that was made to transform regular Kotlin classes into their JSON API representations, with the ability to serialize or deserialize them to or from strings.
Kotlin
34
star
35

android-sentinel

Sentinel is a simple one screen UI which provides a standardised entry point for tools used in development and QA alongside device, application and permissions data.
Kotlin
34
star
36

decoupled-json-content

JavaScript
30
star
37

wordpress-handbook

Official WordPress handbook at Infinum
Slim
30
star
38

webpack-asset-pipeline

πŸš€ A missing link for the asset pipeline alternative with Webpack.
JavaScript
30
star
39

ios-loggie

Simplify debugging by showing network requests of your app as they happen.
Swift
30
star
40

flutter-plugins-locker

Flutter plugin that secures your secrets in keychain using biometric authentication (Fingerprint, Touch ID, Face ID...).
Dart
28
star
41

default_rails_template

Default template for generating new Rails applications.
Ruby
27
star
42

media-blender

Easy and predictable SASS/SCSS media queries
CSS
26
star
43

eightshift-forms

WordPress plugin project for Gutenberg forms
PHP
26
star
44

secrets_cli

CLI for storing and reading your secrets via vault
Ruby
25
star
45

android-collar

Gradle plugin which collects all analytics screen names, events and user properties for Android projects.
Kotlin
25
star
46

flutter-plugins-japx

JSON API parser for Flutter
Dart
24
star
47

flutter-bits

Flutter
Dart
22
star
48

react-mobx-translatable

Make React components translatable using MobX
JavaScript
21
star
49

dungeons-and-dragons

🎲 Dungeons & Dragons Character builder and keeper (work in progress)
TypeScript
19
star
50

android-crash-handler

Utility library which handles crash handler configuration
Java
19
star
51

qa-handbook

Describing the processes used by the Infinum QA Team
Slim
18
star
52

iOS-Bugsnatch

Swift
18
star
53

eightshift-coding-standards

Eightshift coding standards for WordPress
PHP
16
star
54

jsonapi-query_builder

Ruby
14
star
55

thrifty-retrofit-converter

Retrofit converter which uses Thrifty for Apache Thrift-compatible serialization
Java
13
star
56

json-wp-post-parser

JSON Post Parser plugin parses your content and saves it as JSON available in REST posts and pages endpoints.
PHP
13
star
57

swift-style-guide

12
star
58

generator-infinitely-static

πŸ’« Static page generator with routes support thats infinitely awesome
JavaScript
11
star
59

react-responsive-ssr

TypeScript
11
star
60

JS-React-Example

Infinum's way of doing React
TypeScript
10
star
61

ngx-hal

Angular datastore library with HAL support
TypeScript
10
star
62

fiscalizer

A gem for fiscalizing invoices in Croatia using Ruby.
Ruby
9
star
63

ember-form-object

Form object pattern in ember apps
JavaScript
9
star
64

js-talks

✨ Interesting talks and mini lectures about new and cool stuff that's going on in the world of JS development, organized by the Infinum JS team
9
star
65

android-handbook

Slim
8
star
66

js-linters

Infinum's JS team linter rules
TypeScript
7
star
67

array_validator

Array Validations for ActiveModel
Ruby
7
star
68

eightshift-storybook

Storybook package for Eightshift-Boilerplate
7
star
69

icomcom-react

πŸ’¬ A React component for handling communication with content in <iframe />
JavaScript
7
star
70

dox-demo

Demo app for dox gem:
HTML
6
star
71

android-localian

Android library that manages your application locale and language across multiple Android API levels.
Kotlin
6
star
72

ios-handbook

Slim
6
star
73

flutter-prince-of-versions

Library used for easier versioning of your applications, allowing you to prompt your users to update the app to the newest version
Dart
6
star
74

learn-react

πŸ‘‹ βš›οΈ Learn React by implementing your own!
TypeScript
5
star
75

I18n-js

Javascript library for string internationalization.
CoffeeScript
5
star
76

ios-collar

In-app analytics debugging tool
Swift
5
star
77

auth-worker

OAuth2 Service Worker handler
TypeScript
5
star
78

ngx-form-object

Reactive forms manager
TypeScript
5
star
79

mobx-keys-store

Keys store for MobX
TypeScript
4
star
80

rails-infinum-jsonapi_example_app_old

Ruby
4
star
81

phrasing_plus

Phrasing extension for editing images inline
Ruby
4
star
82

eightshift-web-components

Web components library that exposes custom scripts and styles for modern WordPress projects
Svelte
4
star
83

Install-Flutter-Version-Manager-Bitrise

Shell
4
star
84

infinum_setup

Setup script
Ruby
4
star
85

loglevel-filesave

Loglevel plugin for saving logs to the file
JavaScript
4
star
86

eightshift-blocks

Project dedicated to use inside WP Boilerplate and WP Boilerplate Plugin projects via composer to be able to easily setup modern development process for Gutenberg blocks..
PHP
3
star
87

ios-sentinel

Developer’s toolbox for debugging applications
Swift
3
star
88

data_sync

Rails plugin for database and file synchronization
Ruby
3
star
89

next-passenger

next.js with passenger proof of concept
Dockerfile
3
star
90

mysterious-sampler

Swift
3
star
91

SocketMan

Android WebSocket client app
Java
3
star
92

react-asset-collector

Collect assets from react components so you can do HTTP2 push
JavaScript
3
star
93

rails_log_book

Ruby
3
star
94

mina-secrets

Mina plugin for secrets_cli gem
Ruby
2
star
95

docusaurus-theme

Infinum Docusaurus teme
JavaScript
2
star
96

ngx-nuts-and-bolts

A collection of commonly used pieces of Angular-related code that we use everyday at Infinum.
TypeScript
2
star
97

money_with_date

Extension for the money gem which adds dates to Money objects.
Ruby
2
star
98

blog-android-permissions

Java
2
star
99

JS-RxWorkshop

TypeScript
2
star
100

Android-Dagger-Onboarding

Dagger onboarding project
Kotlin
2
star