Recently, I was developing a new open-source project, Amazing Endemic Species.
And I need a database to store the increasing number of species in the future. I choose to use Turso as database.
To facilitate testing, I plan to set up a local SQLite environment.
Prerequisites
Ubuntu 22.04
Installing SQLite
First update your package list:
Install SQLite:
To verify the installation, check the software’s version:
Creating a SQLite Database
To create the database, open terminal and run this sqlite3 command:
That means I create a database named "amazing-endemic-species" and I will receive an output like this:
Now I will create a schema for amazing-endemic-species.json as below:
Create the Table Schema
Inserting Data into the Table
Once the table is created, I will insert the data from the JSON objects into the aes table.
To verify that the data has been imported correctly, you can run a simple SELECT query: