Commit Graph
93 Commits
Author SHA1 Message Date
Gwendal Roué faf588c845 Support both Int and String enums 2015-07-05 14:25:28 +02:00
Gwendal Roué f01cc29c7a Documentation WIP 2015-07-05 13:02:41 +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é f4ad456569 Documentation WIP 2015-07-05 12:04:16 +02:00
Gwendal Roué 05c906a551 Documentation WIP 2015-07-05 11:16:00 +02:00
Gwendal Roué 8a9620e0d6 Documentation WIP 2015-07-05 11:13:38 +02:00
Gwendal Roué 4e001c880a Configuration.logSQL is a built-in query tracer, which logs SQL statements and bindings. 2015-07-05 09:31:07 +02:00
Gwendal Roué 33d53e4f97 Documentation WIP 2015-07-05 07:35:50 +02:00
Gwendal Roué 78cef92c07 Documentation WIP 2015-07-05 07:14:13 +02:00
Gwendal Roué 0d9cca5dcd Documentation WIP 2015-07-05 07:04:33 +02:00
Gwendal Roué 84f3066b3b Documentation WIP 2015-07-05 06:29:24 +02:00
Gwendal Roué 187eebd6b2 DatabaseQueue is a final class 2015-07-05 06:12:45 +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é 5acc09eaa3 Improve RowIndex 2015-07-05 05:57:08 +02:00
Gwendal Roué 052b75872a Inner Documentation 2015-07-05 00:42:34 +02:00
Gwendal Roué cf1de47438 Remove Row.dictionary as there is no known use for it right now 2015-07-04 23:56:38 +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é adbe09d6d3 In-Memory database 2015-07-04 18:00:08 +02:00
Gwendal Roué 933a472da7 SelectStatement.fetch(RowModel, bindings:) 2015-07-04 16:57:01 +02:00
Gwendal Roué c8bad5db25 Rename DatabaseValueType to SQLiteValueConvertible 2015-07-04 16:28:07 +02:00
Gwendal Roué 3eb6cc205b SelectStatement.fetch…(…, bindings:) & UpdateStatement.execute(bindings:) 2015-07-04 15:56:53 +02:00
Gwendal Roué c936605f21 README.md 2015-07-04 15:07:14 +02:00
Gwendal Roué 7af12a5828 Fix Bool conversions according to https://www.sqlite.org/lang_expr.html#castexpr 2015-07-04 14:54:47 +02:00
Gwendal Roué 188d542906 Tests for all (Swift Type) -> (Sqlite Affinity) -> (Swift Type) paths 2015-07-04 14:08:18 +02:00
Gwendal Roué d2528cc7c9 Support for BLOB columns 2015-07-04 13:54:10 +02:00
Gwendal Roué 1a1263b614 UpdateStatement.execute() calls reset() 2015-07-04 13:52:47 +02:00
Gwendal Roué 3b0ebd64a6 Replace DatabaseValueType.bindInSQLiteStatement(_:atIndex:) with DatabaseValueType.sqliteValue 2015-07-04 07:36:52 +02:00
Gwendal Roué e9bf3c2eac Remove useless support for enums 2015-07-03 21:36:32 +02:00
Gwendal Roué 8b6a2eda1d Support for enums via DatabaseEnum 2015-07-03 21:15:01 +02:00
Gwendal Roué 4c2a1e9d92 Documentation 2015-07-03 20:41:31 +02:00
Gwendal Roué 9c452e4a5c db.fetch(RowModel:primaryKey:) gains support for multiple-columns primary keys 2015-07-03 20:41:07 +02:00
Gwendal Roué 526840bca1 Replace the Statement methods bind(), reset() and clearBindings() with the bindings property. 2015-07-03 20:12:16 +02:00
Gwendal Roué 35a50d610d Rename DatabaseValue to DatabaseValueType 2015-07-03 19:36:22 +02:00
Gwendal Roué 9b3e00fdca Turn Row into a Sequence of (String, SQLiteValue) 2015-07-03 19:16:34 +02:00
Gwendal Roué 008d661868 Only support colon-prefixed named bindings. 2015-07-03 18:04:53 +02:00
Gwendal Roué 873a5c17b4 Better Statement errors 2015-07-03 12:30:44 +02:00
Gwendal Roué b2ae0b138e Non-generic Row.value(atIndex:) & Row.value(named:) return DatabaseValue? 2015-07-03 12:22:42 +02:00
Gwendal Roué 34989c8d2a Convenience initializers Bindings(NSArray) & Bindings(NSDictionary) 2015-07-03 12:21:41 +02:00
Gwendal Roué 7f47d4cc41 Rename Database.fetch(type🔑) -> Database.fetch(type:bindings:) 2015-07-03 11:04:57 +02:00
Gwendal Roué 6a678b6752 RowModel.delete(db) & Database.fetch(type, key) 2015-07-03 10:54:03 +02:00
Gwendal Roué 9a2cb4e87f Bindings.dictionary(defaultColumnNames) helps building APIs that take both arrays or dictionaries. 2015-07-03 10:52:19 +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é b225dff251 Organize RowModel tests 2015-07-03 09:32:30 +02:00
Gwendal Roué efbf468b89 Clean up fucked up file hierarchy 2015-07-03 09:13:37 +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é aafb51b9eb White space 2015-07-03 00:04:56 +02:00