An elegant library for viewing, editing, or debugging sqlite databases in iOS applications.
- List available databases
- List tables
- Order, Limit, Offset, Filter
- Inserting rows
- Editing rows
- Deleting rows
In AppDelegate.swift file, just start SQLiteViewer
.
import UIKit
import SQLiteViewer
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
// port: UInt16 - default is 8081
// databases: Array of full path to each database
SQLiteViewer.shared.start(port: 9000, databases: [pathToDatabase])
return true
}
}
After, go to browser and open link that will be shown at Xcode console.
CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:
$ gem install cocoapods
To integrate SQLite.viewer into your Xcode project using CocoaPods, specify it in your Podfile
:
source 'https://github.com/CocoaPods/Specs.git'
target '<Your Target Name>' do
pod 'SQLite.viewer', git: "https://github.com/sergeymild/SQLite.viewer", tag: '3.0.2', configurations: ['Debug']
end
Then, run the following command:
$ pod install
- Sergey Mild - Initial work - SergeyMild
This project is licensed under the MIT License - see the LICENSE file for details