Commit Graph
3061 Commits
Author SHA1 Message Date
Gwendal Roué ff9b2c8bda Fetch sequences of optional or non-optional values. 2015-09-25 08:31:29 +02:00
Gwendal Roué 8c508ef9a9 Fetch sequences of optional or non-optional values. 2015-09-25 06:38:33 +02:00
Gwendal Roué d11d6fa492 Make Row a final class. 2015-09-24 18:58:47 +02:00
Gwendal Roué 6db9ae464c Prevent statement argument mismatch. 2015-09-24 18:58:36 +02:00
Gwendal Roué cb1adfcb3f v0.17.0 2015-09-24 13:08:48 +02:00
Gwendal Roué 5c13660022 Rename MetalType -> SQLiteStatementConvertible 2015-09-24 09:12:30 +02:00
Gwendal Roué fdf7319261 SQLiteStatement documentation 2015-09-24 09:08:33 +02:00
Gwendal Roué 8aa5ca0119 DatabaseSequence documentation 2015-09-24 09:08:00 +02:00
Gwendal Roué 537d9dd087 Record documentation 2015-09-24 08:50:19 +02:00
Gwendal Roué 4e980b51ab RowConvertible documentation 2015-09-24 08:48:26 +02:00
Gwendal Roué c927faa6ad Row documentation 2015-09-24 08:45:12 +02:00
Gwendal Roué ba4a729ba9 Row documentation 2015-09-24 08:35:35 +02:00
Gwendal Roué babab885b0 Remove dead comment 2015-09-24 08:30:02 +02:00
Gwendal Roué b28f855bd4 MetalType documentation 2015-09-24 08:29:39 +02:00
Gwendal Roué d61e59cf6f Swift enums can’t adopt MetalType 2015-09-24 08:22:19 +02:00
Gwendal Roué 052448b2f7 Documentation 2015-09-24 08:22:02 +02:00
Gwendal Roué c05a2dbab2 DatabaseValueConvertible documentation 2015-09-24 08:10:45 +02:00
Gwendal Roué 4f5ebc1605 DatabaseValue documentation 2015-09-24 08:02:48 +02:00
Gwendal Roué d153b5e91b Documentation 2015-09-23 22:19:47 +02:00
Gwendal Roué 70b7c0d76c Delete commented code 2015-09-23 20:16:27 +02:00
Gwendal Roué 48e4cb9a0c Remove from DatabaseValue support for metal access, since it does not improve performance. 2015-09-23 19:09:23 +02:00
Gwendal Roué 9126c01a40 Refactor DatabaseValue so that it can improve extraction of MetalType. Add a performance test for Record. 2015-09-23 14:25:19 +02:00
Gwendal Roué 5789c93ad8 Simplify Blob 2015-09-23 08:51:15 +02:00
Gwendal Roué ad2bc3f2e6 Metal rows: improve speed of named column access. 2015-09-23 08:04:19 +02:00
Gwendal Roué 7c934fc77d Bring back queue safety of statement iteration. 2015-09-23 04:57:22 +02:00
Gwendal Roué 3ec12b0f9b Metal documentation WIP 2015-09-23 04:56:43 +02:00
Gwendal Roué 7622b100f3 Make Row a struct, since making it a class does not noticeably improve performances. 2015-09-22 22:44:25 +02:00
Gwendal Roué 49c9636086 Make Row a class, and introduce DatabaseSequence and DatabaseGenerator for better performance. 2015-09-22 22:37:53 +02:00
Gwendal Roué 8b46d27377 Remove metalFetch() functions, and make Row.fetch() unsafe. RowConvertible builds from metal rows. Add Row.detachedRow(). Record stores a detached row as a reference row. 2015-09-22 08:33:17 +02:00
Gwendal Roué 2da093baff Pervasive metal 2015-09-17 06:29:56 +02:00
Gwendal Roué dcbc5ef3f5 Drop obsolete MetalRow 2015-09-16 22:02:39 +02:00
Gwendal Roué 4b049eefda Row.metalFetch(), the base for future Int.metalFetch() and Person.metalFetch() 2015-09-16 21:53:35 +02:00
Gwendal Roué 1254f0e91a Non-optional Value extraction + identical Row and MetalRow look more and more similar 2015-09-16 19:55:07 +02:00
Gwendal Roué 7a9446fc20 Metal API performance is identical to FMDB's. 2015-09-16 13:54:44 +02:00
Gwendal Roué 018f76aafa FetchPerformanceTests helps comparing unsafe from safe fetch. 2015-09-16 08:56:46 +02:00
Gwendal Roué c886e4c803 Refactor SelectStatement.fetch into SelectStatement.generate 2015-09-16 06:50:48 +02:00
Gwendal Roué 2a6fbe6053 Experiment with unsafe but fast rows 2015-09-15 20:38:14 +02:00
Gwendal Roué 45931fe890 v0.16.0 2015-09-14 09:33:50 +02:00
Gwendal Roué 85a8819d9c Default to IMMEDIATE transactions.
This avoid select statements to crash by default when there is a concurrent write.
2015-09-13 19:34:13 +02:00
Gwendal Roué 15600b7268 Documentation: remove warnings about Database extraction out of DatabaseQueue, since Database will vigorously crash as soon as it is badly used. 2015-09-13 17:37:02 +02:00
Gwendal Roué facb6a53a9 Support for Busy handlers and timeout. 2015-09-13 15:20:53 +02:00
Gwendal Roué 9e0a05c810 Transactions documentation 2015-09-13 13:45:41 +02:00
Gwendal Roué a6916ade9b Configuration.transactionType 2015-09-12 18:47:04 +02:00
Gwendal Roué 9a2c1c1946 Fix wrong documentation about reentrancy. 2015-09-12 16:04:06 +02:00
Gwendal Roué af405ee7a2 v0.15.0 2015-09-12 15:28:30 +02:00
Gwendal Roué 75bb735e98 Use fatalError() instead of precondition() so that safety checks survive Release configuration. 2015-09-12 14:36:06 +02:00
Gwendal Roué 4cbac39dfc Use precondition() instead of assert() so that safety checks survive Release configuration. 2015-09-12 14:24:21 +02:00
Gwendal Roué ac7db33b61 Refactor concurrency safety checks 2015-09-12 14:21:46 +02:00
Gwendal Roué c09d5130fb Document why reentrancy is not supported. 2015-09-12 13:29:45 +02:00
Gwendal Roué 2fee6799d0 DatabaseQueue.inTransaction() and DatabaseQueue.inDatabase() are no longer reentrant, since we don’t (yet?) implement it in a robust way. 2015-09-12 13:22:01 +02:00