Skip to content

Commit

Permalink
fix: (SQLiteConfig) removed sqlite_mode parameter, renamed `nonline…
Browse files Browse the repository at this point in the history
…arizable` in `non_linearizable`
  • Loading branch information
maxoly committed Jun 14, 2024
1 parent f65886c commit 92a3cf4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
3 changes: 1 addition & 2 deletions Sources/SQLiteCloud/Core/SQLiteCloudConfig+Internal.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 0 additions & 4 deletions Sources/SQLiteCloud/Core/SQLiteCloudConfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
Expand All @@ -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
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 92a3cf4

Please sign in to comment.