Build Information
Successful build of Bridges, reference master (7ae80c
), with Swift 6.2 (beta) for macOS (SPM) on 19 Jun 2025 06:17:48 UTC.
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Build Log
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
112 | }
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:111:18: warning: capture of non-sendable type 'Column.Type' in an isolated closure
109 | ) -> EventLoopFuture<Void> {
110 | preActions(self).flatMap { _ in
111 | self.updateNonReturning(on: keyColumn, on: db, on: container)
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
112 | }
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:104:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
102 | ///
103 |
104 | public func updateNonReturning<Column: ColumnRepresentable, T>(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
105 | on keyColumn: KeyPath<Self, Column>,
106 | on db: DatabaseIdentifier,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:105:12: warning: capture of non-sendable type 'Column.Type' in an isolated closure
103 |
104 | public func updateNonReturning<Column: ColumnRepresentable, T>(
105 | on keyColumn: KeyPath<Self, Column>,
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
106 | on db: DatabaseIdentifier,
107 | on container: AnyBridgesObject,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:122:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
120 | ) -> EventLoopFuture<Self> {
121 | preActions(self).flatMap { _ in
122 | self.update(on: keyColumn, on: db, on: container)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
123 | }
124 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:122:18: warning: capture of non-sendable type 'Column.Type' in an isolated closure
120 | ) -> EventLoopFuture<Self> {
121 | preActions(self).flatMap { _ in
122 | self.update(on: keyColumn, on: db, on: container)
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
123 | }
124 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:115:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
113 | }
114 |
115 | public func update<Column: ColumnRepresentable, T>(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
116 | on keyColumn: KeyPath<Self, Column>,
117 | on db: DatabaseIdentifier,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:116:12: warning: capture of non-sendable type 'Column.Type' in an isolated closure
114 |
115 | public func update<Column: ColumnRepresentable, T>(
116 | on keyColumn: KeyPath<Self, Column>,
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
117 | on db: DatabaseIdentifier,
118 | on container: AnyBridgesObject,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:161:38: warning: capture of non-sendable type 'Self.Type' in an isolated closure
159 | .all(decoding: Self.self)
160 | .flatMapThrowing { rows in
161 | guard let row = rows.first else { throw BridgesError.failedToDecodeWithReturning }
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
162 | return row
163 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:197:38: warning: capture of non-sendable type 'Self.Type' in an isolated closure
195 | .all(decoding: Self.self)
196 | .flatMapThrowing { rows in
197 | guard let row = rows.first else { throw BridgesError.failedToDecodeWithReturning }
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
198 | return row
199 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:212:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
210 | try preActions()
211 | }.flatMap {
212 | self.updateNonReturning(on: keyColumn, on: conn)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
213 | }
214 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:212:18: warning: capture of non-sendable type 'Column.Type' in an isolated closure
210 | try preActions()
211 | }.flatMap {
212 | self.updateNonReturning(on: keyColumn, on: conn)
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
213 | }
214 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:204:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
202 | // MARK: On connection
203 |
204 | public func updateNonReturning<Column: ColumnRepresentable>(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
205 | on keyColumn: KeyPath<Self, Column>,
206 | on conn: BridgeConnection,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:205:12: warning: capture of non-sendable type 'Column.Type' in an isolated closure
203 |
204 | public func updateNonReturning<Column: ColumnRepresentable>(
205 | on keyColumn: KeyPath<Self, Column>,
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
206 | on conn: BridgeConnection,
207 | preActions: @escaping () throws -> Void
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:224:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
222 | try preActions()
223 | }.flatMap {
224 | self.update(on: keyColumn, on: conn)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
225 | }
226 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:224:18: warning: capture of non-sendable type 'Column.Type' in an isolated closure
222 | try preActions()
223 | }.flatMap {
224 | self.update(on: keyColumn, on: conn)
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
225 | }
226 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:216:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
214 | }
215 |
216 | public func update<Column: ColumnRepresentable>(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
217 | on keyColumn: KeyPath<Self, Column>,
218 | on conn: BridgeConnection,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:217:12: warning: capture of non-sendable type 'Column.Type' in an isolated closure
215 |
216 | public func update<Column: ColumnRepresentable>(
217 | on keyColumn: KeyPath<Self, Column>,
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
218 | on conn: BridgeConnection,
219 | preActions: @escaping () throws -> Void
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:236:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
234 | ) -> EventLoopFuture<Void> {
235 | conn.eventLoop.future().flatMapThrowing {
236 | try preActions(self)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
237 | }.flatMap {
238 | self.updateNonReturning(on: keyColumn, on: conn)
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:233:9: warning: capture of non-sendable type 'Self.Type' in an isolated closure
231 | on keyColumn: KeyPath<Self, Column>,
232 | on conn: BridgeConnection,
233 | preActions: @escaping (Self) throws -> Void
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
234 | ) -> EventLoopFuture<Void> {
235 | conn.eventLoop.future().flatMapThrowing {
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:238:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
236 | try preActions(self)
237 | }.flatMap {
238 | self.updateNonReturning(on: keyColumn, on: conn)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
239 | }
240 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:238:18: warning: capture of non-sendable type 'Column.Type' in an isolated closure
236 | try preActions(self)
237 | }.flatMap {
238 | self.updateNonReturning(on: keyColumn, on: conn)
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
239 | }
240 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:230:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
228 | ///
229 |
230 | public func updateNonReturning<Column: ColumnRepresentable>(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
231 | on keyColumn: KeyPath<Self, Column>,
232 | on conn: BridgeConnection,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:231:12: warning: capture of non-sendable type 'Column.Type' in an isolated closure
229 |
230 | public func updateNonReturning<Column: ColumnRepresentable>(
231 | on keyColumn: KeyPath<Self, Column>,
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
232 | on conn: BridgeConnection,
233 | preActions: @escaping (Self) throws -> Void
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:248:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
246 | ) -> EventLoopFuture<Self> {
247 | conn.eventLoop.future().flatMapThrowing {
248 | try preActions(self)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
249 | }.flatMap {
250 | self.update(on: keyColumn, on: conn)
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:245:9: warning: capture of non-sendable type 'Self.Type' in an isolated closure
243 | on keyColumn: KeyPath<Self, Column>,
244 | on conn: BridgeConnection,
245 | preActions: @escaping (Self) throws -> Void
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
246 | ) -> EventLoopFuture<Self> {
247 | conn.eventLoop.future().flatMapThrowing {
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:250:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
248 | try preActions(self)
249 | }.flatMap {
250 | self.update(on: keyColumn, on: conn)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
251 | }
252 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:250:18: warning: capture of non-sendable type 'Column.Type' in an isolated closure
248 | try preActions(self)
249 | }.flatMap {
250 | self.update(on: keyColumn, on: conn)
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
251 | }
252 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:242:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
240 | }
241 |
242 | public func update<Column: ColumnRepresentable>(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
243 | on keyColumn: KeyPath<Self, Column>,
244 | on conn: BridgeConnection,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:243:12: warning: capture of non-sendable type 'Column.Type' in an isolated closure
241 |
242 | public func update<Column: ColumnRepresentable>(
243 | on keyColumn: KeyPath<Self, Column>,
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
244 | on conn: BridgeConnection,
245 | preActions: @escaping (Self) throws -> Void
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:262:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
260 | ) -> EventLoopFuture<Void> {
261 | preActions().flatMap { _ in
262 | self.updateNonReturning(on: keyColumn, on: conn)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
263 | }
264 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:262:18: warning: capture of non-sendable type 'Column.Type' in an isolated closure
260 | ) -> EventLoopFuture<Void> {
261 | preActions().flatMap { _ in
262 | self.updateNonReturning(on: keyColumn, on: conn)
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
263 | }
264 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:256:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
254 | ///
255 |
256 | public func updateNonReturning<Column: ColumnRepresentable, T>(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
257 | on keyColumn: KeyPath<Self, Column>,
258 | on conn: BridgeConnection,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:257:12: warning: capture of non-sendable type 'Column.Type' in an isolated closure
255 |
256 | public func updateNonReturning<Column: ColumnRepresentable, T>(
257 | on keyColumn: KeyPath<Self, Column>,
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
258 | on conn: BridgeConnection,
259 | preActions: () -> EventLoopFuture<T>
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:272:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
270 | ) -> EventLoopFuture<Self> {
271 | preActions().flatMap { _ in
272 | self.update(on: keyColumn, on: conn)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
273 | }
274 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:272:18: warning: capture of non-sendable type 'Column.Type' in an isolated closure
270 | ) -> EventLoopFuture<Self> {
271 | preActions().flatMap { _ in
272 | self.update(on: keyColumn, on: conn)
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
273 | }
274 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:266:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
264 | }
265 |
266 | public func update<Column: ColumnRepresentable, T>(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
267 | on keyColumn: KeyPath<Self, Column>,
268 | on conn: BridgeConnection,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:267:12: warning: capture of non-sendable type 'Column.Type' in an isolated closure
265 |
266 | public func update<Column: ColumnRepresentable, T>(
267 | on keyColumn: KeyPath<Self, Column>,
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
268 | on conn: BridgeConnection,
269 | preActions: () -> EventLoopFuture<T>
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:284:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
282 | ) -> EventLoopFuture<Void> {
283 | preActions(self).flatMap { _ in
284 | self.updateNonReturning(on: keyColumn, on: conn)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
285 | }
286 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:284:18: warning: capture of non-sendable type 'Column.Type' in an isolated closure
282 | ) -> EventLoopFuture<Void> {
283 | preActions(self).flatMap { _ in
284 | self.updateNonReturning(on: keyColumn, on: conn)
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
285 | }
286 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:278:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
276 | ///
277 |
278 | public func updateNonReturning<Column: ColumnRepresentable, T>(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
279 | on keyColumn: KeyPath<Self, Column>,
280 | on conn: BridgeConnection,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:279:12: warning: capture of non-sendable type 'Column.Type' in an isolated closure
277 |
278 | public func updateNonReturning<Column: ColumnRepresentable, T>(
279 | on keyColumn: KeyPath<Self, Column>,
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
280 | on conn: BridgeConnection,
281 | preActions: (Self) -> EventLoopFuture<T>
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:294:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
292 | ) -> EventLoopFuture<Self> {
293 | preActions(self).flatMap { _ in
294 | self.update(on: keyColumn, on: conn)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
295 | }
296 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:294:18: warning: capture of non-sendable type 'Column.Type' in an isolated closure
292 | ) -> EventLoopFuture<Self> {
293 | preActions(self).flatMap { _ in
294 | self.update(on: keyColumn, on: conn)
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
295 | }
296 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:288:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
286 | }
287 |
288 | public func update<Column: ColumnRepresentable, T>(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
289 | on keyColumn: KeyPath<Self, Column>,
290 | on conn: BridgeConnection,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:289:12: warning: capture of non-sendable type 'Column.Type' in an isolated closure
287 |
288 | public func update<Column: ColumnRepresentable, T>(
289 | on keyColumn: KeyPath<Self, Column>,
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
290 | on conn: BridgeConnection,
291 | preActions: (Self) -> EventLoopFuture<T>
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:328:34: warning: capture of non-sendable type 'Self.Type' in an isolated closure
326 | let query = buildUpdateQuery(items: items.0, where: items.1 == items.2, returning: true)
327 | return conn.query(sql: query, decoding: Self.self).flatMapThrowing { rows in
328 | guard let row = rows.first else { throw BridgesError.failedToDecodeWithReturning }
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
329 | return row
330 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpsert.swift:211:34: warning: capture of non-sendable type 'Self.Type' in an isolated closure
209 | .all(decoding: Self.self)
210 | .flatMapThrowing { rows in
211 | guard let row = rows.first else { return self }
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
212 | return row
213 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpsert.swift:191:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
189 | }
190 |
191 | private func _upsert<Column: ColumnRepresentable>(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
192 | conflictColumn: KeyPath<Self, Column>,
193 | excluding: [KeyPathLastPath],
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpsert.swift:361:34: warning: capture of non-sendable type 'Self.Type' in an isolated closure
359 | .all(decoding: Self.self)
360 | .flatMapThrowing { rows in
361 | guard let row = rows.first else { return self }
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
362 | return row
363 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpsert.swift:344:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
342 | }
343 |
344 | private func _upsert(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
345 | conflictConstraint: KeyPathLastPath,
346 | excluding: [KeyPathLastPath],
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpsert.swift:504:34: warning: capture of non-sendable type 'Self.Type' in an isolated closure
502 | )
503 | return conn.query(sql: query, decoding: Self.self).flatMapThrowing { rows in
504 | guard let row = rows.first else { return self }
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
505 | return row
506 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpsert.swift:487:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
485 | }
486 |
487 | private func _upsert<Column: ColumnRepresentable>(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
488 | conflictColumn: KeyPath<Self, Column>,
489 | excluding: [KeyPathLastPath],
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpsert.swift:641:34: warning: capture of non-sendable type 'Self.Type' in an isolated closure
639 | )
640 | return conn.query(sql: query, decoding: Self.self).flatMapThrowing { rows in
641 | guard let row = rows.first else { return self }
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
642 | return row
643 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpsert.swift:627:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
625 | }
626 |
627 | private func _upsert(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
628 | conflictConstraint: KeyPathLastPath,
629 | excluding: [KeyPathLastPath],
[1239/1258] Compiling Bridges TableUpdate.swift
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableDelete.swift:47:38: warning: capture of non-sendable type 'Self.Type' in an isolated closure
45 | .all(decoding: Self.self)
46 | .flatMapThrowing { rows in
47 | guard let row = rows.first else { throw BridgesError.failedToDecodeWithReturning }
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
48 | return row
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableInsert.swift:81:38: warning: capture of non-sendable type 'Self.Type' in an isolated closure
79 | .all(decoding: Self.self)
80 | .flatMapThrowing { rows in
81 | guard let row = rows.first else { throw BridgesError.failedToDecodeWithReturning }
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
82 | return row
83 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableInsert.swift:116:34: warning: capture of non-sendable type 'Self.Type' in an isolated closure
114 | let query = buildInsertQuery(schema: schema, items: allColumns(logger: conn.logger), returning: true)
115 | return conn.query(sql: query, decoding: Self.self).flatMapThrowing { rows in
116 | guard let row = rows.first else { throw BridgesError.failedToDecodeWithReturning }
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
117 | return row
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:33:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
31 | try preActions()
32 | }.flatMap {
33 | self.updateNonReturning(on: keyColumn, on: db, on: container)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
34 | }
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:33:18: warning: capture of non-sendable type 'Column.Type' in an isolated closure
31 | try preActions()
32 | }.flatMap {
33 | self.updateNonReturning(on: keyColumn, on: db, on: container)
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
34 | }
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:24:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
22 | // MARK: Standalone
23 |
24 | public func updateNonReturning<Column: ColumnRepresentable>(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
25 | on keyColumn: KeyPath<Self, Column>,
26 | on db: DatabaseIdentifier,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:25:12: warning: capture of non-sendable type 'Column.Type' in an isolated closure
23 |
24 | public func updateNonReturning<Column: ColumnRepresentable>(
25 | on keyColumn: KeyPath<Self, Column>,
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
26 | on db: DatabaseIdentifier,
27 | on container: AnyBridgesObject,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:46:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
44 | try preActions()
45 | }.flatMap {
46 | self.update(on: keyColumn, on: db, on: container)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
47 | }
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:46:18: warning: capture of non-sendable type 'Column.Type' in an isolated closure
44 | try preActions()
45 | }.flatMap {
46 | self.update(on: keyColumn, on: db, on: container)
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
47 | }
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:37:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
35 | }
36 |
37 | public func update<Column: ColumnRepresentable>(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
38 | on keyColumn: KeyPath<Self, Column>,
39 | on db: DatabaseIdentifier,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:38:12: warning: capture of non-sendable type 'Column.Type' in an isolated closure
36 |
37 | public func update<Column: ColumnRepresentable>(
38 | on keyColumn: KeyPath<Self, Column>,
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
39 | on db: DatabaseIdentifier,
40 | on container: AnyBridgesObject,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:59:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
57 | ) -> EventLoopFuture<Void> {
58 | container.eventLoop.future().flatMapThrowing {
59 | try preActions(self)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
60 | }.flatMap {
61 | self.updateNonReturning(on: keyColumn, on: db, on: container)
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:56:9: warning: capture of non-sendable type 'Self.Type' in an isolated closure
54 | on db: DatabaseIdentifier,
55 | on container: AnyBridgesObject,
56 | preActions: @escaping (Self) throws -> Void
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
57 | ) -> EventLoopFuture<Void> {
58 | container.eventLoop.future().flatMapThrowing {
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:61:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
59 | try preActions(self)
60 | }.flatMap {
61 | self.updateNonReturning(on: keyColumn, on: db, on: container)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
62 | }
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:61:18: warning: capture of non-sendable type 'Column.Type' in an isolated closure
59 | try preActions(self)
60 | }.flatMap {
61 | self.updateNonReturning(on: keyColumn, on: db, on: container)
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
62 | }
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:52:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
50 | ///
51 |
52 | public func updateNonReturning<Column: ColumnRepresentable>(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
53 | on keyColumn: KeyPath<Self, Column>,
54 | on db: DatabaseIdentifier,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:53:12: warning: capture of non-sendable type 'Column.Type' in an isolated closure
51 |
52 | public func updateNonReturning<Column: ColumnRepresentable>(
53 | on keyColumn: KeyPath<Self, Column>,
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
54 | on db: DatabaseIdentifier,
55 | on container: AnyBridgesObject,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:72:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
70 | ) -> EventLoopFuture<Self> {
71 | container.eventLoop.future().flatMapThrowing {
72 | try preActions(self)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
73 | }.flatMap {
74 | self.update(on: keyColumn, on: db, on: container)
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:69:9: warning: capture of non-sendable type 'Self.Type' in an isolated closure
67 | on db: DatabaseIdentifier,
68 | on container: AnyBridgesObject,
69 | preActions: @escaping (Self) throws -> Void
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
70 | ) -> EventLoopFuture<Self> {
71 | container.eventLoop.future().flatMapThrowing {
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:74:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
72 | try preActions(self)
73 | }.flatMap {
74 | self.update(on: keyColumn, on: db, on: container)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:74:18: warning: capture of non-sendable type 'Column.Type' in an isolated closure
72 | try preActions(self)
73 | }.flatMap {
74 | self.update(on: keyColumn, on: db, on: container)
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:65:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
63 | }
64 |
65 | public func update<Column: ColumnRepresentable>(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
66 | on keyColumn: KeyPath<Self, Column>,
67 | on db: DatabaseIdentifier,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:66:12: warning: capture of non-sendable type 'Column.Type' in an isolated closure
64 |
65 | public func update<Column: ColumnRepresentable>(
66 | on keyColumn: KeyPath<Self, Column>,
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
67 | on db: DatabaseIdentifier,
68 | on container: AnyBridgesObject,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:87:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
85 | ) -> EventLoopFuture<Void> {
86 | preActions().flatMap { _ in
87 | self.updateNonReturning(on: keyColumn, on: db, on: container)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
88 | }
89 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:87:18: warning: capture of non-sendable type 'Column.Type' in an isolated closure
85 | ) -> EventLoopFuture<Void> {
86 | preActions().flatMap { _ in
87 | self.updateNonReturning(on: keyColumn, on: db, on: container)
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
88 | }
89 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:80:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
78 | ///
79 |
80 | public func updateNonReturning<Column: ColumnRepresentable, T>(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
81 | on keyColumn: KeyPath<Self, Column>,
82 | on db: DatabaseIdentifier,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:81:12: warning: capture of non-sendable type 'Column.Type' in an isolated closure
79 |
80 | public func updateNonReturning<Column: ColumnRepresentable, T>(
81 | on keyColumn: KeyPath<Self, Column>,
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
82 | on db: DatabaseIdentifier,
83 | on container: AnyBridgesObject,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:98:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
96 | ) -> EventLoopFuture<Self> {
97 | preActions().flatMap { _ in
98 | self.update(on: keyColumn, on: db, on: container)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
99 | }
100 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:98:18: warning: capture of non-sendable type 'Column.Type' in an isolated closure
96 | ) -> EventLoopFuture<Self> {
97 | preActions().flatMap { _ in
98 | self.update(on: keyColumn, on: db, on: container)
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
99 | }
100 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:91:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
89 | }
90 |
91 | public func update<Column: ColumnRepresentable, T>(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
92 | on keyColumn: KeyPath<Self, Column>,
93 | on db: DatabaseIdentifier,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:92:12: warning: capture of non-sendable type 'Column.Type' in an isolated closure
90 |
91 | public func update<Column: ColumnRepresentable, T>(
92 | on keyColumn: KeyPath<Self, Column>,
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
93 | on db: DatabaseIdentifier,
94 | on container: AnyBridgesObject,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:111:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
109 | ) -> EventLoopFuture<Void> {
110 | preActions(self).flatMap { _ in
111 | self.updateNonReturning(on: keyColumn, on: db, on: container)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
112 | }
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:111:18: warning: capture of non-sendable type 'Column.Type' in an isolated closure
109 | ) -> EventLoopFuture<Void> {
110 | preActions(self).flatMap { _ in
111 | self.updateNonReturning(on: keyColumn, on: db, on: container)
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
112 | }
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:104:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
102 | ///
103 |
104 | public func updateNonReturning<Column: ColumnRepresentable, T>(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
105 | on keyColumn: KeyPath<Self, Column>,
106 | on db: DatabaseIdentifier,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:105:12: warning: capture of non-sendable type 'Column.Type' in an isolated closure
103 |
104 | public func updateNonReturning<Column: ColumnRepresentable, T>(
105 | on keyColumn: KeyPath<Self, Column>,
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
106 | on db: DatabaseIdentifier,
107 | on container: AnyBridgesObject,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:122:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
120 | ) -> EventLoopFuture<Self> {
121 | preActions(self).flatMap { _ in
122 | self.update(on: keyColumn, on: db, on: container)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
123 | }
124 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:122:18: warning: capture of non-sendable type 'Column.Type' in an isolated closure
120 | ) -> EventLoopFuture<Self> {
121 | preActions(self).flatMap { _ in
122 | self.update(on: keyColumn, on: db, on: container)
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
123 | }
124 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:115:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
113 | }
114 |
115 | public func update<Column: ColumnRepresentable, T>(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
116 | on keyColumn: KeyPath<Self, Column>,
117 | on db: DatabaseIdentifier,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:116:12: warning: capture of non-sendable type 'Column.Type' in an isolated closure
114 |
115 | public func update<Column: ColumnRepresentable, T>(
116 | on keyColumn: KeyPath<Self, Column>,
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
117 | on db: DatabaseIdentifier,
118 | on container: AnyBridgesObject,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:161:38: warning: capture of non-sendable type 'Self.Type' in an isolated closure
159 | .all(decoding: Self.self)
160 | .flatMapThrowing { rows in
161 | guard let row = rows.first else { throw BridgesError.failedToDecodeWithReturning }
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
162 | return row
163 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:197:38: warning: capture of non-sendable type 'Self.Type' in an isolated closure
195 | .all(decoding: Self.self)
196 | .flatMapThrowing { rows in
197 | guard let row = rows.first else { throw BridgesError.failedToDecodeWithReturning }
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
198 | return row
199 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:212:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
210 | try preActions()
211 | }.flatMap {
212 | self.updateNonReturning(on: keyColumn, on: conn)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
213 | }
214 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:212:18: warning: capture of non-sendable type 'Column.Type' in an isolated closure
210 | try preActions()
211 | }.flatMap {
212 | self.updateNonReturning(on: keyColumn, on: conn)
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
213 | }
214 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:204:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
202 | // MARK: On connection
203 |
204 | public func updateNonReturning<Column: ColumnRepresentable>(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
205 | on keyColumn: KeyPath<Self, Column>,
206 | on conn: BridgeConnection,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:205:12: warning: capture of non-sendable type 'Column.Type' in an isolated closure
203 |
204 | public func updateNonReturning<Column: ColumnRepresentable>(
205 | on keyColumn: KeyPath<Self, Column>,
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
206 | on conn: BridgeConnection,
207 | preActions: @escaping () throws -> Void
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:224:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
222 | try preActions()
223 | }.flatMap {
224 | self.update(on: keyColumn, on: conn)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
225 | }
226 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:224:18: warning: capture of non-sendable type 'Column.Type' in an isolated closure
222 | try preActions()
223 | }.flatMap {
224 | self.update(on: keyColumn, on: conn)
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
225 | }
226 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:216:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
214 | }
215 |
216 | public func update<Column: ColumnRepresentable>(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
217 | on keyColumn: KeyPath<Self, Column>,
218 | on conn: BridgeConnection,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:217:12: warning: capture of non-sendable type 'Column.Type' in an isolated closure
215 |
216 | public func update<Column: ColumnRepresentable>(
217 | on keyColumn: KeyPath<Self, Column>,
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
218 | on conn: BridgeConnection,
219 | preActions: @escaping () throws -> Void
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:236:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
234 | ) -> EventLoopFuture<Void> {
235 | conn.eventLoop.future().flatMapThrowing {
236 | try preActions(self)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
237 | }.flatMap {
238 | self.updateNonReturning(on: keyColumn, on: conn)
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:233:9: warning: capture of non-sendable type 'Self.Type' in an isolated closure
231 | on keyColumn: KeyPath<Self, Column>,
232 | on conn: BridgeConnection,
233 | preActions: @escaping (Self) throws -> Void
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
234 | ) -> EventLoopFuture<Void> {
235 | conn.eventLoop.future().flatMapThrowing {
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:238:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
236 | try preActions(self)
237 | }.flatMap {
238 | self.updateNonReturning(on: keyColumn, on: conn)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
239 | }
240 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:238:18: warning: capture of non-sendable type 'Column.Type' in an isolated closure
236 | try preActions(self)
237 | }.flatMap {
238 | self.updateNonReturning(on: keyColumn, on: conn)
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
239 | }
240 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:230:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
228 | ///
229 |
230 | public func updateNonReturning<Column: ColumnRepresentable>(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
231 | on keyColumn: KeyPath<Self, Column>,
232 | on conn: BridgeConnection,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:231:12: warning: capture of non-sendable type 'Column.Type' in an isolated closure
229 |
230 | public func updateNonReturning<Column: ColumnRepresentable>(
231 | on keyColumn: KeyPath<Self, Column>,
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
232 | on conn: BridgeConnection,
233 | preActions: @escaping (Self) throws -> Void
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:248:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
246 | ) -> EventLoopFuture<Self> {
247 | conn.eventLoop.future().flatMapThrowing {
248 | try preActions(self)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
249 | }.flatMap {
250 | self.update(on: keyColumn, on: conn)
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:245:9: warning: capture of non-sendable type 'Self.Type' in an isolated closure
243 | on keyColumn: KeyPath<Self, Column>,
244 | on conn: BridgeConnection,
245 | preActions: @escaping (Self) throws -> Void
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
246 | ) -> EventLoopFuture<Self> {
247 | conn.eventLoop.future().flatMapThrowing {
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:250:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
248 | try preActions(self)
249 | }.flatMap {
250 | self.update(on: keyColumn, on: conn)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
251 | }
252 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:250:18: warning: capture of non-sendable type 'Column.Type' in an isolated closure
248 | try preActions(self)
249 | }.flatMap {
250 | self.update(on: keyColumn, on: conn)
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
251 | }
252 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:242:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
240 | }
241 |
242 | public func update<Column: ColumnRepresentable>(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
243 | on keyColumn: KeyPath<Self, Column>,
244 | on conn: BridgeConnection,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:243:12: warning: capture of non-sendable type 'Column.Type' in an isolated closure
241 |
242 | public func update<Column: ColumnRepresentable>(
243 | on keyColumn: KeyPath<Self, Column>,
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
244 | on conn: BridgeConnection,
245 | preActions: @escaping (Self) throws -> Void
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:262:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
260 | ) -> EventLoopFuture<Void> {
261 | preActions().flatMap { _ in
262 | self.updateNonReturning(on: keyColumn, on: conn)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
263 | }
264 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:262:18: warning: capture of non-sendable type 'Column.Type' in an isolated closure
260 | ) -> EventLoopFuture<Void> {
261 | preActions().flatMap { _ in
262 | self.updateNonReturning(on: keyColumn, on: conn)
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
263 | }
264 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:256:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
254 | ///
255 |
256 | public func updateNonReturning<Column: ColumnRepresentable, T>(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
257 | on keyColumn: KeyPath<Self, Column>,
258 | on conn: BridgeConnection,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:257:12: warning: capture of non-sendable type 'Column.Type' in an isolated closure
255 |
256 | public func updateNonReturning<Column: ColumnRepresentable, T>(
257 | on keyColumn: KeyPath<Self, Column>,
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
258 | on conn: BridgeConnection,
259 | preActions: () -> EventLoopFuture<T>
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:272:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
270 | ) -> EventLoopFuture<Self> {
271 | preActions().flatMap { _ in
272 | self.update(on: keyColumn, on: conn)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
273 | }
274 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:272:18: warning: capture of non-sendable type 'Column.Type' in an isolated closure
270 | ) -> EventLoopFuture<Self> {
271 | preActions().flatMap { _ in
272 | self.update(on: keyColumn, on: conn)
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
273 | }
274 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:266:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
264 | }
265 |
266 | public func update<Column: ColumnRepresentable, T>(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
267 | on keyColumn: KeyPath<Self, Column>,
268 | on conn: BridgeConnection,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:267:12: warning: capture of non-sendable type 'Column.Type' in an isolated closure
265 |
266 | public func update<Column: ColumnRepresentable, T>(
267 | on keyColumn: KeyPath<Self, Column>,
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
268 | on conn: BridgeConnection,
269 | preActions: () -> EventLoopFuture<T>
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:284:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
282 | ) -> EventLoopFuture<Void> {
283 | preActions(self).flatMap { _ in
284 | self.updateNonReturning(on: keyColumn, on: conn)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
285 | }
286 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:284:18: warning: capture of non-sendable type 'Column.Type' in an isolated closure
282 | ) -> EventLoopFuture<Void> {
283 | preActions(self).flatMap { _ in
284 | self.updateNonReturning(on: keyColumn, on: conn)
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
285 | }
286 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:278:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
276 | ///
277 |
278 | public func updateNonReturning<Column: ColumnRepresentable, T>(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
279 | on keyColumn: KeyPath<Self, Column>,
280 | on conn: BridgeConnection,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:279:12: warning: capture of non-sendable type 'Column.Type' in an isolated closure
277 |
278 | public func updateNonReturning<Column: ColumnRepresentable, T>(
279 | on keyColumn: KeyPath<Self, Column>,
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
280 | on conn: BridgeConnection,
281 | preActions: (Self) -> EventLoopFuture<T>
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:294:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
292 | ) -> EventLoopFuture<Self> {
293 | preActions(self).flatMap { _ in
294 | self.update(on: keyColumn, on: conn)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
295 | }
296 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:294:18: warning: capture of non-sendable type 'Column.Type' in an isolated closure
292 | ) -> EventLoopFuture<Self> {
293 | preActions(self).flatMap { _ in
294 | self.update(on: keyColumn, on: conn)
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
295 | }
296 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:288:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
286 | }
287 |
288 | public func update<Column: ColumnRepresentable, T>(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
289 | on keyColumn: KeyPath<Self, Column>,
290 | on conn: BridgeConnection,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:289:12: warning: capture of non-sendable type 'Column.Type' in an isolated closure
287 |
288 | public func update<Column: ColumnRepresentable, T>(
289 | on keyColumn: KeyPath<Self, Column>,
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
290 | on conn: BridgeConnection,
291 | preActions: (Self) -> EventLoopFuture<T>
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:328:34: warning: capture of non-sendable type 'Self.Type' in an isolated closure
326 | let query = buildUpdateQuery(items: items.0, where: items.1 == items.2, returning: true)
327 | return conn.query(sql: query, decoding: Self.self).flatMapThrowing { rows in
328 | guard let row = rows.first else { throw BridgesError.failedToDecodeWithReturning }
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
329 | return row
330 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpsert.swift:211:34: warning: capture of non-sendable type 'Self.Type' in an isolated closure
209 | .all(decoding: Self.self)
210 | .flatMapThrowing { rows in
211 | guard let row = rows.first else { return self }
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
212 | return row
213 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpsert.swift:191:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
189 | }
190 |
191 | private func _upsert<Column: ColumnRepresentable>(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
192 | conflictColumn: KeyPath<Self, Column>,
193 | excluding: [KeyPathLastPath],
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpsert.swift:361:34: warning: capture of non-sendable type 'Self.Type' in an isolated closure
359 | .all(decoding: Self.self)
360 | .flatMapThrowing { rows in
361 | guard let row = rows.first else { return self }
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
362 | return row
363 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpsert.swift:344:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
342 | }
343 |
344 | private func _upsert(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
345 | conflictConstraint: KeyPathLastPath,
346 | excluding: [KeyPathLastPath],
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpsert.swift:504:34: warning: capture of non-sendable type 'Self.Type' in an isolated closure
502 | )
503 | return conn.query(sql: query, decoding: Self.self).flatMapThrowing { rows in
504 | guard let row = rows.first else { return self }
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
505 | return row
506 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpsert.swift:487:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
485 | }
486 |
487 | private func _upsert<Column: ColumnRepresentable>(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
488 | conflictColumn: KeyPath<Self, Column>,
489 | excluding: [KeyPathLastPath],
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpsert.swift:641:34: warning: capture of non-sendable type 'Self.Type' in an isolated closure
639 | )
640 | return conn.query(sql: query, decoding: Self.self).flatMapThrowing { rows in
641 | guard let row = rows.first else { return self }
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
642 | return row
643 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpsert.swift:627:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
625 | }
626 |
627 | private func _upsert(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
628 | conflictConstraint: KeyPathLastPath,
629 | excluding: [KeyPathLastPath],
[1240/1258] Compiling Bridges TableUpsert.swift
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableDelete.swift:47:38: warning: capture of non-sendable type 'Self.Type' in an isolated closure
45 | .all(decoding: Self.self)
46 | .flatMapThrowing { rows in
47 | guard let row = rows.first else { throw BridgesError.failedToDecodeWithReturning }
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
48 | return row
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableInsert.swift:81:38: warning: capture of non-sendable type 'Self.Type' in an isolated closure
79 | .all(decoding: Self.self)
80 | .flatMapThrowing { rows in
81 | guard let row = rows.first else { throw BridgesError.failedToDecodeWithReturning }
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
82 | return row
83 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableInsert.swift:116:34: warning: capture of non-sendable type 'Self.Type' in an isolated closure
114 | let query = buildInsertQuery(schema: schema, items: allColumns(logger: conn.logger), returning: true)
115 | return conn.query(sql: query, decoding: Self.self).flatMapThrowing { rows in
116 | guard let row = rows.first else { throw BridgesError.failedToDecodeWithReturning }
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
117 | return row
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:33:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
31 | try preActions()
32 | }.flatMap {
33 | self.updateNonReturning(on: keyColumn, on: db, on: container)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
34 | }
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:33:18: warning: capture of non-sendable type 'Column.Type' in an isolated closure
31 | try preActions()
32 | }.flatMap {
33 | self.updateNonReturning(on: keyColumn, on: db, on: container)
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
34 | }
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:24:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
22 | // MARK: Standalone
23 |
24 | public func updateNonReturning<Column: ColumnRepresentable>(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
25 | on keyColumn: KeyPath<Self, Column>,
26 | on db: DatabaseIdentifier,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:25:12: warning: capture of non-sendable type 'Column.Type' in an isolated closure
23 |
24 | public func updateNonReturning<Column: ColumnRepresentable>(
25 | on keyColumn: KeyPath<Self, Column>,
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
26 | on db: DatabaseIdentifier,
27 | on container: AnyBridgesObject,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:46:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
44 | try preActions()
45 | }.flatMap {
46 | self.update(on: keyColumn, on: db, on: container)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
47 | }
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:46:18: warning: capture of non-sendable type 'Column.Type' in an isolated closure
44 | try preActions()
45 | }.flatMap {
46 | self.update(on: keyColumn, on: db, on: container)
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
47 | }
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:37:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
35 | }
36 |
37 | public func update<Column: ColumnRepresentable>(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
38 | on keyColumn: KeyPath<Self, Column>,
39 | on db: DatabaseIdentifier,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:38:12: warning: capture of non-sendable type 'Column.Type' in an isolated closure
36 |
37 | public func update<Column: ColumnRepresentable>(
38 | on keyColumn: KeyPath<Self, Column>,
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
39 | on db: DatabaseIdentifier,
40 | on container: AnyBridgesObject,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:59:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
57 | ) -> EventLoopFuture<Void> {
58 | container.eventLoop.future().flatMapThrowing {
59 | try preActions(self)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
60 | }.flatMap {
61 | self.updateNonReturning(on: keyColumn, on: db, on: container)
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:56:9: warning: capture of non-sendable type 'Self.Type' in an isolated closure
54 | on db: DatabaseIdentifier,
55 | on container: AnyBridgesObject,
56 | preActions: @escaping (Self) throws -> Void
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
57 | ) -> EventLoopFuture<Void> {
58 | container.eventLoop.future().flatMapThrowing {
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:61:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
59 | try preActions(self)
60 | }.flatMap {
61 | self.updateNonReturning(on: keyColumn, on: db, on: container)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
62 | }
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:61:18: warning: capture of non-sendable type 'Column.Type' in an isolated closure
59 | try preActions(self)
60 | }.flatMap {
61 | self.updateNonReturning(on: keyColumn, on: db, on: container)
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
62 | }
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:52:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
50 | ///
51 |
52 | public func updateNonReturning<Column: ColumnRepresentable>(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
53 | on keyColumn: KeyPath<Self, Column>,
54 | on db: DatabaseIdentifier,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:53:12: warning: capture of non-sendable type 'Column.Type' in an isolated closure
51 |
52 | public func updateNonReturning<Column: ColumnRepresentable>(
53 | on keyColumn: KeyPath<Self, Column>,
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
54 | on db: DatabaseIdentifier,
55 | on container: AnyBridgesObject,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:72:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
70 | ) -> EventLoopFuture<Self> {
71 | container.eventLoop.future().flatMapThrowing {
72 | try preActions(self)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
73 | }.flatMap {
74 | self.update(on: keyColumn, on: db, on: container)
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:69:9: warning: capture of non-sendable type 'Self.Type' in an isolated closure
67 | on db: DatabaseIdentifier,
68 | on container: AnyBridgesObject,
69 | preActions: @escaping (Self) throws -> Void
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
70 | ) -> EventLoopFuture<Self> {
71 | container.eventLoop.future().flatMapThrowing {
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:74:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
72 | try preActions(self)
73 | }.flatMap {
74 | self.update(on: keyColumn, on: db, on: container)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:74:18: warning: capture of non-sendable type 'Column.Type' in an isolated closure
72 | try preActions(self)
73 | }.flatMap {
74 | self.update(on: keyColumn, on: db, on: container)
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:65:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
63 | }
64 |
65 | public func update<Column: ColumnRepresentable>(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
66 | on keyColumn: KeyPath<Self, Column>,
67 | on db: DatabaseIdentifier,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:66:12: warning: capture of non-sendable type 'Column.Type' in an isolated closure
64 |
65 | public func update<Column: ColumnRepresentable>(
66 | on keyColumn: KeyPath<Self, Column>,
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
67 | on db: DatabaseIdentifier,
68 | on container: AnyBridgesObject,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:87:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
85 | ) -> EventLoopFuture<Void> {
86 | preActions().flatMap { _ in
87 | self.updateNonReturning(on: keyColumn, on: db, on: container)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
88 | }
89 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:87:18: warning: capture of non-sendable type 'Column.Type' in an isolated closure
85 | ) -> EventLoopFuture<Void> {
86 | preActions().flatMap { _ in
87 | self.updateNonReturning(on: keyColumn, on: db, on: container)
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
88 | }
89 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:80:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
78 | ///
79 |
80 | public func updateNonReturning<Column: ColumnRepresentable, T>(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
81 | on keyColumn: KeyPath<Self, Column>,
82 | on db: DatabaseIdentifier,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:81:12: warning: capture of non-sendable type 'Column.Type' in an isolated closure
79 |
80 | public func updateNonReturning<Column: ColumnRepresentable, T>(
81 | on keyColumn: KeyPath<Self, Column>,
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
82 | on db: DatabaseIdentifier,
83 | on container: AnyBridgesObject,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:98:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
96 | ) -> EventLoopFuture<Self> {
97 | preActions().flatMap { _ in
98 | self.update(on: keyColumn, on: db, on: container)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
99 | }
100 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:98:18: warning: capture of non-sendable type 'Column.Type' in an isolated closure
96 | ) -> EventLoopFuture<Self> {
97 | preActions().flatMap { _ in
98 | self.update(on: keyColumn, on: db, on: container)
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
99 | }
100 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:91:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
89 | }
90 |
91 | public func update<Column: ColumnRepresentable, T>(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
92 | on keyColumn: KeyPath<Self, Column>,
93 | on db: DatabaseIdentifier,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:92:12: warning: capture of non-sendable type 'Column.Type' in an isolated closure
90 |
91 | public func update<Column: ColumnRepresentable, T>(
92 | on keyColumn: KeyPath<Self, Column>,
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
93 | on db: DatabaseIdentifier,
94 | on container: AnyBridgesObject,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:111:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
109 | ) -> EventLoopFuture<Void> {
110 | preActions(self).flatMap { _ in
111 | self.updateNonReturning(on: keyColumn, on: db, on: container)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
112 | }
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:111:18: warning: capture of non-sendable type 'Column.Type' in an isolated closure
109 | ) -> EventLoopFuture<Void> {
110 | preActions(self).flatMap { _ in
111 | self.updateNonReturning(on: keyColumn, on: db, on: container)
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
112 | }
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:104:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
102 | ///
103 |
104 | public func updateNonReturning<Column: ColumnRepresentable, T>(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
105 | on keyColumn: KeyPath<Self, Column>,
106 | on db: DatabaseIdentifier,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:105:12: warning: capture of non-sendable type 'Column.Type' in an isolated closure
103 |
104 | public func updateNonReturning<Column: ColumnRepresentable, T>(
105 | on keyColumn: KeyPath<Self, Column>,
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
106 | on db: DatabaseIdentifier,
107 | on container: AnyBridgesObject,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:122:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
120 | ) -> EventLoopFuture<Self> {
121 | preActions(self).flatMap { _ in
122 | self.update(on: keyColumn, on: db, on: container)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
123 | }
124 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:122:18: warning: capture of non-sendable type 'Column.Type' in an isolated closure
120 | ) -> EventLoopFuture<Self> {
121 | preActions(self).flatMap { _ in
122 | self.update(on: keyColumn, on: db, on: container)
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
123 | }
124 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:115:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
113 | }
114 |
115 | public func update<Column: ColumnRepresentable, T>(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
116 | on keyColumn: KeyPath<Self, Column>,
117 | on db: DatabaseIdentifier,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:116:12: warning: capture of non-sendable type 'Column.Type' in an isolated closure
114 |
115 | public func update<Column: ColumnRepresentable, T>(
116 | on keyColumn: KeyPath<Self, Column>,
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
117 | on db: DatabaseIdentifier,
118 | on container: AnyBridgesObject,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:161:38: warning: capture of non-sendable type 'Self.Type' in an isolated closure
159 | .all(decoding: Self.self)
160 | .flatMapThrowing { rows in
161 | guard let row = rows.first else { throw BridgesError.failedToDecodeWithReturning }
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
162 | return row
163 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:197:38: warning: capture of non-sendable type 'Self.Type' in an isolated closure
195 | .all(decoding: Self.self)
196 | .flatMapThrowing { rows in
197 | guard let row = rows.first else { throw BridgesError.failedToDecodeWithReturning }
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
198 | return row
199 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:212:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
210 | try preActions()
211 | }.flatMap {
212 | self.updateNonReturning(on: keyColumn, on: conn)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
213 | }
214 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:212:18: warning: capture of non-sendable type 'Column.Type' in an isolated closure
210 | try preActions()
211 | }.flatMap {
212 | self.updateNonReturning(on: keyColumn, on: conn)
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
213 | }
214 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:204:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
202 | // MARK: On connection
203 |
204 | public func updateNonReturning<Column: ColumnRepresentable>(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
205 | on keyColumn: KeyPath<Self, Column>,
206 | on conn: BridgeConnection,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:205:12: warning: capture of non-sendable type 'Column.Type' in an isolated closure
203 |
204 | public func updateNonReturning<Column: ColumnRepresentable>(
205 | on keyColumn: KeyPath<Self, Column>,
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
206 | on conn: BridgeConnection,
207 | preActions: @escaping () throws -> Void
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:224:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
222 | try preActions()
223 | }.flatMap {
224 | self.update(on: keyColumn, on: conn)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
225 | }
226 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:224:18: warning: capture of non-sendable type 'Column.Type' in an isolated closure
222 | try preActions()
223 | }.flatMap {
224 | self.update(on: keyColumn, on: conn)
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
225 | }
226 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:216:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
214 | }
215 |
216 | public func update<Column: ColumnRepresentable>(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
217 | on keyColumn: KeyPath<Self, Column>,
218 | on conn: BridgeConnection,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:217:12: warning: capture of non-sendable type 'Column.Type' in an isolated closure
215 |
216 | public func update<Column: ColumnRepresentable>(
217 | on keyColumn: KeyPath<Self, Column>,
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
218 | on conn: BridgeConnection,
219 | preActions: @escaping () throws -> Void
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:236:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
234 | ) -> EventLoopFuture<Void> {
235 | conn.eventLoop.future().flatMapThrowing {
236 | try preActions(self)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
237 | }.flatMap {
238 | self.updateNonReturning(on: keyColumn, on: conn)
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:233:9: warning: capture of non-sendable type 'Self.Type' in an isolated closure
231 | on keyColumn: KeyPath<Self, Column>,
232 | on conn: BridgeConnection,
233 | preActions: @escaping (Self) throws -> Void
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
234 | ) -> EventLoopFuture<Void> {
235 | conn.eventLoop.future().flatMapThrowing {
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:238:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
236 | try preActions(self)
237 | }.flatMap {
238 | self.updateNonReturning(on: keyColumn, on: conn)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
239 | }
240 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:238:18: warning: capture of non-sendable type 'Column.Type' in an isolated closure
236 | try preActions(self)
237 | }.flatMap {
238 | self.updateNonReturning(on: keyColumn, on: conn)
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
239 | }
240 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:230:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
228 | ///
229 |
230 | public func updateNonReturning<Column: ColumnRepresentable>(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
231 | on keyColumn: KeyPath<Self, Column>,
232 | on conn: BridgeConnection,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:231:12: warning: capture of non-sendable type 'Column.Type' in an isolated closure
229 |
230 | public func updateNonReturning<Column: ColumnRepresentable>(
231 | on keyColumn: KeyPath<Self, Column>,
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
232 | on conn: BridgeConnection,
233 | preActions: @escaping (Self) throws -> Void
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:248:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
246 | ) -> EventLoopFuture<Self> {
247 | conn.eventLoop.future().flatMapThrowing {
248 | try preActions(self)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
249 | }.flatMap {
250 | self.update(on: keyColumn, on: conn)
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:245:9: warning: capture of non-sendable type 'Self.Type' in an isolated closure
243 | on keyColumn: KeyPath<Self, Column>,
244 | on conn: BridgeConnection,
245 | preActions: @escaping (Self) throws -> Void
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
246 | ) -> EventLoopFuture<Self> {
247 | conn.eventLoop.future().flatMapThrowing {
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:250:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
248 | try preActions(self)
249 | }.flatMap {
250 | self.update(on: keyColumn, on: conn)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
251 | }
252 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:250:18: warning: capture of non-sendable type 'Column.Type' in an isolated closure
248 | try preActions(self)
249 | }.flatMap {
250 | self.update(on: keyColumn, on: conn)
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
251 | }
252 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:242:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
240 | }
241 |
242 | public func update<Column: ColumnRepresentable>(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
243 | on keyColumn: KeyPath<Self, Column>,
244 | on conn: BridgeConnection,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:243:12: warning: capture of non-sendable type 'Column.Type' in an isolated closure
241 |
242 | public func update<Column: ColumnRepresentable>(
243 | on keyColumn: KeyPath<Self, Column>,
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
244 | on conn: BridgeConnection,
245 | preActions: @escaping (Self) throws -> Void
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:262:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
260 | ) -> EventLoopFuture<Void> {
261 | preActions().flatMap { _ in
262 | self.updateNonReturning(on: keyColumn, on: conn)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
263 | }
264 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:262:18: warning: capture of non-sendable type 'Column.Type' in an isolated closure
260 | ) -> EventLoopFuture<Void> {
261 | preActions().flatMap { _ in
262 | self.updateNonReturning(on: keyColumn, on: conn)
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
263 | }
264 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:256:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
254 | ///
255 |
256 | public func updateNonReturning<Column: ColumnRepresentable, T>(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
257 | on keyColumn: KeyPath<Self, Column>,
258 | on conn: BridgeConnection,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:257:12: warning: capture of non-sendable type 'Column.Type' in an isolated closure
255 |
256 | public func updateNonReturning<Column: ColumnRepresentable, T>(
257 | on keyColumn: KeyPath<Self, Column>,
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
258 | on conn: BridgeConnection,
259 | preActions: () -> EventLoopFuture<T>
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:272:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
270 | ) -> EventLoopFuture<Self> {
271 | preActions().flatMap { _ in
272 | self.update(on: keyColumn, on: conn)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
273 | }
274 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:272:18: warning: capture of non-sendable type 'Column.Type' in an isolated closure
270 | ) -> EventLoopFuture<Self> {
271 | preActions().flatMap { _ in
272 | self.update(on: keyColumn, on: conn)
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
273 | }
274 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:266:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
264 | }
265 |
266 | public func update<Column: ColumnRepresentable, T>(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
267 | on keyColumn: KeyPath<Self, Column>,
268 | on conn: BridgeConnection,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:267:12: warning: capture of non-sendable type 'Column.Type' in an isolated closure
265 |
266 | public func update<Column: ColumnRepresentable, T>(
267 | on keyColumn: KeyPath<Self, Column>,
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
268 | on conn: BridgeConnection,
269 | preActions: () -> EventLoopFuture<T>
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:284:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
282 | ) -> EventLoopFuture<Void> {
283 | preActions(self).flatMap { _ in
284 | self.updateNonReturning(on: keyColumn, on: conn)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
285 | }
286 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:284:18: warning: capture of non-sendable type 'Column.Type' in an isolated closure
282 | ) -> EventLoopFuture<Void> {
283 | preActions(self).flatMap { _ in
284 | self.updateNonReturning(on: keyColumn, on: conn)
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
285 | }
286 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:278:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
276 | ///
277 |
278 | public func updateNonReturning<Column: ColumnRepresentable, T>(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
279 | on keyColumn: KeyPath<Self, Column>,
280 | on conn: BridgeConnection,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:279:12: warning: capture of non-sendable type 'Column.Type' in an isolated closure
277 |
278 | public func updateNonReturning<Column: ColumnRepresentable, T>(
279 | on keyColumn: KeyPath<Self, Column>,
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
280 | on conn: BridgeConnection,
281 | preActions: (Self) -> EventLoopFuture<T>
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:294:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
292 | ) -> EventLoopFuture<Self> {
293 | preActions(self).flatMap { _ in
294 | self.update(on: keyColumn, on: conn)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
295 | }
296 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:294:18: warning: capture of non-sendable type 'Column.Type' in an isolated closure
292 | ) -> EventLoopFuture<Self> {
293 | preActions(self).flatMap { _ in
294 | self.update(on: keyColumn, on: conn)
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
295 | }
296 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:288:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
286 | }
287 |
288 | public func update<Column: ColumnRepresentable, T>(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
289 | on keyColumn: KeyPath<Self, Column>,
290 | on conn: BridgeConnection,
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:289:12: warning: capture of non-sendable type 'Column.Type' in an isolated closure
287 |
288 | public func update<Column: ColumnRepresentable, T>(
289 | on keyColumn: KeyPath<Self, Column>,
| `- warning: capture of non-sendable type 'Column.Type' in an isolated closure
290 | on conn: BridgeConnection,
291 | preActions: (Self) -> EventLoopFuture<T>
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpdate.swift:328:34: warning: capture of non-sendable type 'Self.Type' in an isolated closure
326 | let query = buildUpdateQuery(items: items.0, where: items.1 == items.2, returning: true)
327 | return conn.query(sql: query, decoding: Self.self).flatMapThrowing { rows in
328 | guard let row = rows.first else { throw BridgesError.failedToDecodeWithReturning }
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
329 | return row
330 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpsert.swift:211:34: warning: capture of non-sendable type 'Self.Type' in an isolated closure
209 | .all(decoding: Self.self)
210 | .flatMapThrowing { rows in
211 | guard let row = rows.first else { return self }
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
212 | return row
213 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpsert.swift:191:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
189 | }
190 |
191 | private func _upsert<Column: ColumnRepresentable>(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
192 | conflictColumn: KeyPath<Self, Column>,
193 | excluding: [KeyPathLastPath],
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpsert.swift:361:34: warning: capture of non-sendable type 'Self.Type' in an isolated closure
359 | .all(decoding: Self.self)
360 | .flatMapThrowing { rows in
361 | guard let row = rows.first else { return self }
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
362 | return row
363 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpsert.swift:344:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
342 | }
343 |
344 | private func _upsert(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
345 | conflictConstraint: KeyPathLastPath,
346 | excluding: [KeyPathLastPath],
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpsert.swift:504:34: warning: capture of non-sendable type 'Self.Type' in an isolated closure
502 | )
503 | return conn.query(sql: query, decoding: Self.self).flatMapThrowing { rows in
504 | guard let row = rows.first else { return self }
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
505 | return row
506 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpsert.swift:487:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
485 | }
486 |
487 | private func _upsert<Column: ColumnRepresentable>(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
488 | conflictColumn: KeyPath<Self, Column>,
489 | excluding: [KeyPathLastPath],
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpsert.swift:641:34: warning: capture of non-sendable type 'Self.Type' in an isolated closure
639 | )
640 | return conn.query(sql: query, decoding: Self.self).flatMapThrowing { rows in
641 | guard let row = rows.first else { return self }
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
642 | return row
643 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/TableUpsert.swift:627:18: warning: capture of non-sendable type 'Self.Type' in an isolated closure
625 | }
626 |
627 | private func _upsert(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
628 | conflictConstraint: KeyPathLastPath,
629 | excluding: [KeyPathLastPath],
[1241/1258] Compiling Bridges UpdateEnumBuilder.swift
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:98:17: warning: capture of non-sendable type 'B.Type' in an isolated closure
96 | return bridge.transaction(to: db, on: bridge.eventLoopGroup.next()) { conn in
97 | conn.eventLoop.future().flatMap {
98 | self.dedicatedSchema
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
99 | ? BridgesSchema.Create.prepare(on: conn)
100 | : conn.eventLoop.future()
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:95:17: warning: capture of non-sendable type 'B.Type' in an isolated closure
93 | private var m: Schema<Migrations> { Schema<Migrations>(schemaName) }
94 |
95 | public func migrate() -> EventLoopFuture<Void> {
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
96 | return bridge.transaction(to: db, on: bridge.eventLoopGroup.next()) { conn in
97 | conn.eventLoop.future().flatMap {
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:99:56: warning: capture of non-sendable type 'B.Connection.Type' in an isolated closure
97 | conn.eventLoop.future().flatMap {
98 | self.dedicatedSchema
99 | ? BridgesSchema.Create.prepare(on: conn)
| `- warning: capture of non-sendable type 'B.Connection.Type' in an isolated closure
100 | : conn.eventLoop.future()
101 | }.flatMap {
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:106:22: warning: capture of non-sendable type 'B.Type' in an isolated closure
104 | .column(\.$id, .bigserial, .primaryKey)
105 | .column(\.$name, .text, .unique)
106 | .column(\.$batch, .int)
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
107 | .execute(on: conn)
108 | }.flatMap {
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:95:17: warning: capture of non-sendable type 'B.Type' in an isolated closure
93 | private var m: Schema<Migrations> { Schema<Migrations>(schemaName) }
94 |
95 | public func migrate() -> EventLoopFuture<Void> {
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
96 | return bridge.transaction(to: db, on: bridge.eventLoopGroup.next()) { conn in
97 | conn.eventLoop.future().flatMap {
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:107:34: warning: capture of non-sendable type 'B.Connection.Type' in an isolated closure
105 | .column(\.$name, .text, .unique)
106 | .column(\.$batch, .int)
107 | .execute(on: conn)
| `- warning: capture of non-sendable type 'B.Connection.Type' in an isolated closure
108 | }.flatMap {
109 | let query = SwifQL.select(self.m.table.*).from(self.m.table).prepare(conn.dialect).plain
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:109:48: warning: capture of non-sendable type 'B.Type' in an isolated closure
107 | .execute(on: conn)
108 | }.flatMap {
109 | let query = SwifQL.select(self.m.table.*).from(self.m.table).prepare(conn.dialect).plain
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
110 | return conn.query(raw: query, decoding: Migrations.self).flatMap { completedMigrations in
111 | let batch = completedMigrations.map { $0.batch }.max() ?? 0
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:95:17: warning: capture of non-sendable type 'B.Type' in an isolated closure
93 | private var m: Schema<Migrations> { Schema<Migrations>(schemaName) }
94 |
95 | public func migrate() -> EventLoopFuture<Void> {
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
96 | return bridge.transaction(to: db, on: bridge.eventLoopGroup.next()) { conn in
97 | conn.eventLoop.future().flatMap {
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:109:86: warning: capture of non-sendable type 'B.Connection.Type' in an isolated closure
107 | .execute(on: conn)
108 | }.flatMap {
109 | let query = SwifQL.select(self.m.table.*).from(self.m.table).prepare(conn.dialect).plain
| `- warning: capture of non-sendable type 'B.Connection.Type' in an isolated closure
110 | return conn.query(raw: query, decoding: Migrations.self).flatMap { completedMigrations in
111 | let batch = completedMigrations.map { $0.batch }.max() ?? 0
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:111:53: warning: capture of non-sendable type 'B.Type' in an isolated closure
109 | let query = SwifQL.select(self.m.table.*).from(self.m.table).prepare(conn.dialect).plain
110 | return conn.query(raw: query, decoding: Migrations.self).flatMap { completedMigrations in
111 | let batch = completedMigrations.map { $0.batch }.max() ?? 0
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
112 | var migrations = self.migrations
113 | migrations.removeAll { m in completedMigrations.contains { $0.name == m.migrationName } }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:95:17: warning: capture of non-sendable type 'B.Type' in an isolated closure
93 | private var m: Schema<Migrations> { Schema<Migrations>(schemaName) }
94 |
95 | public func migrate() -> EventLoopFuture<Void> {
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
96 | return bridge.transaction(to: db, on: bridge.eventLoopGroup.next()) { conn in
97 | conn.eventLoop.future().flatMap {
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:124:35: warning: capture of non-sendable type 'B.Connection.Type' in an isolated closure
122 | }
123 | }
124 | }.flatten(on: conn.eventLoop)
| `- warning: capture of non-sendable type 'B.Connection.Type' in an isolated closure
125 | }
126 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:120:45: warning: capture of 'migration' with non-sendable type 'any AnyMigration.Type' in a '@Sendable' closure [#SendableClosureCaptures]
118 | .insertInto(self.m.table, fields: self.m.$name, self.m.$batch)
119 | .values
120 | .values(migration.migrationName, batch + 1)
| `- warning: capture of 'migration' with non-sendable type 'any AnyMigration.Type' in a '@Sendable' closure [#SendableClosureCaptures]
121 | .execute(on: conn)
122 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:118:54: warning: capture of non-sendable type 'B.Type' in an isolated closure
116 | migration.prepare(on: conn).flatMap {
117 | SwifQL
118 | .insertInto(self.m.table, fields: self.m.$name, self.m.$batch)
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
119 | .values
120 | .values(migration.migrationName, batch + 1)
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:95:17: warning: capture of non-sendable type 'B.Type' in an isolated closure
93 | private var m: Schema<Migrations> { Schema<Migrations>(schemaName) }
94 |
95 | public func migrate() -> EventLoopFuture<Void> {
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
96 | return bridge.transaction(to: db, on: bridge.eventLoopGroup.next()) { conn in
97 | conn.eventLoop.future().flatMap {
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:121:50: warning: capture of non-sendable type 'B.Connection.Type' in an isolated closure
119 | .values
120 | .values(migration.migrationName, batch + 1)
121 | .execute(on: conn)
| `- warning: capture of non-sendable type 'B.Connection.Type' in an isolated closure
122 | }
123 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:139:55: warning: capture of non-sendable type 'B.Type' in an isolated closure
137 | let query = SwifQL.select(self.m.table.*).from(self.m.table).prepare(conn.dialect).plain
138 | return conn.query(raw: query, decoding: Migrations.self).flatMap { completedMigrations in
139 | guard let lastBatch = completedMigrations.map({ $0.batch }).max()
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
140 | else { return conn.eventLoop.future(false) }
141 | let migrationsToRevert = completedMigrations.filter { $0.batch == lastBatch }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:136:18: warning: capture of non-sendable type 'B.Type' in an isolated closure
134 | }
135 |
136 | private func _revertLast(on conn: BridgeConnection) -> EventLoopFuture<Bool> {
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
137 | let query = SwifQL.select(self.m.table.*).from(self.m.table).prepare(conn.dialect).plain
138 | return conn.query(raw: query, decoding: Migrations.self).flatMap { completedMigrations in
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:149:52: warning: capture of 'migration' with non-sendable type 'any AnyMigration.Type' in a '@Sendable' closure [#SendableClosureCaptures]
147 | SwifQL
148 | .delete(from: self.m.table)
149 | .where(self.m.$name == migration.migrationName)
| `- warning: capture of 'migration' with non-sendable type 'any AnyMigration.Type' in a '@Sendable' closure [#SendableClosureCaptures]
150 | .execute(on: conn)
151 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:148:48: warning: capture of non-sendable type 'B.Type' in an isolated closure
146 | migration.revert(on: conn).flatMap {
147 | SwifQL
148 | .delete(from: self.m.table)
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
149 | .where(self.m.$name == migration.migrationName)
150 | .execute(on: conn)
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:136:18: warning: capture of non-sendable type 'B.Type' in an isolated closure
134 | }
135 |
136 | private func _revertLast(on conn: BridgeConnection) -> EventLoopFuture<Bool> {
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
137 | let query = SwifQL.select(self.m.table.*).from(self.m.table).prepare(conn.dialect).plain
138 | return conn.query(raw: query, decoding: Migrations.self).flatMap { completedMigrations in
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[1242/1258] Compiling Bridges Connection.swift
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:98:17: warning: capture of non-sendable type 'B.Type' in an isolated closure
96 | return bridge.transaction(to: db, on: bridge.eventLoopGroup.next()) { conn in
97 | conn.eventLoop.future().flatMap {
98 | self.dedicatedSchema
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
99 | ? BridgesSchema.Create.prepare(on: conn)
100 | : conn.eventLoop.future()
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:95:17: warning: capture of non-sendable type 'B.Type' in an isolated closure
93 | private var m: Schema<Migrations> { Schema<Migrations>(schemaName) }
94 |
95 | public func migrate() -> EventLoopFuture<Void> {
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
96 | return bridge.transaction(to: db, on: bridge.eventLoopGroup.next()) { conn in
97 | conn.eventLoop.future().flatMap {
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:99:56: warning: capture of non-sendable type 'B.Connection.Type' in an isolated closure
97 | conn.eventLoop.future().flatMap {
98 | self.dedicatedSchema
99 | ? BridgesSchema.Create.prepare(on: conn)
| `- warning: capture of non-sendable type 'B.Connection.Type' in an isolated closure
100 | : conn.eventLoop.future()
101 | }.flatMap {
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:106:22: warning: capture of non-sendable type 'B.Type' in an isolated closure
104 | .column(\.$id, .bigserial, .primaryKey)
105 | .column(\.$name, .text, .unique)
106 | .column(\.$batch, .int)
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
107 | .execute(on: conn)
108 | }.flatMap {
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:95:17: warning: capture of non-sendable type 'B.Type' in an isolated closure
93 | private var m: Schema<Migrations> { Schema<Migrations>(schemaName) }
94 |
95 | public func migrate() -> EventLoopFuture<Void> {
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
96 | return bridge.transaction(to: db, on: bridge.eventLoopGroup.next()) { conn in
97 | conn.eventLoop.future().flatMap {
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:107:34: warning: capture of non-sendable type 'B.Connection.Type' in an isolated closure
105 | .column(\.$name, .text, .unique)
106 | .column(\.$batch, .int)
107 | .execute(on: conn)
| `- warning: capture of non-sendable type 'B.Connection.Type' in an isolated closure
108 | }.flatMap {
109 | let query = SwifQL.select(self.m.table.*).from(self.m.table).prepare(conn.dialect).plain
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:109:48: warning: capture of non-sendable type 'B.Type' in an isolated closure
107 | .execute(on: conn)
108 | }.flatMap {
109 | let query = SwifQL.select(self.m.table.*).from(self.m.table).prepare(conn.dialect).plain
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
110 | return conn.query(raw: query, decoding: Migrations.self).flatMap { completedMigrations in
111 | let batch = completedMigrations.map { $0.batch }.max() ?? 0
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:95:17: warning: capture of non-sendable type 'B.Type' in an isolated closure
93 | private var m: Schema<Migrations> { Schema<Migrations>(schemaName) }
94 |
95 | public func migrate() -> EventLoopFuture<Void> {
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
96 | return bridge.transaction(to: db, on: bridge.eventLoopGroup.next()) { conn in
97 | conn.eventLoop.future().flatMap {
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:109:86: warning: capture of non-sendable type 'B.Connection.Type' in an isolated closure
107 | .execute(on: conn)
108 | }.flatMap {
109 | let query = SwifQL.select(self.m.table.*).from(self.m.table).prepare(conn.dialect).plain
| `- warning: capture of non-sendable type 'B.Connection.Type' in an isolated closure
110 | return conn.query(raw: query, decoding: Migrations.self).flatMap { completedMigrations in
111 | let batch = completedMigrations.map { $0.batch }.max() ?? 0
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:111:53: warning: capture of non-sendable type 'B.Type' in an isolated closure
109 | let query = SwifQL.select(self.m.table.*).from(self.m.table).prepare(conn.dialect).plain
110 | return conn.query(raw: query, decoding: Migrations.self).flatMap { completedMigrations in
111 | let batch = completedMigrations.map { $0.batch }.max() ?? 0
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
112 | var migrations = self.migrations
113 | migrations.removeAll { m in completedMigrations.contains { $0.name == m.migrationName } }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:95:17: warning: capture of non-sendable type 'B.Type' in an isolated closure
93 | private var m: Schema<Migrations> { Schema<Migrations>(schemaName) }
94 |
95 | public func migrate() -> EventLoopFuture<Void> {
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
96 | return bridge.transaction(to: db, on: bridge.eventLoopGroup.next()) { conn in
97 | conn.eventLoop.future().flatMap {
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:124:35: warning: capture of non-sendable type 'B.Connection.Type' in an isolated closure
122 | }
123 | }
124 | }.flatten(on: conn.eventLoop)
| `- warning: capture of non-sendable type 'B.Connection.Type' in an isolated closure
125 | }
126 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:120:45: warning: capture of 'migration' with non-sendable type 'any AnyMigration.Type' in a '@Sendable' closure [#SendableClosureCaptures]
118 | .insertInto(self.m.table, fields: self.m.$name, self.m.$batch)
119 | .values
120 | .values(migration.migrationName, batch + 1)
| `- warning: capture of 'migration' with non-sendable type 'any AnyMigration.Type' in a '@Sendable' closure [#SendableClosureCaptures]
121 | .execute(on: conn)
122 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:118:54: warning: capture of non-sendable type 'B.Type' in an isolated closure
116 | migration.prepare(on: conn).flatMap {
117 | SwifQL
118 | .insertInto(self.m.table, fields: self.m.$name, self.m.$batch)
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
119 | .values
120 | .values(migration.migrationName, batch + 1)
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:95:17: warning: capture of non-sendable type 'B.Type' in an isolated closure
93 | private var m: Schema<Migrations> { Schema<Migrations>(schemaName) }
94 |
95 | public func migrate() -> EventLoopFuture<Void> {
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
96 | return bridge.transaction(to: db, on: bridge.eventLoopGroup.next()) { conn in
97 | conn.eventLoop.future().flatMap {
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:121:50: warning: capture of non-sendable type 'B.Connection.Type' in an isolated closure
119 | .values
120 | .values(migration.migrationName, batch + 1)
121 | .execute(on: conn)
| `- warning: capture of non-sendable type 'B.Connection.Type' in an isolated closure
122 | }
123 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:139:55: warning: capture of non-sendable type 'B.Type' in an isolated closure
137 | let query = SwifQL.select(self.m.table.*).from(self.m.table).prepare(conn.dialect).plain
138 | return conn.query(raw: query, decoding: Migrations.self).flatMap { completedMigrations in
139 | guard let lastBatch = completedMigrations.map({ $0.batch }).max()
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
140 | else { return conn.eventLoop.future(false) }
141 | let migrationsToRevert = completedMigrations.filter { $0.batch == lastBatch }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:136:18: warning: capture of non-sendable type 'B.Type' in an isolated closure
134 | }
135 |
136 | private func _revertLast(on conn: BridgeConnection) -> EventLoopFuture<Bool> {
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
137 | let query = SwifQL.select(self.m.table.*).from(self.m.table).prepare(conn.dialect).plain
138 | return conn.query(raw: query, decoding: Migrations.self).flatMap { completedMigrations in
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:149:52: warning: capture of 'migration' with non-sendable type 'any AnyMigration.Type' in a '@Sendable' closure [#SendableClosureCaptures]
147 | SwifQL
148 | .delete(from: self.m.table)
149 | .where(self.m.$name == migration.migrationName)
| `- warning: capture of 'migration' with non-sendable type 'any AnyMigration.Type' in a '@Sendable' closure [#SendableClosureCaptures]
150 | .execute(on: conn)
151 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:148:48: warning: capture of non-sendable type 'B.Type' in an isolated closure
146 | migration.revert(on: conn).flatMap {
147 | SwifQL
148 | .delete(from: self.m.table)
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
149 | .where(self.m.$name == migration.migrationName)
150 | .execute(on: conn)
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:136:18: warning: capture of non-sendable type 'B.Type' in an isolated closure
134 | }
135 |
136 | private func _revertLast(on conn: BridgeConnection) -> EventLoopFuture<Bool> {
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
137 | let query = SwifQL.select(self.m.table.*).from(self.m.table).prepare(conn.dialect).plain
138 | return conn.query(raw: query, decoding: Migrations.self).flatMap { completedMigrations in
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[1243/1258] Compiling Bridges DatabaseHost.swift
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:98:17: warning: capture of non-sendable type 'B.Type' in an isolated closure
96 | return bridge.transaction(to: db, on: bridge.eventLoopGroup.next()) { conn in
97 | conn.eventLoop.future().flatMap {
98 | self.dedicatedSchema
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
99 | ? BridgesSchema.Create.prepare(on: conn)
100 | : conn.eventLoop.future()
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:95:17: warning: capture of non-sendable type 'B.Type' in an isolated closure
93 | private var m: Schema<Migrations> { Schema<Migrations>(schemaName) }
94 |
95 | public func migrate() -> EventLoopFuture<Void> {
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
96 | return bridge.transaction(to: db, on: bridge.eventLoopGroup.next()) { conn in
97 | conn.eventLoop.future().flatMap {
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:99:56: warning: capture of non-sendable type 'B.Connection.Type' in an isolated closure
97 | conn.eventLoop.future().flatMap {
98 | self.dedicatedSchema
99 | ? BridgesSchema.Create.prepare(on: conn)
| `- warning: capture of non-sendable type 'B.Connection.Type' in an isolated closure
100 | : conn.eventLoop.future()
101 | }.flatMap {
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:106:22: warning: capture of non-sendable type 'B.Type' in an isolated closure
104 | .column(\.$id, .bigserial, .primaryKey)
105 | .column(\.$name, .text, .unique)
106 | .column(\.$batch, .int)
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
107 | .execute(on: conn)
108 | }.flatMap {
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:95:17: warning: capture of non-sendable type 'B.Type' in an isolated closure
93 | private var m: Schema<Migrations> { Schema<Migrations>(schemaName) }
94 |
95 | public func migrate() -> EventLoopFuture<Void> {
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
96 | return bridge.transaction(to: db, on: bridge.eventLoopGroup.next()) { conn in
97 | conn.eventLoop.future().flatMap {
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:107:34: warning: capture of non-sendable type 'B.Connection.Type' in an isolated closure
105 | .column(\.$name, .text, .unique)
106 | .column(\.$batch, .int)
107 | .execute(on: conn)
| `- warning: capture of non-sendable type 'B.Connection.Type' in an isolated closure
108 | }.flatMap {
109 | let query = SwifQL.select(self.m.table.*).from(self.m.table).prepare(conn.dialect).plain
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:109:48: warning: capture of non-sendable type 'B.Type' in an isolated closure
107 | .execute(on: conn)
108 | }.flatMap {
109 | let query = SwifQL.select(self.m.table.*).from(self.m.table).prepare(conn.dialect).plain
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
110 | return conn.query(raw: query, decoding: Migrations.self).flatMap { completedMigrations in
111 | let batch = completedMigrations.map { $0.batch }.max() ?? 0
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:95:17: warning: capture of non-sendable type 'B.Type' in an isolated closure
93 | private var m: Schema<Migrations> { Schema<Migrations>(schemaName) }
94 |
95 | public func migrate() -> EventLoopFuture<Void> {
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
96 | return bridge.transaction(to: db, on: bridge.eventLoopGroup.next()) { conn in
97 | conn.eventLoop.future().flatMap {
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:109:86: warning: capture of non-sendable type 'B.Connection.Type' in an isolated closure
107 | .execute(on: conn)
108 | }.flatMap {
109 | let query = SwifQL.select(self.m.table.*).from(self.m.table).prepare(conn.dialect).plain
| `- warning: capture of non-sendable type 'B.Connection.Type' in an isolated closure
110 | return conn.query(raw: query, decoding: Migrations.self).flatMap { completedMigrations in
111 | let batch = completedMigrations.map { $0.batch }.max() ?? 0
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:111:53: warning: capture of non-sendable type 'B.Type' in an isolated closure
109 | let query = SwifQL.select(self.m.table.*).from(self.m.table).prepare(conn.dialect).plain
110 | return conn.query(raw: query, decoding: Migrations.self).flatMap { completedMigrations in
111 | let batch = completedMigrations.map { $0.batch }.max() ?? 0
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
112 | var migrations = self.migrations
113 | migrations.removeAll { m in completedMigrations.contains { $0.name == m.migrationName } }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:95:17: warning: capture of non-sendable type 'B.Type' in an isolated closure
93 | private var m: Schema<Migrations> { Schema<Migrations>(schemaName) }
94 |
95 | public func migrate() -> EventLoopFuture<Void> {
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
96 | return bridge.transaction(to: db, on: bridge.eventLoopGroup.next()) { conn in
97 | conn.eventLoop.future().flatMap {
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:124:35: warning: capture of non-sendable type 'B.Connection.Type' in an isolated closure
122 | }
123 | }
124 | }.flatten(on: conn.eventLoop)
| `- warning: capture of non-sendable type 'B.Connection.Type' in an isolated closure
125 | }
126 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:120:45: warning: capture of 'migration' with non-sendable type 'any AnyMigration.Type' in a '@Sendable' closure [#SendableClosureCaptures]
118 | .insertInto(self.m.table, fields: self.m.$name, self.m.$batch)
119 | .values
120 | .values(migration.migrationName, batch + 1)
| `- warning: capture of 'migration' with non-sendable type 'any AnyMigration.Type' in a '@Sendable' closure [#SendableClosureCaptures]
121 | .execute(on: conn)
122 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:118:54: warning: capture of non-sendable type 'B.Type' in an isolated closure
116 | migration.prepare(on: conn).flatMap {
117 | SwifQL
118 | .insertInto(self.m.table, fields: self.m.$name, self.m.$batch)
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
119 | .values
120 | .values(migration.migrationName, batch + 1)
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:95:17: warning: capture of non-sendable type 'B.Type' in an isolated closure
93 | private var m: Schema<Migrations> { Schema<Migrations>(schemaName) }
94 |
95 | public func migrate() -> EventLoopFuture<Void> {
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
96 | return bridge.transaction(to: db, on: bridge.eventLoopGroup.next()) { conn in
97 | conn.eventLoop.future().flatMap {
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:121:50: warning: capture of non-sendable type 'B.Connection.Type' in an isolated closure
119 | .values
120 | .values(migration.migrationName, batch + 1)
121 | .execute(on: conn)
| `- warning: capture of non-sendable type 'B.Connection.Type' in an isolated closure
122 | }
123 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:139:55: warning: capture of non-sendable type 'B.Type' in an isolated closure
137 | let query = SwifQL.select(self.m.table.*).from(self.m.table).prepare(conn.dialect).plain
138 | return conn.query(raw: query, decoding: Migrations.self).flatMap { completedMigrations in
139 | guard let lastBatch = completedMigrations.map({ $0.batch }).max()
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
140 | else { return conn.eventLoop.future(false) }
141 | let migrationsToRevert = completedMigrations.filter { $0.batch == lastBatch }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:136:18: warning: capture of non-sendable type 'B.Type' in an isolated closure
134 | }
135 |
136 | private func _revertLast(on conn: BridgeConnection) -> EventLoopFuture<Bool> {
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
137 | let query = SwifQL.select(self.m.table.*).from(self.m.table).prepare(conn.dialect).plain
138 | return conn.query(raw: query, decoding: Migrations.self).flatMap { completedMigrations in
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:149:52: warning: capture of 'migration' with non-sendable type 'any AnyMigration.Type' in a '@Sendable' closure [#SendableClosureCaptures]
147 | SwifQL
148 | .delete(from: self.m.table)
149 | .where(self.m.$name == migration.migrationName)
| `- warning: capture of 'migration' with non-sendable type 'any AnyMigration.Type' in a '@Sendable' closure [#SendableClosureCaptures]
150 | .execute(on: conn)
151 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:148:48: warning: capture of non-sendable type 'B.Type' in an isolated closure
146 | migration.revert(on: conn).flatMap {
147 | SwifQL
148 | .delete(from: self.m.table)
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
149 | .where(self.m.$name == migration.migrationName)
150 | .execute(on: conn)
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:136:18: warning: capture of non-sendable type 'B.Type' in an isolated closure
134 | }
135 |
136 | private func _revertLast(on conn: BridgeConnection) -> EventLoopFuture<Bool> {
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
137 | let query = SwifQL.select(self.m.table.*).from(self.m.table).prepare(conn.dialect).plain
138 | return conn.query(raw: query, decoding: Migrations.self).flatMap { completedMigrations in
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[1244/1258] Compiling Bridges DatabaseIdentifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:98:17: warning: capture of non-sendable type 'B.Type' in an isolated closure
96 | return bridge.transaction(to: db, on: bridge.eventLoopGroup.next()) { conn in
97 | conn.eventLoop.future().flatMap {
98 | self.dedicatedSchema
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
99 | ? BridgesSchema.Create.prepare(on: conn)
100 | : conn.eventLoop.future()
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:95:17: warning: capture of non-sendable type 'B.Type' in an isolated closure
93 | private var m: Schema<Migrations> { Schema<Migrations>(schemaName) }
94 |
95 | public func migrate() -> EventLoopFuture<Void> {
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
96 | return bridge.transaction(to: db, on: bridge.eventLoopGroup.next()) { conn in
97 | conn.eventLoop.future().flatMap {
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:99:56: warning: capture of non-sendable type 'B.Connection.Type' in an isolated closure
97 | conn.eventLoop.future().flatMap {
98 | self.dedicatedSchema
99 | ? BridgesSchema.Create.prepare(on: conn)
| `- warning: capture of non-sendable type 'B.Connection.Type' in an isolated closure
100 | : conn.eventLoop.future()
101 | }.flatMap {
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:106:22: warning: capture of non-sendable type 'B.Type' in an isolated closure
104 | .column(\.$id, .bigserial, .primaryKey)
105 | .column(\.$name, .text, .unique)
106 | .column(\.$batch, .int)
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
107 | .execute(on: conn)
108 | }.flatMap {
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:95:17: warning: capture of non-sendable type 'B.Type' in an isolated closure
93 | private var m: Schema<Migrations> { Schema<Migrations>(schemaName) }
94 |
95 | public func migrate() -> EventLoopFuture<Void> {
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
96 | return bridge.transaction(to: db, on: bridge.eventLoopGroup.next()) { conn in
97 | conn.eventLoop.future().flatMap {
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:107:34: warning: capture of non-sendable type 'B.Connection.Type' in an isolated closure
105 | .column(\.$name, .text, .unique)
106 | .column(\.$batch, .int)
107 | .execute(on: conn)
| `- warning: capture of non-sendable type 'B.Connection.Type' in an isolated closure
108 | }.flatMap {
109 | let query = SwifQL.select(self.m.table.*).from(self.m.table).prepare(conn.dialect).plain
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:109:48: warning: capture of non-sendable type 'B.Type' in an isolated closure
107 | .execute(on: conn)
108 | }.flatMap {
109 | let query = SwifQL.select(self.m.table.*).from(self.m.table).prepare(conn.dialect).plain
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
110 | return conn.query(raw: query, decoding: Migrations.self).flatMap { completedMigrations in
111 | let batch = completedMigrations.map { $0.batch }.max() ?? 0
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:95:17: warning: capture of non-sendable type 'B.Type' in an isolated closure
93 | private var m: Schema<Migrations> { Schema<Migrations>(schemaName) }
94 |
95 | public func migrate() -> EventLoopFuture<Void> {
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
96 | return bridge.transaction(to: db, on: bridge.eventLoopGroup.next()) { conn in
97 | conn.eventLoop.future().flatMap {
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:109:86: warning: capture of non-sendable type 'B.Connection.Type' in an isolated closure
107 | .execute(on: conn)
108 | }.flatMap {
109 | let query = SwifQL.select(self.m.table.*).from(self.m.table).prepare(conn.dialect).plain
| `- warning: capture of non-sendable type 'B.Connection.Type' in an isolated closure
110 | return conn.query(raw: query, decoding: Migrations.self).flatMap { completedMigrations in
111 | let batch = completedMigrations.map { $0.batch }.max() ?? 0
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:111:53: warning: capture of non-sendable type 'B.Type' in an isolated closure
109 | let query = SwifQL.select(self.m.table.*).from(self.m.table).prepare(conn.dialect).plain
110 | return conn.query(raw: query, decoding: Migrations.self).flatMap { completedMigrations in
111 | let batch = completedMigrations.map { $0.batch }.max() ?? 0
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
112 | var migrations = self.migrations
113 | migrations.removeAll { m in completedMigrations.contains { $0.name == m.migrationName } }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:95:17: warning: capture of non-sendable type 'B.Type' in an isolated closure
93 | private var m: Schema<Migrations> { Schema<Migrations>(schemaName) }
94 |
95 | public func migrate() -> EventLoopFuture<Void> {
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
96 | return bridge.transaction(to: db, on: bridge.eventLoopGroup.next()) { conn in
97 | conn.eventLoop.future().flatMap {
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:124:35: warning: capture of non-sendable type 'B.Connection.Type' in an isolated closure
122 | }
123 | }
124 | }.flatten(on: conn.eventLoop)
| `- warning: capture of non-sendable type 'B.Connection.Type' in an isolated closure
125 | }
126 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:120:45: warning: capture of 'migration' with non-sendable type 'any AnyMigration.Type' in a '@Sendable' closure [#SendableClosureCaptures]
118 | .insertInto(self.m.table, fields: self.m.$name, self.m.$batch)
119 | .values
120 | .values(migration.migrationName, batch + 1)
| `- warning: capture of 'migration' with non-sendable type 'any AnyMigration.Type' in a '@Sendable' closure [#SendableClosureCaptures]
121 | .execute(on: conn)
122 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:118:54: warning: capture of non-sendable type 'B.Type' in an isolated closure
116 | migration.prepare(on: conn).flatMap {
117 | SwifQL
118 | .insertInto(self.m.table, fields: self.m.$name, self.m.$batch)
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
119 | .values
120 | .values(migration.migrationName, batch + 1)
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:95:17: warning: capture of non-sendable type 'B.Type' in an isolated closure
93 | private var m: Schema<Migrations> { Schema<Migrations>(schemaName) }
94 |
95 | public func migrate() -> EventLoopFuture<Void> {
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
96 | return bridge.transaction(to: db, on: bridge.eventLoopGroup.next()) { conn in
97 | conn.eventLoop.future().flatMap {
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:121:50: warning: capture of non-sendable type 'B.Connection.Type' in an isolated closure
119 | .values
120 | .values(migration.migrationName, batch + 1)
121 | .execute(on: conn)
| `- warning: capture of non-sendable type 'B.Connection.Type' in an isolated closure
122 | }
123 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:139:55: warning: capture of non-sendable type 'B.Type' in an isolated closure
137 | let query = SwifQL.select(self.m.table.*).from(self.m.table).prepare(conn.dialect).plain
138 | return conn.query(raw: query, decoding: Migrations.self).flatMap { completedMigrations in
139 | guard let lastBatch = completedMigrations.map({ $0.batch }).max()
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
140 | else { return conn.eventLoop.future(false) }
141 | let migrationsToRevert = completedMigrations.filter { $0.batch == lastBatch }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:136:18: warning: capture of non-sendable type 'B.Type' in an isolated closure
134 | }
135 |
136 | private func _revertLast(on conn: BridgeConnection) -> EventLoopFuture<Bool> {
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
137 | let query = SwifQL.select(self.m.table.*).from(self.m.table).prepare(conn.dialect).plain
138 | return conn.query(raw: query, decoding: Migrations.self).flatMap { completedMigrations in
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:149:52: warning: capture of 'migration' with non-sendable type 'any AnyMigration.Type' in a '@Sendable' closure [#SendableClosureCaptures]
147 | SwifQL
148 | .delete(from: self.m.table)
149 | .where(self.m.$name == migration.migrationName)
| `- warning: capture of 'migration' with non-sendable type 'any AnyMigration.Type' in a '@Sendable' closure [#SendableClosureCaptures]
150 | .execute(on: conn)
151 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:148:48: warning: capture of non-sendable type 'B.Type' in an isolated closure
146 | migration.revert(on: conn).flatMap {
147 | SwifQL
148 | .delete(from: self.m.table)
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
149 | .where(self.m.$name == migration.migrationName)
150 | .execute(on: conn)
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:136:18: warning: capture of non-sendable type 'B.Type' in an isolated closure
134 | }
135 |
136 | private func _revertLast(on conn: BridgeConnection) -> EventLoopFuture<Bool> {
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
137 | let query = SwifQL.select(self.m.table.*).from(self.m.table).prepare(conn.dialect).plain
138 | return conn.query(raw: query, decoding: Migrations.self).flatMap { completedMigrations in
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[1245/1258] Compiling Bridges DatabaseMigrations.swift
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:98:17: warning: capture of non-sendable type 'B.Type' in an isolated closure
96 | return bridge.transaction(to: db, on: bridge.eventLoopGroup.next()) { conn in
97 | conn.eventLoop.future().flatMap {
98 | self.dedicatedSchema
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
99 | ? BridgesSchema.Create.prepare(on: conn)
100 | : conn.eventLoop.future()
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:95:17: warning: capture of non-sendable type 'B.Type' in an isolated closure
93 | private var m: Schema<Migrations> { Schema<Migrations>(schemaName) }
94 |
95 | public func migrate() -> EventLoopFuture<Void> {
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
96 | return bridge.transaction(to: db, on: bridge.eventLoopGroup.next()) { conn in
97 | conn.eventLoop.future().flatMap {
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:99:56: warning: capture of non-sendable type 'B.Connection.Type' in an isolated closure
97 | conn.eventLoop.future().flatMap {
98 | self.dedicatedSchema
99 | ? BridgesSchema.Create.prepare(on: conn)
| `- warning: capture of non-sendable type 'B.Connection.Type' in an isolated closure
100 | : conn.eventLoop.future()
101 | }.flatMap {
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:106:22: warning: capture of non-sendable type 'B.Type' in an isolated closure
104 | .column(\.$id, .bigserial, .primaryKey)
105 | .column(\.$name, .text, .unique)
106 | .column(\.$batch, .int)
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
107 | .execute(on: conn)
108 | }.flatMap {
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:95:17: warning: capture of non-sendable type 'B.Type' in an isolated closure
93 | private var m: Schema<Migrations> { Schema<Migrations>(schemaName) }
94 |
95 | public func migrate() -> EventLoopFuture<Void> {
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
96 | return bridge.transaction(to: db, on: bridge.eventLoopGroup.next()) { conn in
97 | conn.eventLoop.future().flatMap {
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:107:34: warning: capture of non-sendable type 'B.Connection.Type' in an isolated closure
105 | .column(\.$name, .text, .unique)
106 | .column(\.$batch, .int)
107 | .execute(on: conn)
| `- warning: capture of non-sendable type 'B.Connection.Type' in an isolated closure
108 | }.flatMap {
109 | let query = SwifQL.select(self.m.table.*).from(self.m.table).prepare(conn.dialect).plain
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:109:48: warning: capture of non-sendable type 'B.Type' in an isolated closure
107 | .execute(on: conn)
108 | }.flatMap {
109 | let query = SwifQL.select(self.m.table.*).from(self.m.table).prepare(conn.dialect).plain
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
110 | return conn.query(raw: query, decoding: Migrations.self).flatMap { completedMigrations in
111 | let batch = completedMigrations.map { $0.batch }.max() ?? 0
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:95:17: warning: capture of non-sendable type 'B.Type' in an isolated closure
93 | private var m: Schema<Migrations> { Schema<Migrations>(schemaName) }
94 |
95 | public func migrate() -> EventLoopFuture<Void> {
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
96 | return bridge.transaction(to: db, on: bridge.eventLoopGroup.next()) { conn in
97 | conn.eventLoop.future().flatMap {
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:109:86: warning: capture of non-sendable type 'B.Connection.Type' in an isolated closure
107 | .execute(on: conn)
108 | }.flatMap {
109 | let query = SwifQL.select(self.m.table.*).from(self.m.table).prepare(conn.dialect).plain
| `- warning: capture of non-sendable type 'B.Connection.Type' in an isolated closure
110 | return conn.query(raw: query, decoding: Migrations.self).flatMap { completedMigrations in
111 | let batch = completedMigrations.map { $0.batch }.max() ?? 0
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:111:53: warning: capture of non-sendable type 'B.Type' in an isolated closure
109 | let query = SwifQL.select(self.m.table.*).from(self.m.table).prepare(conn.dialect).plain
110 | return conn.query(raw: query, decoding: Migrations.self).flatMap { completedMigrations in
111 | let batch = completedMigrations.map { $0.batch }.max() ?? 0
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
112 | var migrations = self.migrations
113 | migrations.removeAll { m in completedMigrations.contains { $0.name == m.migrationName } }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:95:17: warning: capture of non-sendable type 'B.Type' in an isolated closure
93 | private var m: Schema<Migrations> { Schema<Migrations>(schemaName) }
94 |
95 | public func migrate() -> EventLoopFuture<Void> {
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
96 | return bridge.transaction(to: db, on: bridge.eventLoopGroup.next()) { conn in
97 | conn.eventLoop.future().flatMap {
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:124:35: warning: capture of non-sendable type 'B.Connection.Type' in an isolated closure
122 | }
123 | }
124 | }.flatten(on: conn.eventLoop)
| `- warning: capture of non-sendable type 'B.Connection.Type' in an isolated closure
125 | }
126 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:120:45: warning: capture of 'migration' with non-sendable type 'any AnyMigration.Type' in a '@Sendable' closure [#SendableClosureCaptures]
118 | .insertInto(self.m.table, fields: self.m.$name, self.m.$batch)
119 | .values
120 | .values(migration.migrationName, batch + 1)
| `- warning: capture of 'migration' with non-sendable type 'any AnyMigration.Type' in a '@Sendable' closure [#SendableClosureCaptures]
121 | .execute(on: conn)
122 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:118:54: warning: capture of non-sendable type 'B.Type' in an isolated closure
116 | migration.prepare(on: conn).flatMap {
117 | SwifQL
118 | .insertInto(self.m.table, fields: self.m.$name, self.m.$batch)
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
119 | .values
120 | .values(migration.migrationName, batch + 1)
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:95:17: warning: capture of non-sendable type 'B.Type' in an isolated closure
93 | private var m: Schema<Migrations> { Schema<Migrations>(schemaName) }
94 |
95 | public func migrate() -> EventLoopFuture<Void> {
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
96 | return bridge.transaction(to: db, on: bridge.eventLoopGroup.next()) { conn in
97 | conn.eventLoop.future().flatMap {
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:121:50: warning: capture of non-sendable type 'B.Connection.Type' in an isolated closure
119 | .values
120 | .values(migration.migrationName, batch + 1)
121 | .execute(on: conn)
| `- warning: capture of non-sendable type 'B.Connection.Type' in an isolated closure
122 | }
123 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:139:55: warning: capture of non-sendable type 'B.Type' in an isolated closure
137 | let query = SwifQL.select(self.m.table.*).from(self.m.table).prepare(conn.dialect).plain
138 | return conn.query(raw: query, decoding: Migrations.self).flatMap { completedMigrations in
139 | guard let lastBatch = completedMigrations.map({ $0.batch }).max()
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
140 | else { return conn.eventLoop.future(false) }
141 | let migrationsToRevert = completedMigrations.filter { $0.batch == lastBatch }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:136:18: warning: capture of non-sendable type 'B.Type' in an isolated closure
134 | }
135 |
136 | private func _revertLast(on conn: BridgeConnection) -> EventLoopFuture<Bool> {
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
137 | let query = SwifQL.select(self.m.table.*).from(self.m.table).prepare(conn.dialect).plain
138 | return conn.query(raw: query, decoding: Migrations.self).flatMap { completedMigrations in
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:149:52: warning: capture of 'migration' with non-sendable type 'any AnyMigration.Type' in a '@Sendable' closure [#SendableClosureCaptures]
147 | SwifQL
148 | .delete(from: self.m.table)
149 | .where(self.m.$name == migration.migrationName)
| `- warning: capture of 'migration' with non-sendable type 'any AnyMigration.Type' in a '@Sendable' closure [#SendableClosureCaptures]
150 | .execute(on: conn)
151 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:148:48: warning: capture of non-sendable type 'B.Type' in an isolated closure
146 | migration.revert(on: conn).flatMap {
147 | SwifQL
148 | .delete(from: self.m.table)
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
149 | .where(self.m.$name == migration.migrationName)
150 | .execute(on: conn)
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/DatabaseMigrations.swift:136:18: warning: capture of non-sendable type 'B.Type' in an isolated closure
134 | }
135 |
136 | private func _revertLast(on conn: BridgeConnection) -> EventLoopFuture<Bool> {
| `- warning: capture of non-sendable type 'B.Type' in an isolated closure
137 | let query = SwifQL.select(self.m.table.*).from(self.m.table).prepare(conn.dialect).plain
138 | return conn.query(raw: query, decoding: Migrations.self).flatMap { completedMigrations in
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[1246/1258] Compiling Bridges Function.swift
[1247/1258] Compiling Bridges Migration.swift
[1248/1258] Compiling Bridges PoolSource.swift
[1249/1258] Compiling Bridges SchemaMigration.swift
[1250/1258] Compiling Bridges AutoCreateTableMigration.swift
[1251/1258] Compiling Bridges Bridgeable.swift
[1252/1258] Compiling Bridges BridgesApplication.swift
[1253/1258] Compiling Bridges BridgesRequest.swift
[1254/1258] Compiling Bridges EventLoopFuture+SyncFlatten.swift
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Extensions/SwifQLable+Execute.swift:33:25: warning: capture of non-sendable type 'T.Type' in an isolated closure
31 | public func all<T>(decoding: T.Type) -> EventLoopFuture<[T]> where T: Decodable {
32 | flatMapThrowing {
33 | try $0.rows.map { try $0.decode(model: T.self) }
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
34 | }
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Extensions/SwifQLable+Execute.swift:43:32: warning: capture of non-sendable type 'T.Type' in an isolated closure
41 | public func first<T>(decoding: T.Type) -> EventLoopFuture<T?> where T: Decodable {
42 | flatMapThrowing {
43 | try $0.rows.first?.decode(model: T.self)
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
44 | }
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Extensions/Table+Conveniences.swift:78:39: warning: capture of non-sendable type 'T.Type' in an isolated closure
76 | let query = SwifQL.select(T.table.*).from(T.table)
77 | return db.query(queryParts.appended(to: query), on: container)
78 | .flatMapThrowing { try $0.map { try $0.decode(model: T.self) } }
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
79 | }
80 |
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Extensions/Table+Conveniences.swift:84:39: warning: capture of non-sendable type 'CT.Type' in an isolated closure
82 | let query = SwifQL.select(T.table.*).from(T.table)
83 | return db.query(queryParts.appended(to: query), on: container)
84 | .flatMapThrowing { try $0.map { try $0.decode(model: CT.self) } }
| `- warning: capture of non-sendable type 'CT.Type' in an isolated closure
85 | }
86 |
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Extensions/Table+Conveniences.swift:96:46: warning: capture of non-sendable type 'T.Type' in an isolated closure
94 | let query = SwifQL.select(T.table.*).from(T.table)
95 | return db.query(queryParts.appended(to: query), on: container)
96 | .flatMapThrowing { try $0.first?.decode(model: T.self) }
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
97 | }
98 |
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Extensions/Table+Conveniences.swift:102:46: warning: capture of non-sendable type 'CT.Type' in an isolated closure
100 | let query = SwifQL.select(T.table.*).from(T.table)
101 | return db.query(queryParts.appended(to: query), on: container)
102 | .flatMapThrowing { try $0.first?.decode(model: CT.self) }
| `- warning: capture of non-sendable type 'CT.Type' in an isolated closure
103 | }
104 |
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Extensions/Table+Conveniences.swift:140:91: warning: capture of non-sendable type 'T.Type' in an isolated closure
138 | public func first() -> EventLoopFuture<T?> {
139 | let query = SwifQL.select(T.table.*).from(T.table)
140 | return conn.query(sql: queryParts.appended(to: query), decoding: T.self).map { $0.first }
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
141 | }
142 |
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/DateFormatter.swift:12:14: warning: class 'BridgesDateFormatter' must restate inherited '@unchecked Sendable' conformance
10 | /// Custom DateFormatter to parse dates both with milliseconds and without, with timezone and without
11 | /// credits to https://stackoverflow.com/questions/48371082/swift-dateformatter-optional-milliseconds
12 | public class BridgesDateFormatter: DateFormatter {
| `- warning: class 'BridgesDateFormatter' must restate inherited '@unchecked Sendable' conformance
13 | override public init() {
14 | super.init()
[1255/1258] Compiling Bridges SwifQLable+Execute.swift
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Extensions/SwifQLable+Execute.swift:33:25: warning: capture of non-sendable type 'T.Type' in an isolated closure
31 | public func all<T>(decoding: T.Type) -> EventLoopFuture<[T]> where T: Decodable {
32 | flatMapThrowing {
33 | try $0.rows.map { try $0.decode(model: T.self) }
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
34 | }
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Extensions/SwifQLable+Execute.swift:43:32: warning: capture of non-sendable type 'T.Type' in an isolated closure
41 | public func first<T>(decoding: T.Type) -> EventLoopFuture<T?> where T: Decodable {
42 | flatMapThrowing {
43 | try $0.rows.first?.decode(model: T.self)
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
44 | }
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Extensions/Table+Conveniences.swift:78:39: warning: capture of non-sendable type 'T.Type' in an isolated closure
76 | let query = SwifQL.select(T.table.*).from(T.table)
77 | return db.query(queryParts.appended(to: query), on: container)
78 | .flatMapThrowing { try $0.map { try $0.decode(model: T.self) } }
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
79 | }
80 |
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Extensions/Table+Conveniences.swift:84:39: warning: capture of non-sendable type 'CT.Type' in an isolated closure
82 | let query = SwifQL.select(T.table.*).from(T.table)
83 | return db.query(queryParts.appended(to: query), on: container)
84 | .flatMapThrowing { try $0.map { try $0.decode(model: CT.self) } }
| `- warning: capture of non-sendable type 'CT.Type' in an isolated closure
85 | }
86 |
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Extensions/Table+Conveniences.swift:96:46: warning: capture of non-sendable type 'T.Type' in an isolated closure
94 | let query = SwifQL.select(T.table.*).from(T.table)
95 | return db.query(queryParts.appended(to: query), on: container)
96 | .flatMapThrowing { try $0.first?.decode(model: T.self) }
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
97 | }
98 |
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Extensions/Table+Conveniences.swift:102:46: warning: capture of non-sendable type 'CT.Type' in an isolated closure
100 | let query = SwifQL.select(T.table.*).from(T.table)
101 | return db.query(queryParts.appended(to: query), on: container)
102 | .flatMapThrowing { try $0.first?.decode(model: CT.self) }
| `- warning: capture of non-sendable type 'CT.Type' in an isolated closure
103 | }
104 |
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Extensions/Table+Conveniences.swift:140:91: warning: capture of non-sendable type 'T.Type' in an isolated closure
138 | public func first() -> EventLoopFuture<T?> {
139 | let query = SwifQL.select(T.table.*).from(T.table)
140 | return conn.query(sql: queryParts.appended(to: query), decoding: T.self).map { $0.first }
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
141 | }
142 |
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/DateFormatter.swift:12:14: warning: class 'BridgesDateFormatter' must restate inherited '@unchecked Sendable' conformance
10 | /// Custom DateFormatter to parse dates both with milliseconds and without, with timezone and without
11 | /// credits to https://stackoverflow.com/questions/48371082/swift-dateformatter-optional-milliseconds
12 | public class BridgesDateFormatter: DateFormatter {
| `- warning: class 'BridgesDateFormatter' must restate inherited '@unchecked Sendable' conformance
13 | override public init() {
14 | super.init()
[1256/1258] Compiling Bridges Table+Conveniences.swift
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Extensions/SwifQLable+Execute.swift:33:25: warning: capture of non-sendable type 'T.Type' in an isolated closure
31 | public func all<T>(decoding: T.Type) -> EventLoopFuture<[T]> where T: Decodable {
32 | flatMapThrowing {
33 | try $0.rows.map { try $0.decode(model: T.self) }
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
34 | }
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Extensions/SwifQLable+Execute.swift:43:32: warning: capture of non-sendable type 'T.Type' in an isolated closure
41 | public func first<T>(decoding: T.Type) -> EventLoopFuture<T?> where T: Decodable {
42 | flatMapThrowing {
43 | try $0.rows.first?.decode(model: T.self)
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
44 | }
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Extensions/Table+Conveniences.swift:78:39: warning: capture of non-sendable type 'T.Type' in an isolated closure
76 | let query = SwifQL.select(T.table.*).from(T.table)
77 | return db.query(queryParts.appended(to: query), on: container)
78 | .flatMapThrowing { try $0.map { try $0.decode(model: T.self) } }
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
79 | }
80 |
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Extensions/Table+Conveniences.swift:84:39: warning: capture of non-sendable type 'CT.Type' in an isolated closure
82 | let query = SwifQL.select(T.table.*).from(T.table)
83 | return db.query(queryParts.appended(to: query), on: container)
84 | .flatMapThrowing { try $0.map { try $0.decode(model: CT.self) } }
| `- warning: capture of non-sendable type 'CT.Type' in an isolated closure
85 | }
86 |
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Extensions/Table+Conveniences.swift:96:46: warning: capture of non-sendable type 'T.Type' in an isolated closure
94 | let query = SwifQL.select(T.table.*).from(T.table)
95 | return db.query(queryParts.appended(to: query), on: container)
96 | .flatMapThrowing { try $0.first?.decode(model: T.self) }
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
97 | }
98 |
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Extensions/Table+Conveniences.swift:102:46: warning: capture of non-sendable type 'CT.Type' in an isolated closure
100 | let query = SwifQL.select(T.table.*).from(T.table)
101 | return db.query(queryParts.appended(to: query), on: container)
102 | .flatMapThrowing { try $0.first?.decode(model: CT.self) }
| `- warning: capture of non-sendable type 'CT.Type' in an isolated closure
103 | }
104 |
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Extensions/Table+Conveniences.swift:140:91: warning: capture of non-sendable type 'T.Type' in an isolated closure
138 | public func first() -> EventLoopFuture<T?> {
139 | let query = SwifQL.select(T.table.*).from(T.table)
140 | return conn.query(sql: queryParts.appended(to: query), decoding: T.self).map { $0.first }
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
141 | }
142 |
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/DateFormatter.swift:12:14: warning: class 'BridgesDateFormatter' must restate inherited '@unchecked Sendable' conformance
10 | /// Custom DateFormatter to parse dates both with milliseconds and without, with timezone and without
11 | /// credits to https://stackoverflow.com/questions/48371082/swift-dateformatter-optional-milliseconds
12 | public class BridgesDateFormatter: DateFormatter {
| `- warning: class 'BridgesDateFormatter' must restate inherited '@unchecked Sendable' conformance
13 | override public init() {
14 | super.init()
[1257/1258] Compiling Bridges DateFormatter.swift
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Extensions/SwifQLable+Execute.swift:33:25: warning: capture of non-sendable type 'T.Type' in an isolated closure
31 | public func all<T>(decoding: T.Type) -> EventLoopFuture<[T]> where T: Decodable {
32 | flatMapThrowing {
33 | try $0.rows.map { try $0.decode(model: T.self) }
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
34 | }
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Extensions/SwifQLable+Execute.swift:43:32: warning: capture of non-sendable type 'T.Type' in an isolated closure
41 | public func first<T>(decoding: T.Type) -> EventLoopFuture<T?> where T: Decodable {
42 | flatMapThrowing {
43 | try $0.rows.first?.decode(model: T.self)
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
44 | }
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Extensions/Table+Conveniences.swift:78:39: warning: capture of non-sendable type 'T.Type' in an isolated closure
76 | let query = SwifQL.select(T.table.*).from(T.table)
77 | return db.query(queryParts.appended(to: query), on: container)
78 | .flatMapThrowing { try $0.map { try $0.decode(model: T.self) } }
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
79 | }
80 |
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Extensions/Table+Conveniences.swift:84:39: warning: capture of non-sendable type 'CT.Type' in an isolated closure
82 | let query = SwifQL.select(T.table.*).from(T.table)
83 | return db.query(queryParts.appended(to: query), on: container)
84 | .flatMapThrowing { try $0.map { try $0.decode(model: CT.self) } }
| `- warning: capture of non-sendable type 'CT.Type' in an isolated closure
85 | }
86 |
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Extensions/Table+Conveniences.swift:96:46: warning: capture of non-sendable type 'T.Type' in an isolated closure
94 | let query = SwifQL.select(T.table.*).from(T.table)
95 | return db.query(queryParts.appended(to: query), on: container)
96 | .flatMapThrowing { try $0.first?.decode(model: T.self) }
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
97 | }
98 |
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Extensions/Table+Conveniences.swift:102:46: warning: capture of non-sendable type 'CT.Type' in an isolated closure
100 | let query = SwifQL.select(T.table.*).from(T.table)
101 | return db.query(queryParts.appended(to: query), on: container)
102 | .flatMapThrowing { try $0.first?.decode(model: CT.self) }
| `- warning: capture of non-sendable type 'CT.Type' in an isolated closure
103 | }
104 |
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Extensions/Table+Conveniences.swift:140:91: warning: capture of non-sendable type 'T.Type' in an isolated closure
138 | public func first() -> EventLoopFuture<T?> {
139 | let query = SwifQL.select(T.table.*).from(T.table)
140 | return conn.query(sql: queryParts.appended(to: query), decoding: T.self).map { $0.first }
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
141 | }
142 |
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/DateFormatter.swift:12:14: warning: class 'BridgesDateFormatter' must restate inherited '@unchecked Sendable' conformance
10 | /// Custom DateFormatter to parse dates both with milliseconds and without, with timezone and without
11 | /// credits to https://stackoverflow.com/questions/48371082/swift-dateformatter-optional-milliseconds
12 | public class BridgesDateFormatter: DateFormatter {
| `- warning: class 'BridgesDateFormatter' must restate inherited '@unchecked Sendable' conformance
13 | override public init() {
14 | super.init()
[1258/1258] Compiling Bridges Table+AllColumns.swift
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Extensions/SwifQLable+Execute.swift:33:25: warning: capture of non-sendable type 'T.Type' in an isolated closure
31 | public func all<T>(decoding: T.Type) -> EventLoopFuture<[T]> where T: Decodable {
32 | flatMapThrowing {
33 | try $0.rows.map { try $0.decode(model: T.self) }
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
34 | }
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Extensions/SwifQLable+Execute.swift:43:32: warning: capture of non-sendable type 'T.Type' in an isolated closure
41 | public func first<T>(decoding: T.Type) -> EventLoopFuture<T?> where T: Decodable {
42 | flatMapThrowing {
43 | try $0.rows.first?.decode(model: T.self)
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
44 | }
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Extensions/Table+Conveniences.swift:78:39: warning: capture of non-sendable type 'T.Type' in an isolated closure
76 | let query = SwifQL.select(T.table.*).from(T.table)
77 | return db.query(queryParts.appended(to: query), on: container)
78 | .flatMapThrowing { try $0.map { try $0.decode(model: T.self) } }
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
79 | }
80 |
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Extensions/Table+Conveniences.swift:84:39: warning: capture of non-sendable type 'CT.Type' in an isolated closure
82 | let query = SwifQL.select(T.table.*).from(T.table)
83 | return db.query(queryParts.appended(to: query), on: container)
84 | .flatMapThrowing { try $0.map { try $0.decode(model: CT.self) } }
| `- warning: capture of non-sendable type 'CT.Type' in an isolated closure
85 | }
86 |
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Extensions/Table+Conveniences.swift:96:46: warning: capture of non-sendable type 'T.Type' in an isolated closure
94 | let query = SwifQL.select(T.table.*).from(T.table)
95 | return db.query(queryParts.appended(to: query), on: container)
96 | .flatMapThrowing { try $0.first?.decode(model: T.self) }
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
97 | }
98 |
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Extensions/Table+Conveniences.swift:102:46: warning: capture of non-sendable type 'CT.Type' in an isolated closure
100 | let query = SwifQL.select(T.table.*).from(T.table)
101 | return db.query(queryParts.appended(to: query), on: container)
102 | .flatMapThrowing { try $0.first?.decode(model: CT.self) }
| `- warning: capture of non-sendable type 'CT.Type' in an isolated closure
103 | }
104 |
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Extensions/Table+Conveniences.swift:140:91: warning: capture of non-sendable type 'T.Type' in an isolated closure
138 | public func first() -> EventLoopFuture<T?> {
139 | let query = SwifQL.select(T.table.*).from(T.table)
140 | return conn.query(sql: queryParts.appended(to: query), decoding: T.self).map { $0.first }
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
141 | }
142 |
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/Helpers/DateFormatter.swift:12:14: warning: class 'BridgesDateFormatter' must restate inherited '@unchecked Sendable' conformance
10 | /// Custom DateFormatter to parse dates both with milliseconds and without, with timezone and without
11 | /// credits to https://stackoverflow.com/questions/48371082/swift-dateformatter-optional-milliseconds
12 | public class BridgesDateFormatter: DateFormatter {
| `- warning: class 'BridgesDateFormatter' must restate inherited '@unchecked Sendable' conformance
13 | override public init() {
14 | super.init()
Build complete! (52.33s)
Fetching https://github.com/SwifQL/SwifQL.git
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/vapor/async-kit.git
Fetching https://github.com/apple/swift-nio-ssl.git
[1/3836] Fetching swift-log
[78/6206] Fetching swift-log, async-kit
[280/8572] Fetching swift-log, async-kit, swifql
[4584/23462] Fetching swift-log, async-kit, swifql, swift-nio-ssl
[10062/99789] Fetching swift-log, async-kit, swifql, swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-nio-ssl.git from cache (1.81s)
[26128/84899] Fetching swift-log, async-kit, swifql, swift-nio
Fetched https://github.com/apple/swift-log.git from cache (5.72s)
Fetched https://github.com/vapor/async-kit.git from cache (5.72s)
Fetched https://github.com/apple/swift-nio.git from cache (5.72s)
Fetched https://github.com/SwifQL/SwifQL.git from cache (5.72s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (6.16s)
Computing version for https://github.com/vapor/async-kit.git
Computed https://github.com/vapor/async-kit.git at 1.20.0 (0.51s)
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-algorithms.git
[1/5959] Fetching swift-algorithms
[121/22599] Fetching swift-algorithms, swift-collections
Fetched https://github.com/apple/swift-algorithms.git from cache (1.64s)
Fetched https://github.com/apple/swift-collections.git from cache (1.64s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.1 (2.15s)
Fetching https://github.com/apple/swift-numerics.git
[1/5757] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git from cache (1.00s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.0.3 (1.51s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (0.47s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.83.0 (0.58s)
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-atomics.git
[1/4436] Fetching swift-system
[46/6233] Fetching swift-system, swift-atomics
Fetched https://github.com/apple/swift-system.git from cache (0.95s)
Fetched https://github.com/apple/swift-atomics.git from cache (0.95s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (1.37s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.5.0 (0.37s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.32.0 (0.52s)
Computing version for https://github.com/SwifQL/SwifQL.git
Computed https://github.com/SwifQL/SwifQL.git at 2.0.0-beta.4.0.2 (0.39s)
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.0
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.3
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.83.0
Creating working copy for https://github.com/apple/swift-numerics.git
Working copy of https://github.com/apple/swift-numerics.git resolved at 1.0.3
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.5.0
Creating working copy for https://github.com/vapor/async-kit.git
Working copy of https://github.com/vapor/async-kit.git resolved at 1.20.0
Creating working copy for https://github.com/apple/swift-algorithms.git
Working copy of https://github.com/apple/swift-algorithms.git resolved at 1.2.1
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.2.0
Creating working copy for https://github.com/apple/swift-nio-ssl.git
Working copy of https://github.com/apple/swift-nio-ssl.git resolved at 2.32.0
Creating working copy for https://github.com/SwifQL/SwifQL.git
Working copy of https://github.com/SwifQL/SwifQL.git resolved at 2.0.0-beta.4.0.2
Build complete.
{
"dependencies" : [
{
"identity" : "async-kit",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/vapor/async-kit.git"
},
{
"identity" : "swift-nio",
"requirement" : {
"range" : [
{
"lower_bound" : "2.2.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-nio.git"
},
{
"identity" : "swift-nio-ssl",
"requirement" : {
"range" : [
{
"lower_bound" : "2.0.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-nio-ssl.git"
},
{
"identity" : "swift-log",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-log.git"
},
{
"identity" : "swifql",
"requirement" : {
"range" : [
{
"lower_bound" : "2.0.0-beta",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/SwifQL/SwifQL.git"
}
],
"manifest_display_name" : "Bridges",
"name" : "Bridges",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
}
],
"products" : [
{
"name" : "Bridges",
"targets" : [
"Bridges"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "BridgesTests",
"module_type" : "SwiftTarget",
"name" : "BridgesTests",
"path" : "Tests/BridgesTests",
"sources" : [
"BridgesTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"Bridges"
],
"type" : "test"
},
{
"c99name" : "Bridges",
"module_type" : "SwiftTarget",
"name" : "Bridges",
"path" : "Sources/Bridges",
"product_dependencies" : [
"AsyncKit",
"NIO",
"NIOSSL",
"Logging",
"SwifQL"
],
"product_memberships" : [
"Bridges"
],
"sources" : [
"Bridges.swift",
"BridgesError.swift",
"BridgesRow.swift",
"Builders/CreateEnumBuilder.swift",
"Builders/DropEnumBuilder.swift",
"Builders/UpdateEnumBuilder.swift",
"Connection.swift",
"DatabaseHost.swift",
"DatabaseIdentifier.swift",
"DatabaseMigrations.swift",
"Enum.swift",
"Exports.swift",
"Extensions/Bridgeable+Transaction.swift",
"Extensions/Dictionary+SwifQLable.swift",
"Extensions/Encodable+SwifQLable.swift",
"Extensions/EventLoopFuture+SyncFlatten.swift",
"Extensions/SwifQLable+Execute.swift",
"Extensions/Table+Conveniences.swift",
"Helpers/DateFormatter.swift",
"Helpers/Table+AllColumns.swift",
"Helpers/TableDelete.swift",
"Helpers/TableInsert.swift",
"Helpers/TableUpdate.swift",
"Helpers/TableUpsert.swift",
"Protocols/AnyBridge.swift",
"Protocols/AnyBridgesObject.swift",
"Protocols/AnyDatabaseIdentifiable.swift",
"Protocols/AnyMigration.swift",
"Protocols/AutoCreateTableMigration.swift",
"Protocols/Bridgeable.swift",
"Protocols/BridgesApplication.swift",
"Protocols/BridgesRequest.swift",
"Protocols/ConnectionSource.swift",
"Protocols/ContextBridgeable.swift",
"Protocols/EnumMigration.swift",
"Protocols/Extension.swift",
"Protocols/Function.swift",
"Protocols/Migration.swift",
"Protocols/PoolSource.swift",
"Protocols/SchemaMigration.swift",
"Protocols/TableMigration.swift",
"Protocols/Trigger.swift",
"Protocols/View.swift",
"Table.swift"
],
"type" : "library"
}
],
"tools_version" : "5.2"
}
Done.