SQLiteBrowser 2.3.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package SQLiteBrowser --version 2.3.3
                    
NuGet\Install-Package SQLiteBrowser -Version 2.3.3
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SQLiteBrowser" Version="2.3.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SQLiteBrowser" Version="2.3.3" />
                    
Directory.Packages.props
<PackageReference Include="SQLiteBrowser" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SQLiteBrowser --version 2.3.3
                    
#r "nuget: SQLiteBrowser, 2.3.3"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package SQLiteBrowser@2.3.3
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SQLiteBrowser&version=2.3.3
                    
Install as a Cake Addin
#tool nuget:?package=SQLiteBrowser&version=2.3.3
                    
Install as a Cake Tool

SQLiteBrowser

SQLiteBrowser is a NuGet package designed for .NET MAUI applications. It provides a user-friendly interface for viewing and managing SQLite databases. With just a few lines of code, you can navigate your database, view tables, inspect columns and data, and perform CRUD operations (Create, Read, Update, Delete) on rows.

Features

  • Security: Shows an error message when no debugger is attached. No data is shown when running in production apps
  • Table Explorer: View all tables in your SQLite database.
  • Data Management: Add, edit, and delete rows directly within the app.
  • Clean table (TRUNCATE) TRUNCATE any table or all tables at once.
  • Delete table (DROP) DROP any table or all tables at once.
  • Ease of Integration: Quickly integrate with your .NET MAUI application.

Installation

To use SQLiteBrowser, install it via NuGet:

dotnet add package SQLiteBrowser

Or search for SQLiteBrowser in the NuGet Package Manager in Visual Studio.

Getting started

Here’s how to integrate SQLiteBrowser into your .NET MAUI application:

  1. Import the Namespace: Add the following using statement to your class:
using SQLiteBrowser;
  1. Add navigation: Navigate to the DatabaseBrowserPage, passing the path to your SQLite database:
await Navigation.PushAsync(new DatabaseBrowserPage("path/to/database.sqlite"));

Replace path/to/database.sqlite with the actual path to your SQLite database file.

  1. View and Manage Your Data

The DatabaseBrowserPage displays all tables in the SQLite database. From there you can:

  • View a table
  • Truncate all tables
  • Drop all tables

Clicking on a table shows the table’s columns and data. You can:

  • Add rows by using the provided interface.
  • Edit rows by clicking on a specific row and modifying its values.
  • Delete rows by selecting a row and choosing the delete option.
  • Truncate the table.
  • Drop the table

Example

Here’s a minimal example of using SQLiteBrowser in a .NET MAUI application:

using Microsoft.Maui.Controls;
using SQLiteBrowser;

namespace MyApp;

public partial class MainPage : ContentPage
{
    public MainPage()
    {
        InitializeComponent();
    }

    private async void OpenDatabaseBrowser(object sender, EventArgs e)
    {
        await Navigation.PushAsync(new DatabaseBrowserPage("my_database.sqlite"));
    }
}

In the XAML file, you can add a button to trigger the OpenDatabaseBrowser method:

<Button Text="Open Database Browser" Clicked="OpenDatabaseBrowser" />

Screenshots

Table list:

TableList

Table details:

TableDetails

Edit/add row:

EditRow

Requirements

  • .NET MAUI project
  • SQLite database file (e.g., .sqlite or .db) with a known path

Contributing

Contributions are welcome! To contribute:

  1. Fork the repository
  2. Create a feature branch
  3. Submit a pull request with your changes

Also feel free to open an issue for any bugs/missing features.

License

SQLiteBrowser is licensed under the MIT License.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.3.4 299 12/30/2024
2.3.3 143 12/30/2024
2.3.2 151 12/30/2024
2.3.1 154 12/17/2024
2.3.0 137 12/16/2024
2.2.3 146 12/16/2024
2.2.1 142 12/13/2024
2.2.0 148 12/13/2024
2.1.1 144 12/13/2024
2.1.0 156 12/11/2024
2.0.0 140 12/11/2024
1.2.1 135 12/11/2024
1.2.0 152 12/11/2024

Added new features and fixed bugs. See the full release notes in the RELEASE_NOTES.md file.