Commit Graph
491 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é 0853c1c419 v0.32.2 2015-12-03 07:58:35 +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é 921c66abf3 v0.32.1 2015-12-02 08:32:35 +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é 9002502163 Minor 2015-12-01 23:07:17 +01:00
Gwendal Roué 49747c58f1 Performance tests for KVC-based objects 2015-12-01 21:59:34 +01:00
Gwendal Roué bf48bd6ac2 Remove a bunch of self. 2015-12-01 09:07:55 +01:00
Gwendal Roué 6c1ee933f7 v0.32.0 2015-11-23 12:58:46 +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é 6218ed2bac v0.31.0 2015-11-19 14:37:56 +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é 6496f271d2 v0.30.0 2015-11-17 08:57:04 +01:00
Gwendal Roué 32b9971cfa minor 2015-11-17 08:28:25 +01:00
Gwendal Roué c8cf0df6e1 DatabaseValue.toAnyObject(), Row.toNSDictionary() 2015-11-17 08:27:48 +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é 2b31a22f09 v0.29.0 2015-11-14 13:50:39 +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é 12d786f810 v0.28.0 2015-11-13 07:58:36 +01:00
Gwendal Roué 755327d721 Configuration documentation 2015-11-09 19:08:34 +01:00
Gwendal Roué a0c5f7b65f Run all migrations in a single database queue block. 2015-11-08 08:03:00 +01:00
Gwendal Roué b7147ba64c TransactionObserverType methods are no longer optional. 2015-11-05 14:37:39 +01:00
Gwendal Roué 599f6d8c89 DatabaseMigrator cleanup 2015-11-05 08:57:48 +01:00