Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
m-barthelemy committed Apr 6, 2020
1 parent 6141281 commit d9e723e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Sources/QueuesFluentDriver/FluentQueue.swift
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ extension FluentQueue: Queue {
return self.context.eventLoop.makeFailedFuture(QueuesFluentError.databaseNotFound)
}
let db = database as! SQLDatabase
print("••••• dialect name: \(db.dialect.name)")

var selectQuery = db
.select ()
Expand Down
2 changes: 2 additions & 0 deletions Sources/QueuesFluentDriver/PopQueries/SqlitePopQuery.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import Queues
final class SqlitePop : PopQueryProtocol {
func pop(db: Database, select: SQLExpression) -> EventLoopFuture<UUID?> {
let database = db as! SQLDatabase
//let beginImmediateTrxn = database.raw("BEGIN IMMEDIATE").

return database.raw(SQLQueryString("BEGIN IMMEDIATE")).run().flatMap { void in
var id: UUID?
return database.execute(sql: select) { (row) -> Void in
Expand Down

0 comments on commit d9e723e

Please sign in to comment.