Gwendal Roué
623f2eaf43
First tests for consumption of prefetched rows
2019-05-05 13:54:55 +02:00
Gwendal Roué
217b7eee9f
AssociationHasManyPrefetchingSQLTests cleanup
2019-05-04 22:04:22 +02:00
Gwendal Roué
f1522c09b5
AssociationHasManyPrefetchingSQLTests cleanup
2019-05-04 22:00:37 +02:00
Gwendal Roué
b00271ad80
AssociationHasManyPrefetchingSQLTests cleanup
2019-05-04 21:45:29 +02:00
Gwendal Roué
d7b4cf364d
More passing prefetch tests
2019-05-04 21:35:06 +02:00
Gwendal Roué
7ef5669710
More passing prefetch tests
2019-05-04 21:28:59 +02:00
Gwendal Roué
ce782cecac
More passing prefetch tests
2019-05-04 21:04:55 +02:00
Gwendal Roué
a7431403a5
AssociationHasManyPrefetchingSQLTests cleanup
2019-05-04 20:39:56 +02:00
Gwendal Roué
4b82656d3a
More passing prefetch tests
2019-05-04 17:20:56 +02:00
Gwendal Roué
2ca2f11883
First prefetch and passing tests
2019-05-04 17:02:19 +02:00
Gwendal Roué
820db3f07d
Refactor SQLAssociation
...
# Conflicts:
# GRDB/QueryInterface/Association/Association.swift
2019-05-02 20:34:10 +02:00
Gwendal Roué
c37ccb6448
Test for PRAGMA cipher_compatibility
2019-04-21 13:46:05 +02:00
Gwendal Roué
2a72d08334
Restore Database.logError
2019-04-21 12:59:12 +02:00
Gwendal Roué
95274c57dd
SQLCipher 4: adapt tests for past-error Cursor.next()
2019-04-20 15:32:01 +02:00
Gwendal Roué
e55a5bd1d0
SQLCipher can't backup encrypted databases
2019-04-20 15:29:43 +02:00
Gwendal Roué
1c1ee4e92a
GRDBCipher is no longer. Long live GRDB.swift/SQLCipher.
2019-04-19 13:11:55 +02:00
Gwendal Roué
1f50b4fefe
Integrate SQLCipher as a CocoaPod
2019-04-19 08:33:19 +02:00
Gwendal Roué
2711b9bb04
Merge branch 'GRDB-4.0' into feature/fetchOne-limit-1
2019-04-18 07:01:03 +02:00
Gwendal Roué
3f8047fc0e
Tests for the singleResult hint and SQLRequest.init(_:request:)
2019-04-17 21:32:47 +02:00
Gwendal Roué
a12830050b
Tests for the singleResult hint and databaseRegion
2019-04-17 21:32:13 +02:00
Gwendal Roué
21c0175a71
Tests for the singleResult hint and fetchCount
2019-04-17 21:31:53 +02:00
Gwendal Roué
65fe2bb50c
Tests for the singleResult hint and fetching methods
2019-04-17 21:31:30 +02:00
Gwendal Roué
e3a0935914
Add SQL tests for all record testFetchOne…() methods
...
We usually update all those tests together
2019-04-17 14:01:16 +02:00
Gwendal Roué
693e6da773
Do not test that fetchOne does not add LIMIT 1 to raw SQL requests
...
We do not add LIMIT 1 to raw SQL requests because it is difficult. But it would not be wrong to do so.
2019-04-17 13:08:51 +02:00
Alex Robinson
235a612ce0
Remove LIMIT 1 from expected SQL when filtering by key
...
Tests now fail
2019-04-16 10:29:40 +10:00
Alex Robinson
7070dedf1a
Replace FetchRequestHint with a boolean for single results
...
Fixes previous test failure
2019-04-16 10:20:36 +10:00
Alex Robinson
20aecd5328
Add failing test for fetchOne with a non-zero offset
2019-04-16 10:20:36 +10:00
Gwendal Roué
9b24671043
Disable #514 failing tests
2019-04-11 08:14:04 +02:00
Alex Robinson
dd139b6268
Fix testing lastSQLQuery when a cursor hasn't retrieved a record
...
This problem was masked by the fact all queries in the test expected the same SQL query.
2019-04-11 13:19:04 +10:00
Alex Robinson
072fa2583a
Add hints for use in request preparation
...
Hints are ignored by SQLRequest. When you write raw SQL you probably don't want GRDB to modify your query.
2019-04-11 13:14:41 +10:00
Alex Robinson
af1fd6b90c
More tests for presence of LIMIT 1
2019-04-11 13:08:29 +10:00
Alex Robinson
f9868bd8b5
Update tests to expect "LIMIT 1" where appropriate
...
Tests currently fail
2019-04-11 11:51:16 +10:00
Gwendal Roué
00ae2de14e
Another failing test for #514
2019-04-10 19:54:44 +02:00
Gwendal Roué
a6cbd242e6
Add a failing test forr #514
2019-04-10 19:29:50 +02:00
Gwendal Roué
db34d9537b
Remove more useless failing tests
2019-04-10 07:49:06 +02:00
Gwendal Roué
94316540de
Remove useless failing tests
...
They were failing because database initialization now uses high level methods which throw detailed errors.
2019-04-09 20:01:22 +02:00
Gwendal Roué
a0f37c6e85
Simplify Database.validateFormat()
2019-04-09 19:56:01 +02:00
Michael Kirk
99065a4faf
prepareDB block
2019-04-02 10:47:31 -06:00
Gwendal Roué
53e513f1f8
Merge branch 'GRDB-4.0' into feature/aggregate-ifnull
...
# Conflicts:
# CHANGELOG.md
2019-03-15 07:58:42 +01:00
Gwendal Roué
39800b1257
IFNULL support for aggregates
2019-03-14 07:21:09 +01:00
Gwendal Roué
7183457217
Rename Future to DatabaseFuture
2019-03-14 06:43:40 +01:00
Gwendal Roué
4bae8e9ac5
More request(for:association) tests
2019-03-13 08:33:14 +01:00
Gwendal Roué
4ae1fb11cc
Extract EncodableRecord from MutablePersistableRecord
...
This fixes issue #426
2019-03-10 14:00:01 +01: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
Gwendal Roué
adc4aa7c41
Merge pull request #497 from Marus/sqlcipher_config_options
...
Add additional SQLCipher configuration options
2019-03-08 08:40:39 +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