Skip to content

An elegant library for viewing, editing, or debugging sqlite databases in iOS applications.

License

Notifications You must be signed in to change notification settings

sergeymild/SQLite.viewer

Repository files navigation

Platform Cocoapods Compatible

SQLite.viewer

An elegant library for viewing, editing, or debugging sqlite databases in iOS applications.

SQLiteViewer demo

Features

  • List available databases
  • List tables
  • Order, Limit, Offset, Filter

ToDo

  • Inserting rows
  • Editing rows
  • Deleting rows

Usage

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.

Installation

CocoaPods

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

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details

About

An elegant library for viewing, editing, or debugging sqlite databases in iOS applications.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published