All Projects → prabhat1707 → DbExporterHelper

prabhat1707 / DbExporterHelper

Licence: Apache-2.0 license
This small Library Helps you to export db , export to csv and import db also work with Room db

Programming Languages

kotlin
9241 projects
java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to DbExporterHelper

Qr-Code-Scanner-
This is simple QR code scanner with Room Database. 100% written in Kotlin.
Stars: ✭ 19 (-26.92%)
Mutual labels:  room-database
Android Debug Database
A library for debugging android databases and shared preferences - Make Debugging Great Again
Stars: ✭ 7,946 (+30461.54%)
Mutual labels:  room-database
Unity-File-Debug
Enhanced debug logging for Unity, with JSON/CSV export and HTML viewer.
Stars: ✭ 50 (+92.31%)
Mutual labels:  csv-export
Paging-3-Sample
This app is created as a sample app which loads movies from Tmdb api and uses Paging 3 library to show it in a Recycler view.
Stars: ✭ 96 (+269.23%)
Mutual labels:  room-database
NYTimes-Compose
An offline-first application in Jetpack Compose with MVVM architecture, representing a minimalistic implementation of Top Stories API.
Stars: ✭ 98 (+276.92%)
Mutual labels:  room-database
ExcelExport
Classes to generate Excel/CSV Report in ASP.NET Core
Stars: ✭ 39 (+50%)
Mutual labels:  csv-export
MVVMJetpack
JectpackDemo
Stars: ✭ 37 (+42.31%)
Mutual labels:  room-database
flextures
This plug-in can load and dump test data in databases, loading function is very flexible, dump function is very simple
Stars: ✭ 21 (-19.23%)
Mutual labels:  csv-export
Calculator-Plus
A Simple Calculator with rich features for daily use.
Stars: ✭ 14 (-46.15%)
Mutual labels:  room-database
sketch-library-audit
Export Symbol and Shared Style data from any Sketch Library to CSV.
Stars: ✭ 17 (-34.62%)
Mutual labels:  csv-export
mvp-android-template
MVP Android Template to give you a Quick Head Start for your next Android Project. It implements MVP Architecture using Dagger2, Room, RxJava2 , Retrofit2
Stars: ✭ 20 (-23.08%)
Mutual labels:  room-database
KotlinProject
This repo help for all developer who want to learn android or want to work on advance feature of android. This repo created with help of @awesomeui, @materialdesign and android latest feature. this repo contain major feature like : @awesome UI, @Material design, @firebase (auth, realtime database, firestore, push notification), @database (Room d…
Stars: ✭ 40 (+53.85%)
Mutual labels:  room-database
csvlixir
A CSV reading/writing application for Elixir.
Stars: ✭ 32 (+23.08%)
Mutual labels:  csv-export
NYTimesMostPopularArticles
A simple app to hit the NY Times Most Popular Articles API and show a list of articles, that shows details when items on the list are tapped (a typical master/detail app), also user able to browse/ add articles to favorite list that implements MVVM architecture using Dagger2, Retrofit, Coroutines, LiveData, RoomDatabase, Database Debugging, Data…
Stars: ✭ 38 (+46.15%)
Mutual labels:  room-database
smuggle
Manage exports and imports with ease, separating the logic from the models
Stars: ✭ 30 (+15.38%)
Mutual labels:  csv-export
NoteUsingRoom
Note Apps using Room database
Stars: ✭ 18 (-30.77%)
Mutual labels:  room-database
csv
The csv read/write tool based on java annotation.(基于 java 注解的 CSV 文件读写框架工具。)
Stars: ✭ 22 (-15.38%)
Mutual labels:  csv-export
Windmill
A library to parse or write Excel and CSV files through a fluent API
Stars: ✭ 19 (-26.92%)
Mutual labels:  csv-export
django-csv-export-view
Django class-based view for CSV exports
Stars: ✭ 17 (-34.62%)
Mutual labels:  csv-export
vertx-mybatis
vertx sqlclient template using mybatis NON-BLOCK & ASYNCHRONOUS
Stars: ✭ 23 (-11.54%)
Mutual labels:  csv-export

DbExporterHelper

This library Helps you to Export Db to sdcard or also import form it and also share db to csv to sdcard.

Images:

alt Setting IMages1

Prerequisites

  • Android 18.
  • Permission for excess of external storage.

Installing

Step 1:- Add it in your root build.gradle at the end of repositories:

allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}
  

Step 1:- Add the dependency:


		dependencies {
	         implementation 'com.github.prabhat1707:DbExporterHelper:v1.0'
	}
	
  

Option 1:- Export db to external directory

First check the storage Permission then initilize it.

 ExportDbUtil exportDbUtil = new ExportDbUtil(this, db name, directory_name, this);
 /*
 db_path = "/data/com.example.android.databaseexpoter/databases/"
 */
  exportDbUtil.exportDb(db_path);

Option 2: Export all table to Csv

 csv_filename = "test.csv"
 exportDbUtil.exportAllTables(csv_filename);
 

Option 3: Export single table to csv

 exportDbUtil.exportSingleTable(first_table_name,csv_filename);
   

Option 4:Import db from external storage to internal

/*
 db_path = "/data/com.example.android.databaseexpoter/databases/"
 */
 
 if (exportDbUtil.isBackupExist(directory_name)) {
            exportDbUtil.importDBFile(db_path);
        } else {
            Toast.makeText(this, "no Backup", Toast.LENGTH_SHORT).show();

        }
   

CallBack Method are optional, "implements ExporterListener"


@Override
    public void success(@NotNull String s) {
        Toast.makeText(this, s, Toast.LENGTH_SHORT).show();
    }

    @Override
    public void fail(@NotNull String message, @NotNull String exception) {
        Toast.makeText(this, message, Toast.LENGTH_SHORT).show();
    }

For Any Query Mail me to "[email protected]"

Thanks

License

Copyright (c) delight.im <[email protected]>

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 la
w 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.

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].