# New release: GRDB 4.0.0

**URL:** <https://forums.swift.org/t/new-release-grdb-4-0-0/24798>\
**Category:** GRDB\
**Created:** [May 23, 2019, 6:42pm UTC](https://forums.swift.org/t/new-release-grdb-4-0-0/24798 "2019-05-23T18:42:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gwendal.roue](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/gwendal.roue/32/13992_2.png) [@gwendal.roue](https://forums.swift.org/u/gwendal.roue)\
**Post date:** [May 23, 2019, 6:42pm UTC](https://forums.swift.org/t/new-release-grdb-4-0-0/24798/1 "2019-05-23T18:42:39Z")

</div>

Hello Swift Community,

Version 4.0.0 of GRDB, the toolkit for SQLite databases, is out!

This release is focused on **Swift 5** , and **enhancements on associations between record types**.

- [Release Notes](https://github.com/groue/GRDB.swift/blob/master/CHANGELOG.md#400)
- [Migrating From GRDB 3 to GRDB 4](https://github.com/groue/GRDB.swift/blob/master/Documentation/GRDB3MigrationGuide.md)

What's new?

- [Associations](https://github.com/groue/GRDB.swift/blob/master/Documentation/AssociationsBasics.md), which let you define links between record types, are now able to eager load "to-many" relationships.

- [Associations](https://github.com/groue/GRDB.swift/blob/master/Documentation/AssociationsBasics.md) have also improved their support for many-to-many relationships:

- [SQL Interpolation](https://github.com/groue/GRDB.swift/blob/master/Documentation/SQLInterpolation.md), based on [SE-0228](https://github.com/apple/swift-evolution/blob/master/proposals/0228-fix-expressiblebystringinterpolation.md), lets you write SQL queries with a natural syntax. For example:

- Check the [Release Notes](https://github.com/groue/GRDB.swift/blob/master/CHANGELOG.md#400) for a full list of improvements and other changes.

Happy [GRDB](https://github.com/groue/GRDB.swift)!

---

<div class="post-metadata">

**Author:** ![gwendal.roue](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/gwendal.roue/32/13992_2.png) [@gwendal.roue](https://forums.swift.org/u/gwendal.roue)\
**Post date:** [May 25, 2019, 9:29pm UTC](https://forums.swift.org/t/new-release-grdb-4-0-0/24798/2 "2019-05-25T21:29:37Z")

</div>

Version [4.0.1](https://github.com/groue/GRDB.swift/blob/master/CHANGELOG.md#401) is already out, with a bugfix, support for CocoaPods 1.7.0, and an enhanced [Good Practices for Designing Record Types](https://github.com/groue/GRDB.swift/blob/master/Documentation/GoodPracticesForDesigningRecordTypes.md) guide.
