From aaf2ee41495cf03639a7f9731f4a708fd7dbfe4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Tue, 29 Sep 2015 08:18:26 +0200 Subject: [PATCH] Remove comparison code snippets --- README.md | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/README.md b/README.md index 306ec33d6..327cbe48e 100644 --- a/README.md +++ b/README.md @@ -60,37 +60,6 @@ dbQueue.inDatabase { db in **Users of [stephencelis/SQLite.swift](https://github.com/stephencelis/SQLite.swift)** may eventually find that a straightforward API around SQL is not a bad alternative. -```swift -// GRDB -let users = dbQueue.inDatabase { db in - User.fetchAll(db, - "SELECT * FROM users WHERE email LIKE ? ORDER BY lastModified DESC", - arguments: ["%@mac.com"]) -} - -// SQLite.swift -let users = UserTable - .filter(emailColumn.like("%@mac.com")) - .order(lastModifiedColumn.desc) - .map { User(dictionary: dictionaryFromRow($0)) } - -// FMDB -var users: [User] = [] -dbQueue.inDatabase { db in - if let rs = db.executeQuery( - "SELECT * FROM users WHERE email LIKE ? ORDER BY lastModified DESC", - withArgumentsInArray: ["%@mac.com"]) - { - while rs.next() { - users.append(User(dictionary: rs.resultDictionary())) - } - } else { - // Handle error - } -} -``` - - Benchmarks ----------