Commit Graph
44 Commits
Author SHA1 Message Date
Gwendal Roué deb25d916d Merge branch 'master' into FetchedRecordsController
Conflicts:
	TODO.md
2016-03-26 07:36:59 +01:00
Gwendal Roué bb5aa47d7b Tests for Row.databaseValue(atIndex:) and Row.databaseValue(named:) 2016-03-25 20:16:31 +01:00
Gwendal Roué 5ed3b39219 Rename DatabaseValue.unsafeValue() to failableValue() 2016-03-25 18:46:24 +01:00
Gwendal Roué ee55afe8c0 Row.value() no longer turns non-NULL values to nil, should the conversion fail. 2016-03-25 18:28:42 +01:00
Gwendal Roué 6bfab3d04a DatabaseValue.value() no longer turns non-NULL values to nil, should the conversion fail. The new method DatabaseValue.unsafeValue() has the old, information-discarding, behavior. 2016-03-25 13:56:38 +01:00
Gwendal Roué b24c872b52 RowConvertible.awakeFromFetch loses its database argument. FetchedRecordsController lazily instantiates records. 2016-03-23 13:44:05 +01:00
Gwendal Roué 32461d221a Merge commit '7de27389aa89f731b977e2d046c8b12ff2191e5d' into FetchedRecordsController 2016-03-22 21:06:04 +01:00
Gwendal Roué e3ee49a868 FetchedRecordsController: properly serialize computations, require client access from main thread, fix known crashers 2016-03-21 14:08:36 +01:00
Gwendal Roué c6f96906ca Avoid build errors by using ad-hoc Swift modules that import the right sqlite3 header depending on the platform (MacOSX, iPhoneOS, iPhoneSimulator). 2016-03-17 08:54:09 +01:00
Gwendal Roué a308ffebeb Merge branch 'master' of github.com:groue/GRDB.swift into Swift2.2 2016-03-17 08:02:06 +01:00
Gwendal Roué 63545c1f08 Documentation 2016-03-15 19:05:04 +01:00
Gwendal Roué 218d7a7f15 DatabaseStore: fix a race condition that could make us miss file attributes 2016-03-14 09:59:33 +01:00
Gwendal Roué 19da676caf Configuration.fileAttributes: apply file attributes to database files 2016-03-13 14:16:17 +01:00
Gwendal Roué c8afca6485 Tests for DatabaseQueue.execute() and DatabasePool.execute() 2016-03-12 08:46:58 +01:00
Gwendal Roué 9e9fafcc5c Documentation 2016-03-12 08:21:17 +01:00
Gwendal Roué 8221ff520c Tests for DatabasePool and DatabaseQueue as DatabaseWriter 2016-03-11 19:15:23 +01:00
Gwendal Roué 18b996e5bd Persistable.delete() uses DatabaseWriter instead of Database 2016-03-11 18:56:09 +01:00
Gwendal Roué 50cc857a3a Persistable.save() uses DatabaseWriter instead of Database 2016-03-11 18:51:34 +01:00
Gwendal Roué ea04588865 Persistable.update() uses DatabaseWriter instead of Database 2016-03-11 18:47:03 +01:00
Gwendal Roué 47d1202e57 Introduce DatabaseWriter 2016-03-11 18:42:02 +01:00
Gwendal Roué 61f944fdaa Cleanup 2016-03-11 18:12:42 +01:00
Gwendal Roué 479308637d Test that read-only DatabasePool has concurrent reads, without activating the WAL mode 2016-03-11 17:21:11 +01:00
Gwendal Roué eb513e87d2 Transaction observers are now added to database queues and pools 2016-03-11 17:08:31 +01:00
Gwendal Roué 5fd2212278 DatabaseReader WIP 2016-03-11 08:13:10 +01:00
Gwendal Roué 7364d99b6b WIP 2016-03-10 18:51:08 +01:00
Gwendal Roué 1fcc8c764f Custom SQL functions are collations are now added to database queues and pools. 2016-03-10 13:50:47 +01:00
Gwendal Roué 6bd8f79399 DatabasePool read() method opens a DEFERRED transaction so that it won’t let the writer alter the database state between two select statement. 2016-03-09 21:45:20 +01:00
Gwendal Roué e0031ddc42 DatabasePool concurrency tests 2016-03-09 19:29:45 +01:00
Gwendal Roué 526e065e7d Database schema cache tests for DatabasePool and DatabaseQueue 2016-03-09 18:15:18 +01:00
Gwendal Roué 5acc3cd03f Test for SQLITE_READONLY error (when attempting to modify a read-only database) 2016-03-09 15:41:52 +01:00
Gwendal Roué 648dbf7e25 Replace let _ = ... with _ = ... 2016-03-09 15:27:30 +01:00
Gwendal Roué 07652429a3 DatabasePoolTests WIP 2016-03-09 08:54:44 +01:00
Gwendal Roué cdc102de70 Remove DatabaseRawRepresentable since DatabaseValueConvertible is enough. 2016-02-28 22:14:49 +01:00
Gwendal Roué fd1067b41f Replace DatabaseIntRepresentable, DatabaseInt32Representable, DatabaseInt64Representable and DatabaseStringRepresentable with DatabaseRawRepresentable. 2016-02-28 20:28:10 +01:00
Gwendal Roué d74cf435ed Swift2.2 2016-02-10 19:09:28 +01:00
Gwendal Roué 1db2d6f5d0 Database holds weak references to its transaction observers 2016-02-09 21:02:09 +01:00
Gwendal Roué d6cf23ab78 Declare Database.selectStatement and Database.updateStatement as @warn_unused_result 2016-02-09 07:47:42 +01:00
Gwendal Roué b60daca055 Fix case-insensitive lookup of the leftmost column in a row 2016-02-07 17:31:15 +01:00
Gwendal Roué 94e4fa42bf DatabaseValue adopts StatementColumnConvertible. Stronger tests for DatabaseValue adoption of StatementColumnConvertible and DatabaseValueConvertible. 2016-02-07 12:44:09 +01:00
Gwendal Roué 8cdacf3899 Rename SQLiteStatementConvertible to StatementColumnConvertible + Project organization 2016-02-07 08:51:28 +01:00
Gwendal Roué 9cc0faee2f Ignore trailing whitespace in Database.execute(sql) and Database.updateStatement(sql) instead of letting SQLite parse it as erroneous SQL. 2016-02-04 11:49:45 +01:00
Gwendal Roué 06a3fa8338 Prefer declaring protocol adoptions in extensions 2016-02-01 08:14:28 +01:00
Gwendal Roué b85b958127 Turn RowConvertible.fromRow(_:Row) into RowConvertible.init(_:Row) 2016-02-01 07:57:54 +01:00
Gwendal Roué f44ae2848f Project organization
Project organization

README.md

WIP QueryBuilder documentation

README.md

WIP QueryBuilder documentation

WIP QueryBuilder documentation

TODO.md
2016-01-28 08:43:25 +01:00