From 845e85b611497f86f144be23975fc6e9a831fc90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sun, 5 Jul 2015 23:21:14 +0200 Subject: [PATCH] README.md --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7e0a2730a..6b888ff7f 100644 --- a/README.md +++ b/README.md @@ -504,6 +504,7 @@ class Person : RowModel { ``` - [Loading](#loading) +- [Ad Hoc Subclasses](#ad-hoc-subclasses) - [Primary Keys](#primary-keys) - [Insert, Update and Delete](#insert-update-and-delete) @@ -561,7 +562,9 @@ for person in persons { ... } // OK ``` -**Subclass with ad-hoc classes** when iterating custom queries. +### Ad Hoc Subclasses + +Swift makes it very easy to create small and private types. This is a wonderful opportunity to create **ad hoc subclasses** that provide support for custom queries. We think that this is the killer feature of GRDB.swift :bowtie:. For example: