Commit Graph
1676 Commits
Author SHA1 Message Date
Gwendal Roué c558d8fcaa Query interface: fix SQL generation for boolean tests
For example,`valid == true` now generates `"valid" <> 0`
2016-03-24 13:50:52 +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é aea7609e0b Merge branch 'master' into FetchedRecordsController 2016-03-22 21:29:46 +01:00
Gwendal Roué 700b256cad Merge commit 'a0b5f87b7d83655efa010c24f654ab03a97a1afa' into FetchedRecordsController 2016-03-22 21:06:59 +01:00
Gwendal Roué 64b4372a18 Merge commit '557fbc21efd227e50e790b1149907720a91fe346' into FetchedRecordsController 2016-03-22 21:06:42 +01:00
Gwendal Roué 32461d221a Merge commit '7de27389aa89f731b977e2d046c8b12ff2191e5d' into FetchedRecordsController 2016-03-22 21:06:04 +01:00
Gwendal Roué 01eea12f4e Typo 2016-03-22 14:12:21 +01:00
Gwendal Roué 1b78881f78 Update performance tests 2016-03-22 14:11:36 +01:00
Gwendal Roué a0b5f87b7d Replace prebuilt Realm frameworks with source (v0.98.5) 2016-03-22 13:38:45 +01:00
Gwendal Roué 557fbc21ef Performance tests target ccgus/fmdb v2.6.2 and stephencelis/SQLite.swift v0.9.2 2016-03-22 09:26:30 +01:00
Gwendal Roué a6af89755d Merge branch 'master' into Swift2.2 2016-03-21 23:09:02 +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é af538c4feb Improve test for migration with disabled foreign key checks 2016-03-18 06:44:24 +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é 7cd5b881b2 Merge branch 'master' into FetchedRecordsController 2016-03-15 19:05:20 +01:00
Gwendal Roué 63545c1f08 Documentation 2016-03-15 19:05:04 +01:00
Gwendal Roué 171862097e Merge branch 'master' into FetchedRecordsController
Conflicts:
	GRDB.xcworkspace/contents.xcworkspacedata
2016-03-15 13:48:13 +01:00
Gwendal Roué 613a0386bd Performance tests sure "modern" API calls 2016-03-15 08:42:51 +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é c6a00d0e45 Performance tests for Realm 0.98.4 2016-03-13 22:00:48 +01:00
Gwendal Roué 967b10311e Cleanup tests 2016-03-13 17:41:38 +01:00
Gwendal Roué 19da676caf Configuration.fileAttributes: apply file attributes to database files 2016-03-13 14:16:17 +01:00
Gwendal Roué 84e5e488a9 DatabaseGenerator retain the database connection. Tests for various opportunities of memory leaking, and misuse of weak references. 2016-03-12 14:47:53 +01:00
Gwendal Roué 1df41fbd29 Tests for DatabaseQueue/Pool connection closing 2016-03-12 13:53:49 +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é 97f3161256 DatabaseMigrator support for DatabasePool 2016-03-09 22:28: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é 15b3809a50 DatabasePool: forbid transactions and savepoints in readers 2016-03-09 20:06:31 +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é 1fee42bee9 Remove useless Statement.readOnly 2016-03-09 15:44:38 +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é c84521edf8 Crash tests organization 2016-03-09 15:27:39 +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é 0091de918b Extract SerializedDatabase from DatabaseQueue 2016-03-09 07:54:06 +01:00
Gwendal Roué d18d2a5921 Statement.readOnly 2016-03-08 20:40:12 +01:00