SQLite.viewer 2.1.0

SQLite.viewer 2.1.0

测试已测试
Lang语言 SwiftSwift
许可证 MIT
发布最新发布2018年5月
SPM支持 SPM

Orkhan Alikhanov 维护。



 
依赖项
Http.swift~> 2.1.1
SQLite.swift>= 0.11.5
 

  • 作者
  • Orkhan Alikhanov

Platform Cocoapods Compatible Build Status - Master

SQLite.viewer

一个优雅的库,用于在 iOS 应用程序中查看、编辑或调试 sqlite 数据库。受 Android Debug Database 启发。

SQLiteViewer demo

特点

  • 列出可用的数据库
  • 列出表
  • 运行原始查询

待办事项

  • 插入行
  • 编辑行
  • 删除行
  • 新的 UI 和 UX

使用方法

在 AppDelegate.swift 文件中,只需启动 SQLiteViewer

import UIKit
import SQLiteViewer

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
        
        SQLiteViewer.shared.start()
        return true
    }
}

安装

CocoaPods

CocoaPods 是 Cocoa 项目的依赖管理器。您可以使用以下命令安装它

$ gem install cocoapods

要使用 CocoaPods 将 SQLite.viewer 集成到您的 Xcode 项目中,请在您的 Podfile 中指定它

source 'https://github.com/CocoaPods/Specs.git'
target '<Your Target Name>' do
    pod 'SQLite.viewer', '~> 1.0', :configurations => ['Debug']
end

然后,运行以下命令

$ pod install

作者

还可以查看参与此项目的 贡献者列表

许可证

此项目受 MIT 许可证的许可 - 有关详细信息,请参阅 LICENSE 文件