Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Commit 4b989bb

Browse files
committed
ios example
1 parent 6771b16 commit 4b989bb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

samples/ios/iosExample/DbAccess.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@ import SqliteStorage
33

44

55
struct DbAccess {
6-
private let db: StorageAccess = SQLiteStorageFactory().create(dbName: "my_db")
6+
private let db: SqliteStorage = SqliteStorageFactory().create(dbName: "my_db")
7+
8+
9+
func saveSingle(key: String, value: String) async throws -> Void {
10+
try! await db.write(entry: Entry(key: key, value: value))
11+
}
712

813

914
func saveEntry(entry: Entry) async throws -> Void {

0 commit comments

Comments
 (0)