section-engineering-education / engineering-education

“Section's Engineering Education (EngEd) Program is dedicated to offering a unique quality community experience for computer science university students."
Apache License 2.0
363 stars 889 forks source link

[Android] Comparing the New Database Framework (SQL Delight) to Room Database in Android #5440

Closed sheecodes closed 2 years ago

sheecodes commented 2 years ago

Comparing the New Database Framework (SQL Delight) to Room Database in Android

Proposed article introduction

In the world of mobile development, databases are often used for local data storage on client devices. One of the options for working with databases for Android projects is the Room library. The Room persistence library provides an abstraction layer over SQLite to allow fluent database access while harnessing the full power of SQLite.

On the other hand we have SQL Delight which is a cross platform SQL library that generates type-safe Kotlin APIs from SQL statements for various relational databases. SQL Delight also provides a multiplatform implementation of the SQLite driver.

It verifies your schema, statements, and migrations at compile-time and provides IDE features like autocomplete and refactoring which make writing and maintaining SQL simple.

In this article, we are going to dive into the strength and weakness of SQL Delight, also we will compare its performance, syntax and many more with the Room database.

Key takeaways

Article quality

The article will try and bring comparisons of both databases, it will be rich in unique content that will be good for beginner looking the right choice of a database to use in their projects. It will be clear sentences that are concise. Other than the theories, the article will contain some technical parts of implementing the SQL Delight database in Android.

References

WanjaMIKE commented 2 years ago

Closed #5440 via #5912