Swapped the MySQL package dependencies for PostgreSQL in Persistence package.

This commit is contained in:
2026-08-04 17:43:34 +02:00
parent 3463556c13
commit 02ab9671b1
+17 -9
View File
@@ -21,8 +21,8 @@ let package = Package(
from: "2.0.0" from: "2.0.0"
), ),
.package( .package(
url: "https://github.com/vapor/fluent-mysql-driver.git", url: "https://github.com/vapor/fluent-postgres-driver.git",
from: "4.8.0" from: "2.12.0"
), ),
.package( .package(
url: "https://github.com/vapor/fluent-sqlite-driver.git", url: "https://github.com/vapor/fluent-sqlite-driver.git",
@@ -33,12 +33,16 @@ let package = Package(
from: "3.36.0" from: "3.36.0"
), ),
.package( .package(
url: "https://github.com/vapor/mysql-nio.git", url: "https://github.com/vapor/postgres-nio.git",
from: "1.7.0" from: "1.33.0"
), ),
.package( .package(
url: "https://github.com/apple/swift-nio.git", url: "https://github.com/apple/swift-nio.git",
from: "2.65.0" from: "2.81.0"
),
.package(
url: "https://github.com/apple/swift-nio-ssl.git",
from: "2.25.0"
), ),
], ],
targets: [ targets: [
@@ -50,8 +54,8 @@ let package = Package(
package: "hummingbird-fluent" package: "hummingbird-fluent"
), ),
.product( .product(
name: "FluentMySQLDriver", name: "FluentPostgresDriver",
package: "fluent-mysql-driver" package: "fluent-postgres-driver"
), ),
.product( .product(
name: "FluentSQLiteDriver", name: "FluentSQLiteDriver",
@@ -69,8 +73,8 @@ let package = Package(
dependencies: [ dependencies: [
.byName(name: "Persistence"), .byName(name: "Persistence"),
.product( .product(
name: "MySQLNIO", name: "PostgresNIO",
package: "mysql-nio" package: "postgres-nio"
), ),
.product( .product(
name: "NIOCore", name: "NIOCore",
@@ -80,6 +84,10 @@ let package = Package(
name: "NIOPosix", name: "NIOPosix",
package: "swift-nio" package: "swift-nio"
), ),
.product(
name: "NIOSSL",
package: "swift-nio-ssl"
),
], ],
path: "Tests" path: "Tests"
), ),