Hello flutter devs, this blog is all about the flutter database: persistence data storage. Every new application must be having an organized data. However, to organize these data, we use various databases. Moving towards databases, it is important to know the basics. If you are new to flutter please refer to my blog to create the First Flutter Application. And if you are not then let’s go. So, in a flutter, there are several packages that can organize the data. Following are the two most famous packages used in a flutter:
- sqflite: This package is used to handle as well as manipulate SQLite database.
- firebase: This package is used to handle as well as manipulate the cloud-hosted NoSQL database.
Therefore have a look in details about these sqflite Flutter database: persistence data storage
SQLite is one of the popular databases that is used in most applications. So, to use SQLite as database flutter uses sqfLite plugin. This plugin is known as flutter database. This is because Flutter SDK doesn’t support direct interaction with SQLite database. This plugin allows the following functionalities.
- Create/Open — This functionality uses openDatabase method
- Execute — This functionality uses the execute method
- Advanced query methods — This functionality uses the query method
For example, we will create a flutter project for understanding Flutter Database: persistence data storage.
- Firstly, you need to need to update the pubspec.yaml file.