Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ let package = Package(
products: [
.library(name: "HummingbirdPostgres", targets: ["HummingbirdPostgres"]),
.library(name: "PostgresMigrations", targets: ["PostgresMigrations"]),
.library(name: "JobsPostgres", targets: ["JobsPostgres"]),
],
dependencies: [
.package(url: "https://github.com/hummingbird-project/hummingbird.git", from: "2.0.0"),
Expand All @@ -35,15 +34,6 @@ let package = Package(
],
swiftSettings: swiftSettings
),
.target(
name: "JobsPostgres",
dependencies: [
"PostgresMigrations",
.product(name: "Jobs", package: "swift-jobs"),
.product(name: "PostgresNIO", package: "postgres-nio"),
],
swiftSettings: swiftSettings
),
.testTarget(
name: "HummingbirdPostgresTests",
dependencies: [
Expand All @@ -57,11 +47,5 @@ let package = Package(
"PostgresMigrations",
]
),
.testTarget(
name: "JobsPostgresTests",
dependencies: [
"JobsPostgres",
]
),
]
)
16 changes: 0 additions & 16 deletions Package@swift-6.0.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@ let package = Package(
products: [
.library(name: "HummingbirdPostgres", targets: ["HummingbirdPostgres"]),
.library(name: "PostgresMigrations", targets: ["PostgresMigrations"]),
.library(name: "JobsPostgres", targets: ["JobsPostgres"]),
],
dependencies: [
.package(url: "https://github.com/hummingbird-project/hummingbird.git", from: "2.0.0"),
.package(url: "https://github.com/hummingbird-project/swift-jobs.git", branch: "main"),
.package(url: "https://github.com/vapor/postgres-nio", from: "1.21.0"),
],
targets: [
Expand All @@ -31,14 +29,6 @@ let package = Package(
.product(name: "PostgresNIO", package: "postgres-nio"),
]
),
.target(
name: "JobsPostgres",
dependencies: [
"PostgresMigrations",
.product(name: "Jobs", package: "swift-jobs"),
.product(name: "PostgresNIO", package: "postgres-nio"),
]
),
.testTarget(
name: "HummingbirdPostgresTests",
dependencies: [
Expand All @@ -52,11 +42,5 @@ let package = Package(
"PostgresMigrations",
]
),
.testTarget(
name: "JobsPostgresTests",
dependencies: [
"JobsPostgres",
]
),
]
)
72 changes: 0 additions & 72 deletions Snippets/PSQLSoakTestQueue.swift

This file was deleted.

6 changes: 3 additions & 3 deletions Sources/HummingbirdPostgres/PostgresPersistDriver.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ extension PSQLError {

/// Postgres driver for persist system for storing persistent cross request key/value pairs
///
/// The Postgres driver uses the database migration service ``PostgresMigrations`` to
/// The Postgres driver uses the database migration service ``/PostgresMigrations/DatabaseMigrations`` to
/// create its database table. Before the server is running you should run the migrations
/// to build your table.
/// ```
/// let migrations = PostgresMigrations()
/// let migrations = DatabaseMigrations()
/// let persist = PostgresPersistDriver(client: postgresClient, migrations: migrations)
/// var app = Application(...)
/// app.runBeforeServerStart {
Expand Down Expand Up @@ -68,7 +68,7 @@ public final class PostgresPersistDriver: PersistDriver {
/// Initialize PostgresPersistDriver
/// - Parameters:
/// - client: Postgres client
/// - migrations: DatabaseMigrations array to add persist migrations
/// - migrations: ``/PostgresMigrations/DatabaseMigrations`` array to add persist migrations
/// - tidyUpFrequency: How frequently cleanup expired database entries should occur
/// - logger: Logger used by persist
public init(client: PostgresClient, migrations: DatabaseMigrations, tidyUpFrequency: Duration = .seconds(600), logger: Logger) async {
Expand Down
38 changes: 0 additions & 38 deletions Sources/JobsPostgres/Migrations/CreateJobDelay.swift

This file was deleted.

48 changes: 0 additions & 48 deletions Sources/JobsPostgres/Migrations/CreateJobQueue.swift

This file was deleted.

41 changes: 0 additions & 41 deletions Sources/JobsPostgres/Migrations/CreateJobQueueMetadata.swift

This file was deleted.

55 changes: 0 additions & 55 deletions Sources/JobsPostgres/Migrations/CreateJobs.swift

This file was deleted.

31 changes: 0 additions & 31 deletions Sources/JobsPostgres/PostgresClient+Transaction.swift

This file was deleted.

Loading