Wolfgang Lutz
8fcabb5b73
fix typos in documentation
2019-04-26 11:50:22 +02:00
Gwendal Roué
2a72d08334
Restore Database.logError
2019-04-21 12:59:12 +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é
4716f91d8b
Bake the single result expectation right into filter(key:) methods
...
This better hides this flag inside SQLSelectQuery, and avoids explicit support from FetchableRecord and TableRecord
2019-04-16 08:47:50 +02:00
Gwendal Roué
46791c8f74
Remove QueryInterfaceRequest.init(query:)
2019-04-16 07:56:44 +02:00
Alex Robinson
e2211aca21
Exclude LIMIT 1 in more cases
...
Adds a flag to SQLSelectQuery indicating that it expects a single record (for example when querying by primary or unique key).
Ensures that this example doesn't add an unnecessary LIMIT 1 to the resulting query:
let request = Player.filter(key: 123) // or Player.filter(key: ["email": "me@example.com "])
let player = try dbQueue.read { db in try request.fetchOne(db) }
2019-04-16 11:10:43 +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
088f6c92c7
Update inline docs
2019-04-11 13:50:57 +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
Gwendal Roué
3ca7647110
Merge branch 'GRDB-4.0' into mkirk/GRDB-4.0-sqlcipher-cipher_compatibility
...
# Conflicts:
# CHANGELOG.md
2019-04-09 20:25:22 +02:00
Gwendal Roué
2c4a449c5b
Fix prepareDatabase sample code and markdown layout
2019-04-09 20:23:08 +02:00
Gwendal Roué
49d92dc6ce
Three slashes for documentation comment
2019-04-09 20:21:34 +02:00
Gwendal Roué
d52fcbe0c9
Fixits for Configuration.cipherPageSize and kdfIterations
2019-04-09 20:21:17 +02:00
Gwendal Roué
b67a53e645
whitespace
2019-04-09 19:57:22 +02:00
Gwendal Roué
a0f37c6e85
Simplify Database.validateFormat()
2019-04-09 19:56:01 +02:00
Gwendal Roué
82dc51c554
Document prepareDatabase call site
...
Because it willl be easy to forget the context of #508 when we read this code in the future
2019-04-09 19:55:45 +02:00
Gwendal Roué
6115078e95
Simplify Database.validateSQLCipher()
2019-04-09 19:46:58 +02:00
Gwendal Roué
8d35330e12
whitespace
2019-04-09 19:40:27 +02:00
Gwendal Roué
212290bbf9
Make DatabaseRegion documentation less detailed
2019-04-09 19:23:50 +02:00
Matthew Chen
0561b7de5d
Respond to CR.
2019-04-05 09:50:07 -04:00
Matthew Chen
9f41277bd4
Make more DatabaseRegion initializers public; elaborate docs.
2019-04-05 09:47:08 -04:00
Matthew Chen
9f4cad4134
Make DatabaseRegion initializer public to enable observation of tables.
2019-04-05 09:47:08 -04:00
Michael Kirk
747a6352d6
example docs
2019-04-04 16:03:30 -06:00
Matthew Chen
325b376f4c
Fix notification name.
2019-04-04 18:01:12 -04:00
Michael Kirk
29c1c5481c
inline setupConnection, re-order method calls to call validateFormat later, convert static->instance methods where possible
2019-04-04 15:55:53 -06:00
Michael Kirk
ebc7a9d8e0
fix #if scope
2019-04-04 15:42:19 -06:00
Michael Kirk
99065a4faf
prepareDB block
2019-04-02 10:47:31 -06:00
Gwendal Roué
900134729a
Where has count(where:) gone?
2019-03-16 15:31:00 +01:00
Gwendal Roué
d888423676
Fix outdated documentation
2019-03-16 14:32:10 +01:00
Gwendal Roué
eac38be34b
Fix for Swift 5
2019-03-16 14:26:06 +01:00
Gwendal Roué
f42a184401
Merge pull request #503 from groue/feature/aggregate-ifnull
...
IFNULL support for association aggregates
2019-03-15 13:06:56 +01:00
Gwendal Roué
5fbf56c373
KISS
2019-03-15 08:51:02 +01:00
Gwendal Roué
784ebcc8e9
Tighten SQLJoin
2019-03-15 08:41:57 +01:00
Gwendal Roué
df84654554
Delete unused code
2019-03-15 08:23:08 +01: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é
0074adc023
Merge pull request #502 from groue/feature/rename-future
...
Rename Future to DatabaseFuture
2019-03-15 07:56:56 +01:00
Gwendal Roué
ca8987ad98
Remove ill-advised TODOs
2019-03-14 07:57:30 +01:00
Gwendal Roué
6460f639ee
Cleanup: SQLRelation, JoinOperator, JoinCondition are no longer public
2019-03-14 07:54:45 +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é
cf4e512894
Documentation
2019-03-13 21:24:54 +01:00
Gwendal Roué
cf837855f2
HasManyThroughAssociation and HasOneThroughAssociation doc
2019-03-13 21:19:13 +01:00
Gwendal Roué
916d3931aa
Cleanup SQLAssociation
2019-03-13 20:47:55 +01:00
Gwendal Roué
05258b1098
Fix SPM build
2019-03-10 15:21:39 +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é
d60b68ab8a
Document the BusyMode.timeout unit ( #498 )
2019-03-09 12:45:11 +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