You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// This init method would create the db file with name passed as parameter and would open the database connection. And if the file already exist it will just open the database connection.Also it would create a table in these file if its not already created.All this operations are done synchronously in background thread.
22
+
/// This init method would create the db file with name passed as parameter and would open the database connection. And if the file already exist it will just open the database connection.Also it would create a table in these file if its not already created.Sqlite is configured in serialised mode
23
23
///
24
24
/// - parameter fileName: The sqlite filename.
25
25
///
@@ -34,7 +34,7 @@ public class KVStoreManager: CRUDDelegate {
34
34
print("Successfully opened connection to database.")
35
35
}
36
36
37
-
/// Inserts or Updates the key value pair in the database in an synchronus thread safe way in background thread
37
+
/// Inserts or Updates the key value pair in the database in a syrialized way
38
38
///
39
39
/// - parameter value: Its of type Data. This is stored as BLOB in sqlite for the unique key.
40
40
/// - parameter key: Its a unique key which is of type `Hashable` and its also a primary key in a database
@@ -46,7 +46,7 @@ public class KVStoreManager: CRUDDelegate {
46
46
47
47
}
48
48
49
-
/// Deletes the key value pair in the database in synchronus thread safe way in background thread
49
+
/// Deletes the key value pair in the database in a syrialized way
50
50
///
51
51
/// - parameter value: Its of type Data. This is stored as BLOB in sqlite for the unique key.
52
52
/// - parameter key: Its a unique key which is of type `Hashable` and its also a primary key in a database
@@ -56,7 +56,7 @@ public class KVStoreManager: CRUDDelegate {
56
56
try db.delete(key: key.hashValue)
57
57
}
58
58
59
-
/// Updates the key value pair in the database in synchronus way in background thread
59
+
/// Updates the key value pair in the database in a syrialized way
60
60
///
61
61
/// - parameter key: Its a unique key which is of type `Hashable` and its also a primary key in a database
62
62
///
@@ -65,12 +65,25 @@ public class KVStoreManager: CRUDDelegate {
0 commit comments