Ed Burns
5546961c8c
Test fixes and cleanup.
2020-12-17 17:10:39 -06:00
Ed Burns
d09571c0ad
Added option to specify passphrase as a Data object, added section to README.
2020-12-17 11:19:05 -06:00
Gwendal Roué
18e09ec061
Configuration.prepareDatabase updates
2020-09-06 14:06:25 +02:00
Gwendal Roué
130e510f8c
Remove deprecated passphrase methods
2020-03-08 16:00:19 +01:00
Gwendal Roué
9a69dbd8a1
Remove testDatabaseQueueWithPassphraseToDatabaseQueueWithWrongPassphraseAndRetry
2019-09-03 13:26:16 +02:00
Gwendal Roué
55d4a9c029
Test for attempting several passphrases
2019-09-03 08:56:16 +02:00
Gwendal Roué
b9e2f35728
Deprecate change(passphrase:), and provide an alternative solution
2019-09-02 09:05:37 +02:00
Gwendal Roué
6fc7794e64
Restore testDeprecatedPassphrase
2019-09-02 08:38:15 +02:00
Gwendal Roué
9f26777cc3
prepareDatabase did not need to be deprecated, after all
2019-09-02 08:38:15 +02:00
Gwendal Roué
aded6d206d
Failing test for change(passphrase:)
2019-09-02 08:38:15 +02:00
Gwendal Roué
d644f01557
Deprecate Configuration.passphrase, introduce Database.usePassphrase(_:)
2019-09-02 08:38:15 +02:00
Gwendal Roué
d8b0b95842
DatabaseConfiguration.onConnect
2019-09-02 08:37:28 +02:00
Gwendal Roué
c37ccb6448
Test for PRAGMA cipher_compatibility
2019-04-21 13:46:05 +02:00
Gwendal Roué
1c1ee4e92a
GRDBCipher is no longer. Long live GRDB.swift/SQLCipher.
2019-04-19 13:11:55 +02:00
Gwendal Roué
db34d9537b
Remove more useless failing tests
2019-04-10 07:49:06 +02:00
Michael Kirk
99065a4faf
prepareDB block
2019-04-02 10:47:31 -06:00
Gwendal Roué
9500a74744
Merge branch 'development' into GRDB-4.0
...
# Conflicts:
# .travis.yml
# CHANGELOG.md
# GRDB/QueryInterface/SQLSelectQueryGenerator.swift
# GRDB/Utils/OrderedDictionary.swift
# README.md
2019-03-10 12:16:08 +01:00
Gwendal Roué
211ac7aada
Make Configuration.cipherPageSize an Int
...
As said in https://github.com/groue/GRDB.swift/issues/498#issuecomment-471156347
2019-03-09 13:38:28 +01:00
Marcel Ball
6543d75f6d
Updated based upon feedback from @groue
...
- Renamed `KDFIternations` to `kdfIterations` to better fit naming conventions
- In case of errors setting values return the sqlite error code and message instead of .SQLITE_MISUSE and a generic message
- Fixed formatting/typos in documentation
2019-03-07 17:51:16 -04:00
Marcel Ball
8ca9839433
Cleanup of some things leftover from debugging/testing
2019-03-06 21:31:37 -04:00
Marcel Ball
8415e8c2a0
Rename parameter to better align with the SQLCipher PRAGMA
2019-03-06 20:58:55 -04:00
Marcel Ball
d4eb7ba27b
Added configuration options to GRDBcipher for kdf_iterations
2019-03-06 20:41:38 -04:00
Marcel Ball
090eea9923
Update naming for the enumeration to be clearer
2019-03-06 20:41:01 -04:00
Marcel Ball
cf128ac800
Added configuration option to set cipher_page_size on connection
...
* Defaults to 1024 - which is the default in SQLCipher
2019-03-06 16:50:55 -04:00
Gwendal Roué
db67d3840b
Principle of least astonishment: rrename argument label rawSQL to sql
2019-02-17 13:28:41 +01:00
Gwendal Roué
c546c578ce
fetchCursor/All/One(_:rawSQL:arguments:adapter:)
2019-02-17 13:28:40 +01:00
Gwendal Roué
59162d93de
Rename Database.execute(_:String) to Database.execute(rawSQL:String)
2019-02-17 13:27:54 +01: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é
13623575ff
Fix encryption tests broken by 681460a415
2017-11-07 17:21:32 +01:00
Gwendal Roué
1fb7f9ff5b
Disable query tracing inside EncryptionTests.testExportPlainTextDatabaseToEncryptedDatabase (workaround https://github.com/sqlcipher/sqlcipher/issues/216 )
2017-05-28 11:40:26 +02:00
Gwendal Roué
7eecb059e6
Disable EncryptionTests.testExportPlainTextDatabaseToEncryptedDatabase until https://github.com/sqlcipher/sqlcipher/issues/216 is fixed
2017-05-28 11:40:26 +02:00
Gwendal Roué
e54cec9123
Move tests to Swift Package Manager test target
2017-04-23 15:47:16 +02:00