SQLite.viewer
一个优雅的库,用于在 iOS 应用程序中查看、编辑或调试 sqlite 数据库。受 Android Debug Database 启发。
特点
- 列出可用的数据库
- 列出表
- 运行原始查询
待办事项
- 插入行
- 编辑行
- 删除行
- 新的 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
作者
- Orkhan Alikhanov - 初始工作 - OrkhanAlikhanov
还可以查看参与此项目的 贡献者列表。
许可证
此项目受 MIT 许可证的许可 - 有关详细信息,请参阅 LICENSE 文件