Angus Muller
8c06e7bff5
Detached rows string to data and tests
2018-08-14 11:16:47 +01:00
Vlad Alexa
7f16e357d0
extended Codable documentation and added test for the example used in the documentation
2018-08-14 10:39:31 +01:00
Gwendal Roué
9bc68cd10e
The final touch
2018-08-12 15:12:46 +02:00
Gwendal Roué
66541922a4
More cleanup
2018-08-12 12:27:47 +02:00
Gwendal Roué
ef10e2e8ed
General cleanup:
...
- rename ValueConversionDebuggingInfo to ValueConversionContext
- allow missing value conversion context (when decoding a raw DatabaseValue)
- rename ColumnCursor to FastDatabaseValueCursor
- rename NullableColumnCursor to FastNullableDatabaseValueCursor
2018-08-11 19:45:58 +02:00
Gwendal Roué
897fd32725
Cleanup
2018-08-11 12:58:04 +02:00
Gwendal Roué
e46902c845
wip: debug info for no such column errors
2018-08-11 07:16:55 +02:00
Gwendal Roué
d836fffd08
wpi: debug info for no such column errors
2018-08-10 08:52:32 +02:00
Gwendal Roué
c480e07f08
Increase single-value containers testing
2018-08-10 05:21:33 +02:00
Gwendal Roué
9f2058f6d9
Fix DatabaseValueConvertible implementation for Decodable types that need a single-value container
2018-08-10 05:01:30 +02:00
Gwendal Roué
cbda1f9211
Fix DatabaseValueConvertible implementation for Decodable types that need a single-value container
...
They used to crash on decoding errors
2018-08-10 04:52:23 +02:00
Gwendal Roué
cef5d25228
Test conversion error messages
2018-08-09 19:19:22 +02:00
Gwendal Roué
220ce379e1
Test conversion error messages
2018-08-09 14:00:33 +02:00
Vlad Alexa
74aae3dd59
implemented requested changes
2018-08-08 11:41:26 +01:00
Vlad Alexa
feeedcb92d
Added nested Codable support by flattening into/from JSON
2018-08-07 15:29:16 +01:00
Gwendal Roué
e9e1fa85c6
Cleanup
2018-08-06 13:40:05 +02:00
Gwendal Roué
f8de01779c
Cleanup
2018-08-06 13:40:05 +02:00
Gwendal Roué
84c53ef6b9
improve value conversion diagnostics more
2018-08-06 13:40:05 +02:00
Gwendal Roué
a8f6ed6d61
improve value conversion diagnostics more
2018-08-06 13:40:05 +02:00
Marcel Ball
4f0b5eb7b9
Enable FTS5 extension for GRDBCipher builds
...
- Enable
- Add -DSQLITE_ENABLE_FTS5 to the CFLAGS for SQLCipher (SQLCipher/src/sqlcipher.xcconfig) (via submodule update)
- Add -D SQLITE_ENABLE_FTS5 to swift flags for GRDBCipher (SQLCipher/GRDBCipher.xcconfig)
- Add -D SQLITE_ENABLE_FTS5 to the GRDBCipher Testing Projects
- Updated message in EncryptionTests - SQLCipher changed the message “file is encrypted or is not a database” back to just “file is not a database” in 3.4.2 - seems like an odd choice on their part but is behaving as expected.
2018-08-03 08:24:25 +02:00
Gwendal Roué
fc2c2658b7
DatabaseWriterTests.testEraseAndVacuum: use auto increment so we can test database erasure with internal SQLite objects
2018-07-07 17:53:36 +02:00
Gwendal Roué
fdef88d150
DatabaseWriterTests.testEraseAndVacuum: add a virtual table
2018-07-07 17:51:55 +02:00
Gwendal Roué
fee4486d1b
DatabaseMigrator.eraseDatabaseOnSchemaChange
2018-07-07 14:23:50 +02:00
Gwendal Roué
a73be9c010
Fix databaseWriter.erase() with SQLCipher
2018-07-07 12:32:40 +02:00
Gwendal Roué
0bc25f8773
Tests for DatabaseQueue and DatabasePool erase and vacuum
2018-07-06 14:03:44 +02:00
Gwendal Roué
38b1e41aab
Final tweaks to dispatch queue labels
2018-06-14 21:10:56 +02:00
Gwendal Roué
342dcc5094
Confiiguration.label is used to name dispatch queues
2018-06-14 20:26:34 +02:00
Gwendal Roué
4e7fc83ad5
Add test for FTS4 compression/decompression (addresses #369 )
2018-06-14 13:32:28 +02:00
Gwendal Roué
7e6de4fbd0
Test TableRequest.orderByPrimaryKey()
2018-06-05 22:46:24 +02:00
Gwendal Roué
60eb868fa5
Failing tests for Database.indexes(on:) and Database.foreignKeys(on:)
2018-06-05 14:38:47 +02:00
Gwendal Roué
6130c6f985
Who guessed String ordering would depend on Swift version? Fix a test so that it runs in both Swift 4.1 and Swift 4.2
2018-06-05 08:03:50 +02:00
Gwendal Roué
b7f44785ec
The SQL statement generated by record.update(db) lists columns in the same order as in the table definition (this fixes tests made flaky by SE-0206)
2018-06-05 08:02:54 +02:00
Gwendal Roué
7b59c097c6
Test for default implementation for TableRecord.databaseTableName
2018-05-22 22:43:01 +02:00
Gwendal Roué
7be345521b
Associations: new "DerivableRequest Protocol" documentation chapter
2018-05-20 16:14:23 +02:00
Gwendal Roué
a35f012286
Cleanup
2018-05-07 17:50:27 +02:00
Gwendal Roué
2d008b8c54
Yet another request protocols update, in order to empower RxGRDB
2018-05-05 11:57:17 +02:00
Gwendal Roué
cdad6fa313
Introduce DerivableRequest
2018-05-04 14:19:27 +02:00
Gwendal Roué
ffaabdfd62
Toward improved DatabaseRegion for joined requests
2018-05-01 17:20:37 +02:00
Gwendal Roué
66a425f718
Thread-safe table name disambiguation, via SQLGenerationContext. Merge SQLTableQualifier into TableAlias.
2018-05-01 14:44:51 +02:00
Gwendal Roué
5747d1cff0
No more #if swift(>=4.1)
2018-04-30 08:26:23 +02:00
Gwendal Roué
3e46942f30
Associations
2018-04-29 18:16:39 +02:00
Gwendal Roué
f4382e6bcb
Test that request.reversed() has no effect when request is not already ordered
2018-04-26 12:52:01 +02:00
Gwendal Roué
5ee390f0da
No more support for CodingKey & ColumnExpression
2018-04-23 08:19:15 +02:00
Gwendal Roué
f2ae44384f
Rename SQLColumnExpression to ColumnExpression
2018-04-22 18:13:47 +02:00
Gwendal Roué
e54ccdfc54
Tests for SQLColumnExpression
2018-04-22 14:56:51 +02:00
Gwendal Roué
29b364d5cb
Introduce SQLColumnExpression
2018-04-22 14:56:40 +02:00
Gwendal Roué
822ff97050
Tests for TableDefinition.autoIncrementedPrimaryKey
2018-04-21 19:41:45 +02:00
Gwendal Roué
729f6bdc6c
Tests for joined(operator:)
2018-04-21 17:05:03 +02:00
Gwendal Roué
4e57bf5a0e
Fix a youth error: DatabaseDateComponents initializer from DateComponents is no longer failable
2018-04-21 15:27:21 +02:00
Gwendal Roué
223d0a3fd3
Merge remote-tracking branch 'origin/development' into GRDB3
2018-04-21 15:20:36 +02:00