Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ktvipin27/roominspector

An in-app database inspector for Room databases.
https://github.com/ktvipin27/roominspector

android-app android-database android-debug android-debug-database android-library android-room room-database room-persistence-library sqlite

Last synced: about 1 month ago
JSON representation

An in-app database inspector for Room databases.

Awesome Lists containing this project

README

        

#

[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.github.ktvipin27/room-inspector/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.github.ktvipin27/room-inspector)
[![API](https://img.shields.io/badge/API-19%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=19) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/zerobranch/android-remote-debugger/blob/master/LICENSE)

An in-app database inspector for [Android Room](https://developer.android.com/topic/libraries/architecture/room) databases.
Read in detail [here](https://medium.com/@ktvipin27/inspect-your-room-database-with-room-inspector-b8d961bf311d).

Built with ❤︎ by [Vipin KT](https://twitter.com/ktvipin27)

## Features

* View tables
* Add rows
* Update rows
* Delete rows
* Delete tables
* Drop tables
* Export tables
* Custom queries

## Installation

Add this in your app's build.gradle file:

Groovy DSL

```groovy
dependencies {
implementation 'io.github.ktvipin27:room-inspector:1.0.3'
}
```

Kotlin DSL

```kotlin
dependencies {
implementation("io.github.ktvipin27:room-inspector:1.0.3")
}
```

## Usage

To inspect your Room database with RoomInspector, just call the `inspect()` method by passing your database class and database name.

Kotlin
```kotlin
RoomInspector.inspect(context, MyDatabase::class.java, MyDatabase.DB_NAME)
```

Java
```java
RoomInspector.inspect(context, MyDatabase.class, MyDatabase.DB_NAME)
```

## License

Copyright 2021 Vipin KT

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.