Commit Graph
55 Commits
Author SHA1 Message Date
Gwendal Roué e782b3e88e Experiment with enum support 2015-07-05 14:02:51 +02:00
Gwendal Roué aedc9a5426 Documentation WIP 2015-07-05 12:50:57 +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é aa026c6dd2 MIT license 2015-07-05 06:06:48 +02:00
Gwendal Roué 8d829195c7 RowTests 2015-07-04 19:50:19 +02:00
Gwendal Roué c2db2dc8d0 Initializing an In-memory database queues doesn’t throw. 2015-07-04 19:01:14 +02:00
Gwendal Roué 631f071589 Come on, Xcode, pull yourself together 2015-07-04 18:52:30 +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é 449042d62e Rename GRDBTests -> GRDBTestCase 2015-07-04 18:09:27 +02:00
Gwendal Roué 29069e794f Code formatting 2015-07-04 17:59:59 +02:00
Gwendal Roué 692a6bc28d DatabaseDate -> DBDate 2015-07-04 17:02:43 +02:00
Gwendal Roué 933a472da7 SelectStatement.fetch(RowModel, bindings:) 2015-07-04 16:57:01 +02:00
Gwendal Roué edbd2e8d01 Minor tweaks 2015-07-04 16:30:36 +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é d2528cc7c9 Support for BLOB columns 2015-07-04 13:54:10 +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é 1c264c690a db.fetch(RowModel:primaryKey:) gains support for multiple-columns primary keys 2015-07-03 20:41:19 +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é 008d661868 Only support colon-prefixed named bindings. 2015-07-03 18:04:53 +02:00
Gwendal Roué 75e77d509a Statement tests 2015-07-03 12:31:00 +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é 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é 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é 343a239905 Functions that fetch no longer throw (they crash), but the low-level Database.selectStatement(_:bindings:unsafe:). 2015-07-02 12:27:11 +02:00
Gwendal Roué 13817d864d Fetch rationalization 2015-07-02 12:24:03 +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é 3b3ca5dcad Tests WIP 2015-07-01 21:20:21 +02:00
Gwendal Roué 2199dfb636 DatabaseMigratorTests 2015-07-01 19:48:37 +02:00
Gwendal Roué 5951079ecc Rename Error to SQLiteError 2015-07-01 19:21:06 +02:00
Gwendal Roué 32e856b071 Guard against invalid use of database queues 2015-07-01 19:19:07 +02:00
Gwendal Roué 17d7c28f70 inTransaction takes a block that should return .Commit or .Rollback 2015-07-01 14:11:24 +02:00
Gwendal Roué 6419d884a2 Tests WIP 2015-07-01 13:52:13 +02:00
Gwendal Roué b26e918411 Tests WIP 2015-07-01 13:50:08 +02:00
Gwendal Roué 6d65491958 More statement APIs 2015-07-01 11:56:30 +02:00
Gwendal Roué 2c17214e78 SelectStatement.fetchRows() now returns a sequence of rows which can be consumed well after sqlite3_step() and sqlite3_finalize() are called. Use SelectStatement.fetchRows(unsafe: true) to get a sequence of unsafe rows. 2015-07-01 11:18:59 +02:00
Gwendal Roué 1e023dbf7c DatabaseMigrator 2015-07-01 09:12:31 +02:00
Gwendal Roué baa609360c DatabaseConfiguration 2015-07-01 08:31:29 +02:00
Gwendal Roué 3d8bfc04b0 DatabaseQueue 2015-07-01 08:22:10 +02:00
Gwendal Roué 60eea0138a Replace SelectStatement.rows with SelectStatement.fetchRows() 2015-07-01 06:34:43 +02:00
Gwendal Roué b7d5c40595 SelectStatement is no longer a Row sequence 2015-07-01 06:07:34 +02:00
Gwendal Roué 9175aa42c8 Minor API tweaks 2015-06-30 19:00:50 +02:00
Gwendal Roué ced9a43ee3 Row.asDictionary 2015-06-30 18:34:14 +02:00