Simulator.Screen.Recording.-.iphone15.-.2024-05-27.at.01.52.42.mp4
SQLiteDebuger Gigantor is an experimental Swift package designed to help developers debug and manage SQLite databases directly within their iOS applications. By leveraging the SQLite3 C API, this package provides a straightforward way to open, switch, and execute SQL statements on SQLite databases. It benefits developers who need to inspect database contents, execute arbitrary queries, and view results in a structured format without leaving their app.
- Execute SQL statements and display results.
- iOS 14.0+
- Swift 5.5+
To add SQLiteDebuger to your Xcode project:
- Open your Xcode project.
- Go to
File>Add Packages.... - Enter the repository URL for
SQLiteDebuger:
https://github.com/a-elnajjar/SQLiteDebuger.git
- Select the package and add it to your project.
Use SQLiteDebuger in a SwiftUI application to navigate to a view where you can input a database name and SQL statement, execute it, and display results.
import SwiftUI
import SQLiteDebuger
@main
struct YourApp: App {
var body: some Scene {
WindowGroup {
ContentView()
}
}
}
struct ContentView: View {
var body: some View {
NavigationView {
VStack {
NavigationLink(destination: SQLiteDebugView()) {
Text("Open SQLite Debug View")
.padding()
.background(Color.blue)
.foregroundColor(.white)
.cornerRadius(8)
}
}
.navigationTitle("Main Menu")
}
}
}This project is licensed under the MIT License. See the LICENSE file for more information.
Contributions are welcome! Please fork this repository and submit a pull request for any improvements.
For any questions or suggestions, please open an issue on the GitHub repository.