Add database dependencies

This commit is contained in:
Christoph Hagen 2021-12-22 22:10:26 +01:00
parent 8e20a0daca
commit fcc1d21e5f

View File

@ -7,14 +7,17 @@ let package = Package(
.macOS(.v10_15) .macOS(.v10_15)
], ],
dependencies: [ dependencies: [
// 💧 A server-side Swift web framework. .package(name: "vapor", url: "https://github.com/vapor/vapor.git", from: "4.0.0"),
.package(url: "https://github.com/vapor/vapor.git", from: "4.0.0"), .package(name: "fluent", url: "https://github.com/vapor/fluent.git", from: "4.0.0"),
.package(name: "fluent-sqlite-driver", url: "https://github.com/vapor/fluent-sqlite.git", from: "4.0.0")
], ],
targets: [ targets: [
.target( .target(
name: "App", name: "App",
dependencies: [ dependencies: [
.product(name: "Vapor", package: "vapor") .product(name: "Fluent", package: "fluent"),
.product(name: "FluentSQLiteDriver", package: "fluent-sqlite-driver"),
.product(name: "Vapor", package: "vapor"),
], ],
swiftSettings: [ swiftSettings: [
// Enable better optimizations when building in Release configuration. Despite the use of // Enable better optimizations when building in Release configuration. Despite the use of
@ -24,9 +27,9 @@ let package = Package(
] ]
), ),
.executableTarget(name: "Run", dependencies: [.target(name: "App")]), .executableTarget(name: "Run", dependencies: [.target(name: "App")]),
.testTarget(name: "AppTests", dependencies: [ // .testTarget(name: "AppTests", dependencies: [
.target(name: "App"), // .target(name: "App"),
.product(name: "XCTVapor", package: "vapor"), // .product(name: "XCTVapor", package: "vapor"),
]) // ])
] ]
) )