Commit Graph
33 Commits
Author SHA1 Message Date
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
Gwendal Roué ee81249c79 FetchRequest.fetchCount() can count all supported queries 2016-03-05 15:24:13 +01:00
Gwendal Roué b7a7cd953e FetchRequest.fetchCount() traps when the intent of the developer can’t be satisfied (yet), as in Person.select(name).distinct.fetchCount(db). 2016-03-04 09:15:43 +01:00
Gwendal Roué de9d8e65bb Add failing tests for Reader.select(Col.name).distinct.fetchCount(db) 2016-03-03 08:54:18 +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é 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é ff8b580d17 SelectStatement.sourceTables 2016-02-08 19:15:57 +01:00
Gwendal Roué 247d8a75f7 Support for EXISTS (subquery) 2016-02-08 08:37:58 +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é 4004d53da4 Support for comparing collated expressions with optionals 2016-02-07 16:18:30 +01:00
Gwendal Roué 09c599cc62 !FetchRequest.contains() 2016-02-07 15:20:56 +01:00
Gwendal Roué 17aa9350c5 FetchRequest.contains() 2016-02-07 15:18:18 +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é 307008e9bc protocol<RowConvertible+TableMapping>.fetch() and TableMapping.reverse() 2016-01-29 13:38:30 +01:00
Gwendal Roué f08fc31e64 Remove request.fetchCount(db, expr) and request.fetchCount(db, distinct: expr) 2016-01-29 13:23:55 +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