From 92a3cf4b8e2c51884b475b0f7d17fefc216a016d Mon Sep 17 00:00:00 2001 From: Massimo Oliviero Date: Fri, 14 Jun 2024 18:07:59 +0200 Subject: [PATCH] fix: (SQLiteConfig) removed `sqlite_mode` parameter, renamed `nonlinearizable` in `non_linearizable` --- Sources/SQLiteCloud/Core/SQLiteCloudConfig+Internal.swift | 3 +-- Sources/SQLiteCloud/Core/SQLiteCloudConfig.swift | 4 ---- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/Sources/SQLiteCloud/Core/SQLiteCloudConfig+Internal.swift b/Sources/SQLiteCloud/Core/SQLiteCloudConfig+Internal.swift index 6298160..8e5c2c5 100644 --- a/Sources/SQLiteCloud/Core/SQLiteCloudConfig+Internal.swift +++ b/Sources/SQLiteCloud/Core/SQLiteCloudConfig+Internal.swift @@ -35,10 +35,9 @@ extension SQLiteCloudConfig { sqConfig.username = (username as NSString).utf8String sqConfig.password = (password as NSString).utf8String sqConfig.password_hashed = passwordHashed - sqConfig.nonlinearizable = nonlinearizable + sqConfig.non_linearizable = nonlinearizable sqConfig.timeout = Int32(timeout) sqConfig.compression = compression - sqConfig.sqlite_mode = sqliteMode sqConfig.zero_text = zerotext sqConfig.db_memory = memory sqConfig.db_create = dbCreate diff --git a/Sources/SQLiteCloud/Core/SQLiteCloudConfig.swift b/Sources/SQLiteCloud/Core/SQLiteCloudConfig.swift index 9019272..b49d298 100644 --- a/Sources/SQLiteCloud/Core/SQLiteCloudConfig.swift +++ b/Sources/SQLiteCloud/Core/SQLiteCloudConfig.swift @@ -35,7 +35,6 @@ public struct SQLiteCloudConfig: Sendable { public let nonlinearizable: Bool public let timeout: Int public let compression: Bool - public let sqliteMode: Bool public let zerotext: Bool public let memory: Bool public let dbCreate: Bool @@ -59,7 +58,6 @@ public struct SQLiteCloudConfig: Sendable { nonlinearizable: Bool = false, timeout: Int = 0, compression: Bool = false, - sqliteMode: Bool = false, zerotext: Bool = false, memory: Bool = false, dbCreate: Bool = false, @@ -82,7 +80,6 @@ public struct SQLiteCloudConfig: Sendable { self.nonlinearizable = nonlinearizable self.timeout = timeout self.compression = compression - self.sqliteMode = sqliteMode self.zerotext = zerotext self.memory = memory self.dbCreate = dbCreate @@ -130,7 +127,6 @@ public struct SQLiteCloudConfig: Sendable { // in query self.timeout = UrlParser.parse(items: queryItems, name: "timeout") self.compression = UrlParser.parse(items: queryItems, name: "compression") - self.sqliteMode = UrlParser.parse(items: queryItems, name: "sqliteMode") self.zerotext = UrlParser.parse(items: queryItems, name: "zerotext") self.memory = UrlParser.parse(items: queryItems, name: "memory") self.dbCreate = UrlParser.parse(items: queryItems, name: "create")