Created
December 25, 2014 11:46
-
-
Save ChristianKienle/2ec32307c127990f5965 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Foundation | |
| public class Statement {} | |
| public protocol Bindable { | |
| func bindTo(statement:Statement, atIndex:Int32) -> Bool | |
| } | |
| public enum UpdateResult { | |
| case Success | |
| } | |
| public class Database { | |
| func executeUpdate<T: Bindable>(query:String, arguments:[T]) -> UpdateResult { | |
| return .Success | |
| } | |
| } | |
| println("Hello, World!") | |
| let db = Database() | |
| db.executeUpdate("Hello", arguments: Array<Bindable>()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment