Commit Graph
65 Commits
Author SHA1 Message Date
Gwendal Roué 6ed8d61380 RowModel no longer requires subclasses to declare the primary key. 2015-09-05 17:30:32 +02:00
Gwendal Roué cb68bb4b2a Remove license prefix in Swift files 2015-09-04 16:35:54 +02:00
Gwendal Roué d209e4427a Fetching methods are not available on the fetched type themselves: 2015-09-04 14:58:43 +02:00
Gwendal Roué fe547d7128 DatabaseQueue.inTransaction() is now declared as rethrows. 2015-08-25 08:23:05 +02:00
Gwendal Roué 3d4c86d4ee Rename QueryArguments to StatementArguments 2015-08-20 08:14:17 +02:00
Gwendal Roué e8c6240e0e Fix documentation layout of Database.executeMultiStatement 2015-08-18 09:04:36 +02:00
Gwendal Roué 7508883527 Minor clean up after #6 2015-08-18 08:16:29 +02:00
peter-ss 7d5533432b Refactored UpdateStatement.Changes into DatabaseChanges.
Updated unit tests and README accordingly.
2015-08-17 13:31:37 -07:00
peter-ss 1f74138a9f Support for multiple statement execution via sqlite3_exec() 2015-08-17 10:59:05 -07:00
Gwendal Roué d76a79d0d6 Document throwing methods with the new - throws: comment 2015-07-21 23:21:36 +02:00
Gwendal Roué 3175608a50 Error management clean up 2015-07-17 13:12:38 +02:00
Gwendal Roué b60892be3e Renamed "Bindings" to "QueryArguments". 2015-07-17 09:05:18 +02:00
Gwendal Roué 2dec12ed99 Remove Statement.bindings setter and bindings argument in Statement.init(…) from public APIs. 2015-07-17 08:32:26 +02:00
Gwendal Roué 979026616e Documentation WIP 2015-07-11 06:51:56 +02:00
Gwendal Roué ecc2d87cd0 Remove unused & undocumente unsafe argument from Database.selectStatement(sql:bindings:) 2015-07-11 06:45:35 +02:00
Gwendal Roué ff6e25937e Rename SQLiteXXX types DatabaseXXX 2015-07-08 19:34:17 +02:00
Gwendal Roué ebf39fdd70 UpdateStatement.Changes store the changes performed by an update statement. 2015-07-07 08:33:46 +02:00
Gwendal Roué b39eae5f0b SQLiteError tests 2015-07-06 20:32:20 +02:00
Gwendal Roué f6119e91c2 Database.selectStatement() is no longer a throwing method. 2015-07-06 18:52:28 +02:00
Gwendal Roué f58454c868 RowModel.update() and RowModel.save() return false if and only if the model has a non null primary key which does not exist in the database. RowModel.save() calls update() if the model has a non null primary key, and insert() otherwise. 2015-07-06 18:22:52 +02:00
Gwendal Roué cf7beefb0a SQlite identifiers are case-insensitive, case-preserving 2015-07-06 17:19:34 +02:00
Gwendal Roué 3587ae435c Hide Database.configuration behind DatabaseQueue.configuration 2015-07-06 12:31:43 +02:00
Gwendal Roué 7bf8b05563 Documentation WIP 2015-07-05 19:37:48 +02:00
Gwendal Roué 607fdf9327 Documentation WIP 2015-07-05 16:33:01 +02:00
Gwendal Roué aedc9a5426 Documentation WIP 2015-07-05 12:50:57 +02:00
Gwendal Roué 82d953472e Documentation WIP 2015-07-05 12:31:50 +02:00
Gwendal Roué 8a9620e0d6 Documentation WIP 2015-07-05 11:13:38 +02:00
Gwendal Roué 0d9cca5dcd Documentation WIP 2015-07-05 07:04:33 +02:00
Gwendal Roué 2309986fb7 Database is a final class 2015-07-05 06:12:27 +02:00
Gwendal Roué aa026c6dd2 MIT license 2015-07-05 06:06:48 +02:00
Gwendal Roué c2db2dc8d0 Initializing an In-memory database queues doesn’t throw. 2015-07-04 19:01:14 +02:00
Gwendal Roué c831a0a4b3 Rename DatabaseConfiguration to Configuration, add Configuration.readonly, and replace Configuration.verbose flag with customizable Configuration.trace function. 2015-07-04 18:42:21 +02:00
Gwendal Roué 4e8b69007b SQLiteError adopts CustomStringConvertible 2015-07-04 18:08:47 +02:00
Gwendal Roué c8bad5db25 Rename DatabaseValueType to SQLiteValueConvertible 2015-07-04 16:28:07 +02:00
Gwendal Roué 4c2a1e9d92 Documentation 2015-07-03 20:41:31 +02:00
Gwendal Roué 35a50d610d Rename DatabaseValue to DatabaseValueType 2015-07-03 19:36:22 +02:00
Gwendal Roué 873a5c17b4 Better Statement errors 2015-07-03 12:30:44 +02:00
Gwendal Roué 657d534b01 Improve Xcode autocompletion of generic functions by exposing the expected generic type 2015-07-03 10:50:43 +02:00
Gwendal Roué 0914ab2c74 Make sure select statements are executed on the database queue 2015-07-03 08:20:22 +02:00
Gwendal Roué c3b86572b9 Work around switch statement oddity 2015-07-02 21:40:13 +02:00
Gwendal Roué 6d6dd31c1f More verbose errors 2015-07-02 21:36:12 +02:00
Gwendal Roué 800b15c24f API tweaks 2015-07-02 20:50:48 +02:00
Gwendal Roué 47baf0c2b5 RowModel.save(db) 2015-07-02 20:43:45 +02:00
Gwendal Roué 6d47f72009 Minor tweaks 2015-07-02 13:58:11 +02:00
Gwendal Roué 72c0c9b1cb Fetch rationalization 2015-07-02 12:14:19 +02:00
Gwendal Roué d79c13f5b7 Fetch rationalization 2015-07-02 12:05:16 +02:00
Gwendal Roué 8621d9e2af Bindings 2015-07-02 11:15:17 +02:00
Gwendal Roué 4d4712cd02 Rename DatabaseCell SQLiteValue 2015-07-02 10:28:48 +02:00
Gwendal Roué 1175e226bd Database.lastInsertedRowID 2015-07-01 22:57:43 +02:00
Gwendal Roué 5876c67f29 Database.init() is internal 2015-07-01 20:02:48 +02:00