Skip to content

SQLiteDebuger 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 content

Notifications You must be signed in to change notification settings

a-elnajjar/SQliteDebuger

Repository files navigation

SQLiteDebuger Gigantor

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.

Features

  • Execute SQL statements and display results.

Requirements

  • iOS 14.0+
  • Swift 5.5+

Installation

Swift Package Manager

To add SQLiteDebuger to your Xcode project:

  1. Open your Xcode project.
  2. Go to File > Add Packages....
  3. Enter the repository URL for SQLiteDebuger:
https://github.com/a-elnajjar/SQLiteDebuger.git
  1. Select the package and add it to your project.

Usage

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")
        }
    }
}

License

This project is licensed under the MIT License. See the LICENSE file for more information.

Contributions

Contributions are welcome! Please fork this repository and submit a pull request for any improvements.

Contact

For any questions or suggestions, please open an issue on the GitHub repository.

About

SQLiteDebuger 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 content

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages