Gwendal Roué
ebef2f0647
Minor
2016-01-09 07:29:55 +01:00
Gwendal Roué
87ab0f55d8
DatabasePersistable.update accepts an optional list of columns to be updated.
2016-01-08 14:27:30 +01:00
Gwendal Roué
0345d482b2
Statement.arguments is a non-optional StatementArguments. Remove StatementArguments.Default.
2016-01-08 10:33:30 +01:00
Gwendal Roué
ddf0b5de70
Update CrashTests.swift, and add GRDBOSXCrashTests target which runs crash tests only.
2016-01-07 14:11:30 +01:00
Gwendal Roué
5e1d8ee639
Statement.validateArguments()
2016-01-06 08:47:50 +01:00
Gwendal Roué
04d7c2b511
Methods that build prepared statement can now throw an error.
2015-12-28 21:29:29 +01:00
Gwendal Roué
049c576864
RowConvertible.awakeFromFetch() now takes a database argument.
2015-12-25 14:30:05 +01:00
Gwendal Roué
0719b2a9ab
DatabaseValueConvertible no longer inherits from RowConvertible.
...
This avoid the creation of rows in order to access the first column, and this also prevent calling awakeFromFetch for types that adopt databaseValueConvertible.
2015-12-25 13:17:30 +01:00
Gwendal Roué
f8ad2f2f6a
Use precondition() when validating user input
2015-12-17 10:23:19 +01:00
Gwendal Roué
ebb52d9486
Rename persistedDictionary to persistentDictionary
2015-12-16 13:41:22 +01:00
Gwendal Roué
1534ac4828
Rename DatabasePersistable.storedDatabaseDictionary to persistedDictionary
2015-12-16 13:14:41 +01:00
Gwendal Roué
5dc22f6dd7
More compliance to Swift 3 API Design Guidelines
2015-12-16 12:09:04 +01:00
Gwendal Roué
334fb00864
Record.init(row: Row) -> Record.init(_ row: Row)
2015-12-16 11:56:02 +01:00
Gwendal Roué
77e8641c32
Documentation
2015-12-14 07:52:37 +01:00
Gwendal Roué
e84a96d343
Minor
2015-12-14 07:52:34 +01:00
Gwendal Roué
a6299e7b9b
Minor
2015-12-14 07:33:05 +01:00
Gwendal Roué
93e7dc8709
Make DatabaseValueConvertible a subprotocol of RowConvertible. Drop RowConvertible dictionary initializers.
2015-12-14 06:48:38 +01:00
Gwendal Roué
c5913542f0
DatabasePersistable WIP
2015-12-11 07:05:45 +01:00
Gwendal Roué
21fc6938ca
MutableDatabasePersistable documentation
2015-12-10 22:05:13 +01:00
Gwendal Roué
ed22876b1d
Introduce MutableDatabasePersistable
2015-12-10 21:50:46 +01:00
Gwendal Roué
00fb558db8
TODO.md
2015-12-10 18:20:47 +01:00
Gwendal Roué
39ff90474c
DatabasePersistable documentation ( #12 )
2015-12-10 13:33:25 +01:00
Gwendal Roué
cfd5abc1a7
Documentation
2015-12-10 13:28:34 +01:00
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