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é
bad862ba16
Remove all mentions of GRDBPlus
2019-03-08 12:40:00 +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
Gwendal Roué
32f6a45e8f
SE-0209: support both swift 4.2 and 5
2019-03-07 20:54:42 +01:00
Gwendal Roué
519fa9a41a
Don't codesign GRDBCipherMacOS test app
2019-03-07 18:34:19 +01:00
Gwendal Roué
7d0b5cf03c
Don't codesign GRDBFTS5MacOS test app
2019-03-07 18:32:30 +01: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
Gwendal Roué
4aecad3649
Failing test for https://github.com/groue/GRDB.swift/issues/495
2019-03-06 21:58:36 +01: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é
bd633e25ee
Aggregate tests for HasManyThroughAssociation
2019-03-06 08:17:47 +01:00
Gwendal Roué
13985d0553
Merge branch 'GRDB-4.0' into feature/HasOneThroughAssociation
2019-03-05 18:40:12 +01:00
Gwendal Roué
223ed4c73c
Merge branch 'GRDB-4.0' into feature/SQLite-3.27.2
2019-03-05 08:00:53 +01:00
Gwendal Roué
addfa45d3a
hasMany(_:through:using:)
2019-03-04 08:52:07 +01:00
Gwendal Roué
6489c80846
hasOne(_:through:using:)
2019-03-04 08:49:03 +01:00
Gwendal Roué
9e8e00ff99
AssociationHasManySQLTests
2019-03-04 08:06:50 +01:00
Gwendal Roué
9ee25fdec1
Rename ToOneAssociation to AssociationToOne
2019-03-04 08:01:45 +01:00
Gwendal Roué
4d5e5e1de3
HasManyThroughAssociation
2019-03-03 18:35:05 +01:00
Gwendal Roué
66c72e7bd2
HasOneThroughAssociation request tests
2019-03-03 15:29:27 +01:00
Gwendal Roué
eed30c0954
AssociationHasOneThroughDecodableRecordTests
2019-03-03 09:21:49 +01:00