Gwendal Roué
|
52b13da2b3
|
DatabaseTableMapping.databaseTableName() now returns a non-optional String
|
2015-12-10 13:23:45 +01:00 |
|
Gwendal Roué
|
4e183439b5
|
DatabasePersistable.didInsertWithRowID(_:forColumn:) is called even when there is no INTEGER PRIMARY KEY column. DatabaseTableMapping no longer extends RowConvertible. (#12)
|
2015-12-10 09:06:00 +01:00 |
|
Gwendal Roué
|
c4fa174fad
|
DatabasePersistable documentation (#12)
|
2015-12-10 08:14:36 +01:00 |
|
Gwendal Roué
|
cc59f62420
|
Refactor DatabasePersistable so that all CRUD methods are dynamically dispatched. The protocol exposes default implementation for CRUD methods as statically dispatched method that are available for adopting types in their own implementations of CRUD methods. Introduce DatabasePersistable.save() (#12)
|
2015-12-10 08:09:36 +01:00 |
|
Gwendal Roué
|
8ed4f47f82
|
Remove reference to the databaseEdited flag from the DatabasePersistable documentation.
|
2015-12-09 08:57:07 +01:00 |
|
Gwendal Roué
|
22dd8e1c3a
|
Introduce DatabasePersistable that grants CRUD methods to any type
|
2015-12-09 08:53:08 +01:00 |
|
Gwendal Roué
|
bf48bd6ac2
|
Remove a bunch of self.
|
2015-12-01 09:07:55 +01:00 |
|
Gwendal Roué
|
ce42192334
|
Documentation
|
2015-11-19 08:20:28 +01:00 |
|
Gwendal Roué
|
be0b55ffe7
|
minor
|
2015-11-15 13:26:12 +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é
|
6934efd98c
|
Unify primary key and other key fetching methods
|
2015-10-31 08:38:37 +01:00 |
|
Gwendal Roué
|
0123d22812
|
Declare DatabaseGenerator.next() as mutating
|
2015-10-31 08:33:12 +01:00 |
|
Gwendal Roué
|
99ec2a1128
|
DatabaseTableMapping.fetch(_:keys:) tests WIP
|
2015-10-27 14:02:57 +01:00 |
|
Gwendal Roué
|
3516036bbc
|
Code cleanup
|
2015-10-27 10:32:18 +01:00 |
|
Gwendal Roué
|
84f422fdd0
|
DatabaseTableMapping.fetch(_:primaryKeys:), DatabaseTableMapping.fetchAll(_:primaryKeys:) arguments are generic sequences of non-optionals.
|
2015-10-27 10:28:04 +01:00 |
|
Gwendal Roué
|
771d790765
|
Documentation
|
2015-10-27 09:02:56 +01:00 |
|
Gwendal Roué
|
8879aa562d
|
DatabaseTableMapping.fetch(_:primaryKeys:), DatabaseTableMapping.fetchAll(_:primaryKeys:) arguments are arrays of optionals
|
2015-10-27 08:51:28 +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é
|
1a640c2f10
|
Improve value conversion error reporting
|
2015-10-01 08:51:55 +02:00 |
|
Gwendal Roué
|
b42b7fd831
|
RowConvertible.awakeFromFetch(_) is declared as mutating.
|
2015-10-01 08:18:31 +02:00 |
|
Gwendal Roué
|
df2d4da51d
|
RowConvertible.init(dictionary:)
|
2015-09-30 23:08:07 +02:00 |
|
Gwendal Roué
|
0830bc0657
|
Documentation
|
2015-09-30 08:35:53 +02:00 |
|
Gwendal Roué
|
6fcc986e1a
|
Refactor DatabaseTransactionDelegate into TransactionObserverType
|
2015-09-28 08:50:25 +02:00 |
|
Gwendal Roué
|
109f22ef85
|
DatabaseEvent documentation
|
2015-09-27 18:38:45 +02:00 |
|
Gwendal Roué
|
5c8d01373e
|
DatabaseTransactionDelegate documentation
|
2015-09-27 17:31:56 +02:00 |
|
Gwendal Roué
|
5e8e9da629
|
DatabaseTransactionDelegate tests
|
2015-09-27 16:23:58 +02:00 |
|
Gwendal Roué
|
1e191994f0
|
DatabaseTransactionDelegate documentation
|
2015-09-27 14:07:09 +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é
|
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é
|
5c13660022
|
Rename MetalType -> SQLiteStatementConvertible
|
2015-09-24 09:12:30 +02:00 |
|
Gwendal Roué
|
4e980b51ab
|
RowConvertible documentation
|
2015-09-24 08:48:26 +02:00 |
|
Gwendal Roué
|
b28f855bd4
|
MetalType documentation
|
2015-09-24 08:29:39 +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é
|
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é
|
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é
|
3ec12b0f9b
|
Metal documentation WIP
|
2015-09-23 04:56:43 +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é
|
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é
|
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é
|
a5b542902d
|
Document that sequences (of rows, values or records) are affected by database changes.
|
2015-09-12 07:36:38 +02:00 |
|
Gwendal Roué
|
4f07acd0a0
|
Record.awakeFromFetch()
|
2015-09-10 22:01:59 +02:00 |
|