Commit Graph
152 Commits
Author SHA1 Message Date
Gwendal Roué 52b13da2b3 DatabaseTableMapping.databaseTableName() now returns a non-optional String 2015-12-10 13:23:45 +01:00
Gwendal Roué 4e183439b5 DatabasePersistable.didInsertWithRowID(_:forColumn:) is called even when there is no INTEGER PRIMARY KEY column. DatabaseTableMapping no longer extends RowConvertible. (#12) 2015-12-10 09:06:00 +01:00
Gwendal Roué c4fa174fad DatabasePersistable documentation (#12) 2015-12-10 08:14:36 +01:00
Gwendal Roué cc59f62420 Refactor DatabasePersistable so that all CRUD methods are dynamically dispatched. The protocol exposes default implementation for CRUD methods as statically dispatched method that are available for adopting types in their own implementations of CRUD methods. Introduce DatabasePersistable.save() (#12) 2015-12-10 08:09:36 +01:00
Gwendal Roué 8ed4f47f82 Remove reference to the databaseEdited flag from the DatabasePersistable documentation. 2015-12-09 08:57:07 +01:00
Gwendal Roué 22dd8e1c3a Introduce DatabasePersistable that grants CRUD methods to any type 2015-12-09 08:53:08 +01:00
Gwendal Roué c88440243f Fix error thrown by UpdateStatement 2015-12-03 07:48:25 +01:00
Gwendal Roué bb9117bdb6 Better collation implementation 2015-12-02 08:48:55 +01:00
Gwendal Roué da525b1856 Fix collations: sqlite does not provide \0 terminated C strings, but UTF8 buffers. 2015-12-02 08:29:55 +01:00
Gwendal Roué cc237560c6 Fix Statement.validateArguments: StatementArguments.Default is never valid. 2015-12-02 08:29:13 +01:00
Gwendal Roué bf48bd6ac2 Remove a bunch of self. 2015-12-01 09:07:55 +01:00
Gwendal Roué 0be1117bd0 Collations WIP 2015-11-20 14:17:33 +01:00
Gwendal Roué 186732fb05 Collations WIP 2015-11-20 14:12:03 +01:00
Gwendal Roué 195dbf518f Restore DatabaseValue and Row value() methods that return nil, Int64, Double, String or NSData. 2015-11-20 08:48:28 +01:00
Gwendal Roué cc1d6a300f Documentation 2015-11-20 08:41:59 +01:00
Gwendal Roué 4c8c9f8432 DatabaseValue exposes its SQLite storage, and adopts Hashable. 2015-11-20 08:34:22 +01:00
Gwendal Roué 5f0f6745a8 Functions 2015-11-19 14:01:47 +01:00
Gwendal Roué 6afcc59c05 Documentation 2015-11-19 08:29:05 +01:00
Gwendal Roué dbaff30da3 Documentation 2015-11-19 08:23:43 +01:00
Gwendal Roué ce42192334 Documentation 2015-11-19 08:20:28 +01:00
Gwendal Roué aad7218df6 Functions 2015-11-19 08:06:41 +01:00
Gwendal Roué 23a9322e5e Functions 2015-11-18 22:20:55 +01:00
Gwendal Roué a84014402b Functions 2015-11-18 20:54:18 +01:00
Gwendal Roué 865431c58a Functions 2015-11-18 18:18:31 +01:00
Gwendal Roué 32b9971cfa minor 2015-11-17 08:28:25 +01:00
Gwendal Roué c987a0a9af Statement validates its arguments before execution, not only in arguments property setter. Nil arguments are validated as well. 2015-11-17 08:26:15 +01:00
Gwendal Roué 7b315f99bd minor 2015-11-15 13:27:22 +01:00
Gwendal Roué 0cdeb09ab0 minor 2015-11-15 13:27:14 +01:00
Gwendal Roué a92f1c5c40 documentation 2015-11-15 13:27:05 +01:00
Gwendal Roué b179ce2437 minor 2015-11-15 13:26:55 +01:00
Gwendal Roué be0b55ffe7 minor 2015-11-15 13:26:12 +01:00
Gwendal Roué 0ada90777a minor 2015-11-15 13:25:58 +01:00
Gwendal Roué 3006ee4764 minor 2015-11-15 13:25:50 +01:00
Gwendal Roué 02f852cb89 Prevent StatementArguments.Default from being used as actual arguments 2015-11-14 13:45:41 +01:00
Gwendal Roué 1e3d9f16df StatementArguments.Default is used in place of nil for default parameter values. 2015-11-13 11:46:25 +01:00
Gwendal Roué 561ae52422 Turn initializers of DatabaseValue, Row, RowConvertible and StatementArguments from AnyObject, NSArray and NSDictionary to failable initializers. 2015-11-13 10:04:08 +01:00
Gwendal Roué 755327d721 Configuration documentation 2015-11-09 19:08:34 +01:00
Gwendal Roué b7147ba64c TransactionObserverType methods are no longer optional. 2015-11-05 14:37:39 +01:00
Gwendal Roué 9086c5b61d Fix documentation typo 2015-11-04 22:32:34 +01:00
Gwendal Roué 136a9fe6f6 Database.inTransaction() 2015-11-04 22:31:19 +01:00
Gwendal Roué 034b8b8a7c DatabaseQueue.inQueue is private 2015-11-04 22:13:20 +01:00
Gwendal Roué 6934efd98c Unify primary key and other key fetching methods 2015-10-31 08:38:37 +01:00
Gwendal Roué 0123d22812 Declare DatabaseGenerator.next() as mutating 2015-10-31 08:33:12 +01:00
Gwendal Roué e4f10c8beb Better fetch() vs. fetchAll() documentation and runtime warning. 2015-10-29 08:48:28 +01:00
Gwendal Roué 99ec2a1128 DatabaseTableMapping.fetch(_:keys:) tests WIP 2015-10-27 14:02:57 +01:00
Gwendal Roué 3516036bbc Code cleanup 2015-10-27 10:32:18 +01:00
Gwendal Roué 84f422fdd0 DatabaseTableMapping.fetch(_:primaryKeys:), DatabaseTableMapping.fetchAll(_:primaryKeys:) arguments are generic sequences of non-optionals. 2015-10-27 10:28:04 +01:00
Gwendal Roué 771d790765 Documentation 2015-10-27 09:02:56 +01:00
Gwendal Roué 8879aa562d DatabaseTableMapping.fetch(_:primaryKeys:), DatabaseTableMapping.fetchAll(_:primaryKeys:) arguments are arrays of optionals 2015-10-27 08:51:28 +01:00
Gwendal Roué 18306fcd64 Use /// for documentation comments, since Xcode 7 has weird behavior with /** 2015-10-27 08:30:24 +01:00