Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GRDB 4.0 #479

Merged
merged 537 commits into from
May 23, 2019
Merged

GRDB 4.0 #479

merged 537 commits into from
May 23, 2019

Conversation

groue
Copy link
Owner

@groue groue commented Feb 17, 2019

The next major version GRDB 4 aims at supporting the Swift 5.0 compiler.

alextrob and others added 21 commits April 16, 2019 10:20
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) }
This better hides this flag inside SQLSelectQuery, and avoids explicit support from FetchableRecord and TableRecord
We do not add LIMIT 1 to raw SQL requests because it is difficult. But it would not be wrong to do so.
We usually update all those tests together
@groue groue marked this pull request as ready for review May 23, 2019 11:10
@groue groue merged commit d7d3f87 into development May 23, 2019
@groue groue deleted the GRDB-4.0 branch June 13, 2019 02:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants