哪个数据库更适合多平台开发? Firebase 还是 Realm?

Which database is better for multiplatform developing? Firebase or Realm?

我正在开发一个旨在帮助在校学生的应用程序。因此,我不明白该使用哪个数据库。主要语言是Kotlin。我将使用它作为 Kotlin Multi platform 同时为两个操作系统(IOS 和 Android)开发一个应用程序。

SQL喜悦库是最简单的。它从 SQL 语句为各种关系数据库生成类型安全的 Kotlin API。 SQLDelight 还提供了 SQLite 驱动程序的多平台实现。 要将 SQLDelight 插件连接到项目,请在项目的构建脚本(root build.gradlebuild.gradle.kts)中应用 SQLDelight Gradle 插件: 引用自 kotlin

First, add the plugin's classpath to the build system.

    buildscript {
         repositories {
             google()
             mavenCentral()
         }
         dependencies {
             classpath("com.squareup.sqldelight:gradle-plugin:$sql_delight_version")
         }
     }
     Copied!

Instead of $sql_delight_version, use the version you need for your project.

Then apply the SQLDelight Gradle plugin by adding this line at the beginning of the build script (build.gradle or build.gradle.kts) in your shared multiplatform module

https://kotlinlang.org/docs/kmm-configure-sqldelight-for-data-storage.html#gradle-plugin