Commit Graph
26 Commits
Author SHA1 Message Date
Gwendal Roué c987a0a9af Statement validates its arguments before execution, not only in arguments property setter. Nil arguments are validated as well. 2015-11-17 08:26:15 +01:00
Gwendal Roué a92f1c5c40 documentation 2015-11-15 13:27:05 +01:00
Gwendal Roué 1e3d9f16df StatementArguments.Default is used in place of nil for default parameter values. 2015-11-13 11:46:25 +01:00
Gwendal Roué 0123d22812 Declare DatabaseGenerator.next() as mutating 2015-10-31 08:33:12 +01:00
Gwendal Roué 18306fcd64 Use /// for documentation comments, since Xcode 7 has weird behavior with /** 2015-10-27 08:30:24 +01:00
Gwendal Roué 8afb44cdc0 DatabaseTableMapping.fetch(_:primaryKeys:), DatabaseTableMapping.fetchAll(_:primaryKeys:) 2015-10-26 14:35:19 +01:00
Gwendal Roué 94408de61b Use sqlite3_trace for tracing SQL 2015-09-30 08:15:34 +02:00
Gwendal Roué a6267a2acb Experimental DatabaseTransactionDelegate
Built on top of sqlite3_update_hook, sqlite3_commit_hook and sqlite3_rollback_hook.
2015-09-27 13:48:21 +02:00
Gwendal Roué 8aa5ca0119 DatabaseSequence documentation 2015-09-24 09:08:00 +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é 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é 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é 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é 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é ac7db33b61 Refactor concurrency safety checks 2015-09-12 14:21:46 +02:00
Gwendal Roué a5b542902d Document that sequences (of rows, values or records) are affected by database changes. 2015-09-12 07:36:38 +02:00
Gwendal Roué 9ef40dcb4f SQLite error management cleanup 2015-09-09 13:11:48 +02:00
Gwendal Roué 557d4871d0 Crash tests 2015-09-09 08:38:59 +02:00
Gwendal Roué 13f38a9823 Improve fetch() methods 2015-09-08 18:12:57 +02:00
Gwendal Roué 862ac11d94 Extract Foundation 2015-09-06 16:55:38 +02:00
Gwendal Roué 6c4794f02c DatabaseValueConvertible redesign, and project reorganization 2015-09-06 15:23:02 +02:00