Replace the default startup code (main.dart) with our product_rest_app code.Ĭopy the assets folder from product_nav_app to product_rest_app and add assets inside the *pubspec.yaml` file.Ĭonfigure sqflite package in the pubspec.yaml file as shown below − Let us create a product application to store and fetch product information from a standard SQLite database engine using sqflite package and understand the concept behind the SQLite database and sqflite package.Ĭreate a new Flutter application in Android studio, product_sqlite_app. The core functionality provided by sqflite package is as follows −Ĭreate / Open (openDatabase method) a SQLite database.Įxecute SQL statement (execute method) against SQLite database.Īdvanced query methods (query method) to reduce to code required to query and get information from SQLite database. It provides standard methods to manipulate SQLite database engine. sqflite package provides a lot of functionality to work efficiently with SQLite database. It is small and time-tested database engine. SQLite database is the de-facto and standard SQL based embedded database engine. In this chapter, let us discuss each of them in detail. Sqflite − Used to access and manipulate SQLite database, andįirebase_database − Used to access and manipulate cloud hosted NoSQL database from Google. Flutter provides many advanced packages to work with databases.
0 Comments
Leave a Reply. |