Skip to content

YanPengImp/DatabaseVisual

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DatabaseVisual

Features

DatabaseVisual is a simple visual data tool,solve the user export database view problem.
Use DatabaseVisual you can visualize database file on iPhone.
You can delete any row of data you don't want to keep,any also you can update any field except PRIMARY KEY.
This is a demo gif:

image

Installation

CocoaPods

1.Update cocoapods to the latest version.
2.Add pod 'DatabaseVisual' to your Podfile.
3.Run pod install or pod update.
4.Import <DatabaseVisual/DatabaseManager.h>.

Manually

1.Download all the files in the DatabaseManager subdirectory.
2.Add the source files to your Xcode project.
3.Import "DatabaseManager.h"

Usage:

//you can specify the folder where the database resides
[DatabaseManager sharedInstance].dbDocumentPath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) firstObject];
[[DatabaseManager sharedInstance] showTables];

This is the first version,more features will be added later.