Sqlite Studio For Mac
- Precompiled Binaries for Mac OS X (x86) sqlite-tools-osx-x.zip (1.36 MiB) A bundle of command-line tools for managing SQLite database files, including the command-line shell program, the sqldiff program, and the sqlite3analyzer program. (sha3: 92aead5eed23fa6e411553ed5abf9c121a) Precompiled Binaries for Windows.
- RAD Studio The ultimate IDE with features both C and Delphi developers love: code, debug, test and fast design for cross-platform mobile and desktop deployment.; Delphi Trusted for over 25 years, our modern Delphi is the preferred choice of Object Pascal developers worldwide for creating cool apps across devices.
- DB Browser for SQLite. DB Browser for SQLite (DB4S) is a high quality, visual, open source tool to create, design, and edit database files compatible with SQLite. Free Open Source Mac Windows Linux BSD PortableApps.com.
- SQLite is a C-language library that implements a small, fast, self-contained, high-reliability, full-featured, SQL database engine. SQLite is the most used database engine in the world. SQLite is built into all mobile phones and most computers and comes bundled inside countless other applications that people use every day.
- SQLiteStudio is a streamlined and comprehensive SQLite database manager that makes it easy for you to manage and edit databases with the help of its useful and powerful set of tools.
- Navicat for SQLite, Base 2, and DB Browser for SQLite are probably your best bets out of the 9 options considered. 'Batch job scheduling' is the primary reason people pick Navicat for SQLite over the competition. This page is powered by a knowledgeable community that helps you make an informed decision.
Summary: in this tutorial, you will learn step by step on how to download and use the SQLite tools to your computer.
This article shows how to setup a multiplatform C# console project that uses Entity Framework Core (1.1.2) and SQLite. We will code on Visual Studio Code because it’s a 💪 IDE.
Download SQLite tools
To download SQLite, you open the download page of the SQlite official website.
- First, go to the https://www.sqlite.org website.
- Second, open the download page https://www.sqlite.org/download.html
SQLite provides various tools for working across platforms e.g., Windows, Linux, and Mac. You need to select an appropriate version to download.
For example, to work with SQLite on Windows, you download the command-line shell program as shown in the screenshot below.
https://ameblo.jp/pingeoticra1989/entry-12633231964.html. The downloaded file is in the ZIP format and its size is quite small.
Run SQLite tools
Installing SQLite is simple and straightforward.
- First, create a new folder e.g.,
C:sqlite
. - Second, extract the content of the file that you downloaded in the previous section to the
C:sqlite
folder. You should see three programs in the C:sqlite folder as shown below:
First, open the command line window:
and navigate to the C:sqlite folder.
Second, type sqlite3
and press enter, you should see the following output:
Third, you can type the .help command from the sqlite>
prompt to see all available commands in sqlite3.
Sqlite C# Visual Studio For Mac
Fourth, to quit the sqlite>, you use .quit
command as follows:
Install SQLite GUI tool
The sqlite3 shell is excellent…
However, sometimes, you may want to work with the SQLite databases using an intuitive GUI tool.
There are many GUI tools for managing SQLite databases available ranging from freeware to commercial licenses.
SQLiteStudio
The SQLiteStudio tool is a free GUI tool for managing SQLite databases. It is free, portable, intuitive, and cross-platform. SQLite tool also provides some of the most important features to work with SQLite databases such as importing, exporting data in various formats including CSV, XML, and JSON.
You can download the SQLiteStudio installer or its portable version by visiting the download page. Then, you can extract (or install) the download file to a folder e.g., C:sqlitegui and launch it.
The following picture illustrates how to launch the SQLiteStudio:
Other SQLite GUI tools
Besides the SQLite Studio, you can use the following free SQLite GUI tools:
- DBeaver is another free multi-platform database tool. It supports all popular major relational database systems MySQL, PostgreSQL, Oracle, DB2, SQL Server, Sybase. including SQLite.
- DB Browser for SQLite – is an open-source tool to manage database files compatible with SQLite.
In this tutorial, you have learned how to download and install SQLite tools on your computer. Now, you should be ready to work with SQLite. If you have any issues with these above steps, feel free to send us an email to get help.
Visual Studio For Mac Sqlite
-->In this quickstart, you will learn how to:
- Use the NuGet Package Manager to add a NuGet package to a project.
- Store data locally in a SQLite.NET database.
The quickstart walks through how to store data in a local SQLite.NET database. The final application is shown below:
Prerequisites
You should successfully complete the previous quickstart before attempting this quickstart. Alternatively, download the previous quickstart sample and use it as the starting point for this quickstart.
Update the app with Visual Studio
Launch Visual Studio and open the Notes solution.
In Solution Explorer, select the Notes project, right-click and select Manage NuGet Packages..:
In the NuGet Package Manager, select the Browse tab, search for the sqlite-net-pcl NuGet package, select it, and click the Install button to add it to the project:
Note
There are a number of NuGet packages with similar names. The correct package has these attributes:
- Owners: praeclarum
- Authors: SQLite-net
- NuGet link:sqlite-net-pcl
Despite the package name, this NuGet package can be used in .NET Standard projects.
This package will be used to incorporate database operations into the application.
In Solution Explorer, in the Notes project, open Note.cs in the Models folder and replace the existing code with the following code:
This class defines a
Note
model that will store data about each note in the application. TheID
property is marked withPrimaryKey
andAutoIncrement
attributes to ensure that eachNote
instance in the SQLite.NET database will have a unique id provided by SQLite.NET.Save the changes to Note.cs by pressing CTRL+S, and close the file.
Warning
Attempting to build the application at this point will result in errors that will be fixed in subsequent steps.
In Solution Explorer, add a new folder named Data to the Notes project.
In Solution Explorer, in the Notes project, add a new class named NoteDatabase to the Data folder.
In NoteDatabase.cs, replace the existing code with the following code:
This class contains code to create the database, read data from it, write data to it, and delete data from it. The code uses asynchronous SQLite.NET APIs that move database operations to background threads. In addition, the
NoteDatabase
constructor takes the path of the database file as an argument. This path will be provided by theApp
class in the next step.Save the changes to NoteDatabase.cs by pressing CTRL+S, and close the file.
Warning
Attempting to build the application at this point will result in errors that will be fixed in subsequent steps.
In Solution Explorer, in the Notes project, double-click App.xaml.cs to open it. Then replace the existing code with the following code:
This code defines a
Database
property that creates a newNoteDatabase
instance as a singleton, passing in the filename of the database as the argument to theNoteDatabase
constructor. The advantage of exposing the database as a singleton is that a single database connection is created that's kept open while the application runs, therefore avoiding the expense of opening and closing the database file each time a database operation is performed.Save the changes to App.xaml.cs by pressing CTRL+S, and close the file.
Warning
Attempting to build the application at this point will result in errors that will be fixed in subsequent steps.
In Solution Explorer, in the Notes project, double-click NotesPage.xaml.cs to open it. Then replace the
OnAppearing
method with the following code:This code populates the
ListView
with any notes stored in the database.Save the changes to NotesPage.xaml.cs by pressing CTRL+S, and close the file.
Warning
Attempting to build the application at this point will result in errors that will be fixed in subsequent steps.
In Solution Explorer, double-click NoteEntryPage.xaml.cs to open it. Then replace the
OnSaveButtonClicked
andOnDeleteButtonClicked
methods with the following code:The
NoteEntryPage
stores aNote
instance, which represents a single note, in theBindingContext
of the page. When theOnSaveButtonClicked
event handler is executed, theNote
instance is saved to the database and the application navigates back to the previous page. When theOnDeleteButtonClicked
event handler is executed, theNote
instance is deleted from the database and the application navigates back to the previous page.Save the changes to NoteEntryPage.xaml.cs by pressing CTRL+S, and close the file.
Build and run the project on each platform. For more information, see Building the quickstart.
On the NotesPage press the + button to navigate to the NoteEntryPage and enter a note. After saving the note the application will navigate back to the NotesPage.
Enter a number of notes, of varying length, to observe the application behavior.
Update the app with Visual Studio for Mac
Launch Visual Studio for Mac and open the Notes project.
In the Solution Pad, select the Notes project, right-click and select Add > Add NuGet Packages..:
In the Add Packages window, search for the sqlite-net-pcl NuGet package, select it, and click the Add Package button to add it to the project:
Note
There are a number of NuGet packages with similar names. The correct package has these attributes:
- Owners: praeclarum
- Authors: SQLite-net
- NuGet link:sqlite-net-pcl
Despite the package name, this NuGet package can be used in .NET Standard projects.
This package will be used to incorporate database operations into the application.
In the Solution Pad, in the Notes project, open Note.cs in the Models folder and replace the existing code with the following code:
This class defines a
Note
model that will store data about each note in the application. TheID
property is marked withPrimaryKey
andAutoIncrement
attributes to ensure that eachNote
instance in the SQLite.NET database will have a unique id provided by SQLite.NET.Save the changes to Note.cs by choosing File > Save (or by pressing ⌘ + S), and close the file.
Warning
Attempting to build the application at this point will result in errors that will be fixed in subsequent steps.
In the Solution Pad, add a new folder named Data to the Notes project.
In the Solution Pad, in the Notes project, add a new class named NoteDatabase to the Data folder.
In NoteDatabase.cs, replace the existing code with the following code:
This class contains code to create the database, read data from it, write data to it, and delete data from it. The code uses asynchronous SQLite.NET APIs that move database operations to background threads. In addition, the
NoteDatabase
constructor takes the path of the database file as an argument. This path will be provided by theApp
class in the next step.Save the changes to NoteDatabase.cs by choosing File > Save (or by pressing ⌘ + S), and close the file.
Warning
Attempting to build the application at this point will result in errors that will be fixed in subsequent steps.
In the Solution Pad, in the Notes project, double-click App.xaml.cs to open it. Then replace the existing code with the following code:
This code defines a
Database
property that creates a newNoteDatabase
instance as a singleton, passing in the filename of the database as the argument to theNoteDatabase
constructor. The advantage of exposing the database as a singleton is that a single database connection is created that's kept open while the application runs, therefore avoiding the expense of opening and closing the database file each time a database operation is performed.Save the changes to App.xaml.cs by choosing File > Save (or by pressing ⌘ + S), and close the file.
Warning
Attempting to build the application at this point will result in errors that will be fixed in subsequent steps.
In the Solution Pad, in the Notes project, double-click NotesPage.xaml.cs to open it. Then replace the
OnAppearing
method with the following code:This code populates the
ListView
with any notes stored in the database.Save the changes to NotesPage.xaml.cs by choosing File > Save (or by pressing ⌘ + S), and close the file.
Warning
Attempting to build the application at this point will result in errors that will be fixed in subsequent steps.
In the Solution Pad, double-click NoteEntryPage.xaml.cs to open it. Then replace the
OnSaveButtonClicked
andOnDeleteButtonClicked
methods with the following code:The
NoteEntryPage
stores aNote
instance, which represents a single note, in theBindingContext
of the page. When theOnSaveButtonClicked
event handler is executed, theNote
instance is saved to the database and the application navigates back to the previous page. When theOnDeleteButtonClicked
event handler is executed, theNote
instance is deleted from the database and the application navigates back to the previous page.Save the changes to NoteEntryPage.xaml.cs by choosing File > Save (or by pressing ⌘ + S), and close the file.
Build and run the project on each platform. For more information, see Building the quickstart.
On the NotesPage press the + button to navigate to the NoteEntryPage and enter a note. After saving the note the application will navigate back to the NotesPage.
Enter a number of notes, of varying length, to observe the application behavior.
Next steps

In this quickstart, you learned how to:
- Use the NuGet Package Manager to add a NuGet package to a project.
- Store data locally in a SQLite.NET database.
To style the application with XAML styles, continue to the next quickstart.