@@ -300,13 +300,15 @@ class QueryTests: XCTestCase {
300
300
let insert = try emails. insert ( value)
301
301
let encodedJSON = try JSONEncoder ( ) . encode ( value1)
302
302
let encodedJSONString = String ( data: encodedJSON, encoding: . utf8) !
303
+ // swiftlint:disable line_length
303
304
assertSQL (
304
305
"""
305
306
INSERT INTO \" emails \" ( \" int \" , \" string \" , \" bool \" , \" float \" , \" double \" , \" date \" , \" uuid \" , \" optional \" ,
306
307
\" sub \" ) VALUES (1, '2', 1, 3.0, 4.0, '1970-01-01T00:00:00.000', 'E621E1F8-C36C-495A-93FC-0C247A3E6E5F', 'optional', ' \( encodedJSONString) ')
307
308
""" . replacingOccurrences ( of: " \n " , with: " " ) ,
308
309
insert
309
310
)
311
+ // swiftlint:enable line_length
310
312
}
311
313
#endif
312
314
@@ -352,6 +354,7 @@ class QueryTests: XCTestCase {
352
354
let value = TestCodable ( int: 1 , string: " 2 " , bool: true , float: 3 , double: 4 ,
353
355
date: Date ( timeIntervalSince1970: 0 ) , uuid: testUUIDValue, optional: nil , sub: nil )
354
356
let insert = try emails. upsert ( value, onConflictOf: string)
357
+ // swiftlint:disable line_length
355
358
assertSQL (
356
359
"""
357
360
INSERT INTO \" emails \" ( \" int \" , \" string \" , \" bool \" , \" float \" , \" double \" , \" date \" , \" uuid \" )
@@ -361,6 +364,7 @@ class QueryTests: XCTestCase {
361
364
""" . replacingOccurrences ( of: " \n " , with: " " ) ,
362
365
insert
363
366
)
367
+ // swiftlint:enable line_length
364
368
}
365
369
366
370
func test_insert_many_encodable( ) throws {
@@ -372,6 +376,7 @@ class QueryTests: XCTestCase {
372
376
let value3 = TestCodable ( int: 3 , string: " 4 " , bool: true , float: 3 , double: 6 ,
373
377
date: Date ( timeIntervalSince1970: 0 ) , uuid: testUUIDValue, optional: nil , sub: nil )
374
378
let insert = try emails. insertMany ( [ value1, value2, value3] )
379
+ // swiftlint:disable line_length
375
380
assertSQL (
376
381
"""
377
382
INSERT INTO \" emails \" ( \" int \" , \" string \" , \" bool \" , \" float \" , \" double \" , \" date \" , \" uuid \" )
@@ -380,6 +385,7 @@ class QueryTests: XCTestCase {
380
385
""" . replacingOccurrences ( of: " \n " , with: " " ) ,
381
386
insert
382
387
)
388
+ // swiftlint:enable line_length
383
389
}
384
390
385
391
func test_update_compilesUpdateExpression( ) {
0 commit comments