Questions tagged [yapdatabase]

A key/value store built atop sqlite for iOS & Mac.

22 questions
3
votes
1 answer

key value store database on iOS

One example of an effort to create a key value store database on the iOS is YapDatabase. However, I have no experience with it, and would like to understand whether it's worth it to use this, instead of something like Core Data or FMDB. One critical…
Jesse Armand
  • 1,842
  • 3
  • 17
  • 26
2
votes
0 answers

Core Data Filter by Distance From Current User Location

I have an NSManagedObject class that's persisted in a SQLite database in Core Data. This object has persistent Latitude and Longitude properties. I'm trying to create an NSFetchedRequestController that fetches all of the instances of that class that…
2
votes
0 answers

YapDatabase memory consumption on fts index update

I´ve done some changes to my YapDatabase-fts-index, by adding a some columns and updated the versionTag. Now, when starting up the database, yap runs through all relevant rows in order to rebuild the index, as expected. But while doing this,…
stoffen
  • 570
  • 6
  • 14
1
vote
0 answers

Should I use Classes or Structs in a YapDatabase?

I have a simple data structure for storing a User: struct User{ let id: String var name: String } I'm confused as to whether I should be using a Struct or a Class. I've consulted Apple's documentation: In an app that consults a remote…
izaguirrejoe
  • 117
  • 8
1
vote
1 answer

YapDatabase only uses a single table to store data

I am looking for a key value store database on iOS. It should be based on sqlite, so YapDatabase seems to be a good choice. But I find YapDatabase only uses a single table, to quote "The main database table is named "database" ": CREATE TABLE…
Qiulang
  • 10,295
  • 11
  • 80
  • 129
1
vote
1 answer

How to save multiple entries in table using YapDatabase for swift

I am using YapDatabase for storing my objects.Need how to store multiple entries in a table. For example : I need to save all students information in Student table. So how can I do that with YapDatabase using Swift. var paths =…
ManiaChamp
  • 849
  • 7
  • 22
1
vote
1 answer

How to update database record using YapDatabase

I am using Mantle as model framework. I have a mode like below: Season.h @interface Season : MTLModel @property (nonatomic, copy) NSNumber *seasonID; @property (nonatomic, strong) NSArray *episodes; Season.m + (NSDictionary…
yong ho
  • 3,892
  • 9
  • 40
  • 81
1
vote
1 answer

YAPdatabase connexion is null

I try to install yapdatabase on my project and i have the problem that self.connexion is null. @implementation DataManager - (instancetype)init { self = [super init]; if (self) { self.database = [[YapDatabase alloc]…
Benoît
  • 13
  • 1
  • 7
1
vote
1 answer

Multiple index-entries for a single Yapdatabase-row

I´m using Yapdatabase as storage engine in my iOS-application, and I need an index representing multiple values of the same property of an object. Example: I´m storing car objects in my Yapdatabase. Most of my car objects have multiple colors, but…
stoffen
  • 570
  • 6
  • 14
0
votes
1 answer

Creating a unique ID for an object in YapDatabase

Suppose I have a collection of Users in a YapDatabase. How do I assign each user a unique identifier upon creation? struct User: Codable{ public var name: String private var id: ??? } I've seen UUID in the Apple developer documentation.…
0
votes
0 answers

SQLite equivalent of NSPredicate "ANY array1 IN array2"?

I'm trying to get started using YapDatabase, mostly to see if it's worth replacing some NSPredicate-based searches I've been using for a while. One search I can't seem to find a good way of doing so far with SQLite queries is finding all objects…
RL2000
  • 913
  • 10
  • 20
0
votes
0 answers

YapDatabase encryption with Carthage

I'm trying to move my project from cocoapods to carthage. I'm using YapDatabase with encryption used by pod pod 'YapDatabase/SQLCipher' Now when I removed pod and I've created yapdb framework with carthage I cant set cipherKeyBlock, compiler can't…
ninja_iOS
  • 1,183
  • 1
  • 13
  • 20
0
votes
1 answer

Adding Project as Submodule prompt an error Module YapDatabse not found

I am using ChatSecure as a submodule of my project. I have added it to my project. But it is showing an error in pods of ChatSecure but when I am running only ChatSecure it is working fine and running on my iPhone. And sometimes it is showing the…
Muhammad Raza
  • 952
  • 7
  • 24
0
votes
1 answer

YapDatabase sorting confounds editing update

In a UITableViewController I use YapDatabase with Mantle sorting the following way: YapDatabaseViewSorting *viewSorting = [YapDatabaseViewSorting withObjectBlock:^NSComparisonResult(NSString *group, NSString *collection1, NSString *key1, XQBuilding…
0
votes
0 answers

YapDatabase SQLite error code:6922, 'disk I/O error'

I'm currently working on integrating YapDatabase to our mobile app. I'm getting the following error: (6922) I/O error for database at …
1
2