Realm With Jetpack Compose

Jayant Kumar🇮🇳
8 min readOct 8, 2023
Photo by benjamin lehman on Unsplash

In this article we will be talking about Realm with Jetpack Compose. Realm is a popular database library for managing local database in a mobile application (same as Room DB).

It uses Mongo as a query language.

Basically it is a ORM (Object Relation Mapping) , that provides some helper functions for the CRUD (Create , Read , Update , Delete) operations. Now you don’t need to write queries , we only use that helper functions for the queries.

So we are going to make a very simple application for better understanding. We will create a Note application , where we perform Add , Show , Delete and Update notes . Alright !!

Dependencies

// dagger hilt
implementation(libs.dagger.hilt)
kapt(libs.hilt.compiler)
implementation(libs.hilt.navigation.compose)

// realm db
implementation(libs.realm.base)
implementation(libs.realm.sync)

//coroutines
implementation(libs.coroutine.android)
implementation(libs.coroutine.core)

// navigation
implementation(libs.compose.navigation)

--

--

Jayant Kumar🇮🇳
Jayant Kumar🇮🇳

Written by Jayant Kumar🇮🇳

Hello My name is Jayant Kumar, I am a software Engineer , specialist in Mobile Development (Android , IOS , Flutter , React Native and Ionic) from India 🇮🇳

No responses yet