realm-migration

    2热度

    5回答

    我有一个Realm模型,我想要应用迁移。 realmConfiguration = new RealmConfiguration .Builder(this) .schemaVersion(0) .migration(new Migration()) .build(); 我使用领域实例得到一些价值:然而,当我应用迁移我得到的错误

    2热度

    1回答

    我我为iOS的OBJ-C更新领域中从0.98到1.0.1 ,但现在我们在编译过程中得到这些错误: undef: __ZN5realm4util23PlatformSpecificCondVarC1Ev undef: __ZN5realm4util23PlatformSpecificCondVarD1Ev undef: __ZNK5realm13TableViewBase16maximum_date

    0热度

    1回答

    你好我使用这个库: https://github.com/DenisMondon/material-design-library 有谁知道我怎么能programatilly设置图像URI,URL到这一点: <com.blunderer.materialdesignlibrary.views.CardView android:layout_width="match_parent"

    0热度

    1回答

    如果需要迁移,有没有办法在Android中询问Realm? 我有我的配置,以便领域得到删除,如果需要迁移。 realmConfiguration = new RealmConfiguration .Builder(context) .deleteRealmIfMigrationNeeded() .build(); Realm.setDefaultConfigu

    1热度

    1回答

    我已经用swift更新了Realm对象。我只是想删除模式,并创建一个新的应用程序具有旧版本的情况下。 要做到这一点,我用下面的代码: lazy var realm = try! Realm(configuration:Realm.Configuration(deleteRealmIfMigrationNeeded: true)) 但它在这一行导致SchemaMismatchException。

    1热度

    2回答

    我有一个教师列表,每个都包含一个Student对象列表。每个学生都包含他必须每天带来的教科书清单。它看起来像这样: Teacher { String teacherName; RealmList<Student> students = new RealmList<>(); } Student { String studentName; RealmList<SchoolDay> sch

    0热度

    1回答

    我有一个Realm数据库每秒被填充数据数次。我正在将数据库查看为绘制的MPChartLib数据。我的目标是在特定时间点拍摄数据库的图片,稍后再使用该信息。 我正在尝试几种方法,并在两者中都陷入了僵局。我的第一种方法是有第二个Realm数据库,我会用按钮单击第一个数据库中的信息。我的第二种方法是将数据库导出到文件,然后再重新打开。 在我的第一种方法中,我在onCreateView中构建两个数据库,如

    1热度

    1回答

    我已更新至最新版本,希望能解决我的问题,但事实并非如此。我正在使用 RealmConfiguration config = new RealmConfiguration.Builder(this) .name("myrealm.realm") .migration(new Migration()) .schemaVersion(2) // 2

    2热度

    2回答

    我想从下面的模型进行Realm.IO迁移过程中包含零,而不是零: public class RealmBuddy: Object { dynamic var id = 0 let contactId = RealmOptional<Int>() dynamic var name = "" let topics = List<RealmTopic>()

    1热度

    1回答

    概述 一种n×m矩阵A元素的总和的矩阵和矢量n×1是Date功能S = sumdate(A,Date)的输入端。 该函数返回n×m向量S,使得S中的所有行对应于同一日期的A行的总和。 例如,如果 A = [1 2 7 3 7 3 4 1 9 6 4 3 0 -1 2 8 7 5]'; Date = [161012 161223 161223 170222 160801 170222 1