Commit Graph
177 Commits
Author SHA1 Message Date
Pascal Edmond 32f73fb816 merge 2015-12-16 16:25:05 +01:00
Gwendal Roué ebb52d9486 Rename persistedDictionary to persistentDictionary 2015-12-16 13:41:22 +01:00
Gwendal Roué 3deedffb77 Rename databaseEdited to hasPersistentChangedValues 2015-12-16 13:37:02 +01:00
Gwendal Roué 1534ac4828 Rename DatabasePersistable.storedDatabaseDictionary to persistedDictionary 2015-12-16 13:14:41 +01:00
Gwendal Roué 6dc96d71ee DatabaseValue initializers from Int64, Double, String and NSData now have an unlabelled argument. 2015-12-16 12:26:55 +01:00
Gwendal Roué 5dc22f6dd7 More compliance to Swift 3 API Design Guidelines 2015-12-16 12:09:04 +01:00
Gwendal Roué 334fb00864 Record.init(row: Row) -> Record.init(_ row: Row) 2015-12-16 11:56:02 +01:00
Pascal Edmond 587fc99023 Merge branch 'master' of https://github.com/groue/GRDB.swift into FetchedRecordsController 2015-12-15 12:01:14 +01:00
Gwendal Roué 7a3795acc9 Row.value(atIndex:) reliably crashes when index is out of range. 2015-12-15 08:25:43 +01:00
Gwendal Roué ca1ab4478b Row.value(named:) returns nil if column is not there. 2015-12-15 06:50:03 +01:00
Gwendal Roué 77e8641c32 Documentation 2015-12-14 07:52:37 +01:00
Gwendal Roué e84a96d343 Minor 2015-12-14 07:52:34 +01:00
Gwendal Roué 6b22342bb5 Minor 2015-12-14 07:37:40 +01:00
Gwendal Roué a6299e7b9b Minor 2015-12-14 07:33:05 +01:00
Gwendal Roué 93e7dc8709 Make DatabaseValueConvertible a subprotocol of RowConvertible. Drop RowConvertible dictionary initializers. 2015-12-14 06:48:38 +01:00
Pascal Edmond 8fadc40656 Merge branch 'master' of https://github.com/groue/GRDB.swift into FetchedRecordsController 2015-12-11 14:22:21 +01:00
Gwendal Roué 1f3f2d04eb Instead of disabling schema cache throughout the migrations, clear the schema cache after each migration. 2015-12-11 13:05:10 +01:00
Gwendal Roué c5913542f0 DatabasePersistable WIP 2015-12-11 07:05:45 +01:00
Gwendal Roué 21fc6938ca MutableDatabasePersistable documentation 2015-12-10 22:05:13 +01:00
Gwendal Roué ed22876b1d Introduce MutableDatabasePersistable 2015-12-10 21:50:46 +01:00
Gwendal Roué 00fb558db8 TODO.md 2015-12-10 18:20:47 +01:00
Gwendal Roué e9c55f47c6 Database.clearSchemaCache(). Migrations are run with disabled schema cache. 2015-12-10 14:24:55 +01:00
Gwendal Roué 39ff90474c DatabasePersistable documentation (#12) 2015-12-10 13:33:25 +01:00
Gwendal Roué cfd5abc1a7 Documentation 2015-12-10 13:28:34 +01:00
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
Pascal Edmond 0139618f37 WIP : Welcome FetchedRecordsController 2015-12-09 18:15:45 +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