Skip to content

Commit

Permalink
Remove need for dbType parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
m-barthelemy committed Apr 6, 2020
1 parent 8bae26c commit fd5ea91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/QueuesFluentDriver/Queues.Provider+fluent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ extension Application.Queues.Provider {
/// **WARNING**: if set to `false`, with any database engine other than Sqlite, a given job could be picked by multiple workers, unless you only have one single Queues worker/process.
/// `useSkipLocked` is `true` by default and is supported on Mysql >= 8.0.1, MariaDB >= 10.3, Postgres >= 9.5, Oracle >= 9i(?).
/// Sqlite doesn't have nor need it since it uses full table locking on update. Other dbs are just too weird (SQL Server).
public static func fluent(_ dbId: DatabaseID, dbType: QueuesFluentDbType, useSoftDeletes: Bool = true) -> Self {
public static func fluent(_ dbId: DatabaseID, useSoftDeletes: Bool = true) -> Self {
.init {
$0.queues.use(custom:
FluentQueuesDriver(on: dbId, useSoftDeletes: useSoftDeletes)
Expand Down

0 comments on commit fd5ea91

Please sign in to comment.