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é
9ad85cd826
v0.37.1
2016-01-07 09:01:03 +01:00
Gwendal Roué
ea3ffbcd0b
Remove legacy code that should have been removed when DatabaseValueConvertible stopped inheriting from RowConvertible.
2016-01-07 08:58:52 +01:00
Gwendal Roué
ba67031ca0
Minor
2016-01-07 08:47:55 +01:00
Gwendal Roué
a16d1c2e08
v0.37.0
2016-01-07 07:40:50 +01:00
Gwendal Roué
589647ca20
Robustness of Database.execute() with multiple statements. Remove Database.executeMultiStatement() introduced by #6 .
2016-01-07 07:37:13 +01:00
Gwendal Roué
aad3d5efa5
Database.execute() now accepts multiple statements
2016-01-06 23:37:35 +01:00
Gwendal Roué
9ef16fa008
Refactor statement arguments
2016-01-06 22:42:12 +01:00
Gwendal Roué
27f7085a3a
Configuration: use explicit, auto-documenting, default values
2016-01-06 08:56:46 +01:00
Gwendal Roué
7bd21f499e
Project organization
2016-01-06 08:54:09 +01:00
Gwendal Roué
5e1d8ee639
Statement.validateArguments()
2016-01-06 08:47:50 +01:00
Gwendal Roué
d20014c87c
v0.36.0
2015-12-28 21:32:44 +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é
dcc4b303f9
Database now traces all SQL statements, including setup statements.
2015-12-28 21:15:47 +01:00
Gwendal Roué
677686b83a
UpdateStatement now accepts SQL queries that fetch rows ( fixes #15 )
2015-12-28 21:12:04 +01:00
Gwendal Roué
cf1b2fbc2e
Rename Row(dictionary:) to Row(_:)
2015-12-26 13:07:40 +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é
bfe3759423
v0.35.0
2015-12-22 07:50:39 +01:00
Gwendal Roué
f8ad2f2f6a
Use precondition() when validating user input
2015-12-17 10:23:19 +01:00
Gwendal Roué
2bd9bdbf27
Faster Row.count
2015-12-17 10:21:24 +01:00
Gwendal Roué
bfda4c78b3
Row.dataNoCopy(named:) returns nil if the column is missing.
2015-12-17 10:20:49 +01:00
Gwendal Roué
243056a797
Improve SelectStatement.indexForColumn performance by assuming identical column casing is common.
2015-12-17 09:58:14 +01:00
Gwendal Roué
ebb52d9486
Rename persistedDictionary to persistentDictionary
2015-12-16 13:41:22 +01:00
Gwendal Roué
97de742043
Rename databaseChanges to persistentChangedValues
2015-12-16 13:39:10 +01:00
Gwendal Roué
3deedffb77
Rename databaseEdited to hasPersistentChangedValues
2015-12-16 13:37:02 +01:00
Gwendal Roué
1534ac4828
Rename DatabasePersistable.storedDatabaseDictionary to persistedDictionary
2015-12-16 13:14:41 +01:00
Gwendal Roué
4c984985fa
Record.databaseChanges now returns [String: DatabaseValue?]
2015-12-16 13:02:42 +01:00
Gwendal Roué
4fcf4a8593
Rename DatabaseMigrator.registerMigrationWithoutForeignKeyChecks(_:_:) DatabaseMigrator.registerMigration(_:withDisabledForeignKeyChecks:migrate:)
2015-12-16 12:42:28 +01:00
Gwendal Roué
6dc96d71ee
DatabaseValue initializers from Int64, Double, String and NSData now have an unlabelled argument.
2015-12-16 12:26:55 +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é
9040110608
Update Record documentation
2015-12-15 08:58:59 +01:00
Gwendal Roué
7a3795acc9
Row.value(atIndex:) reliably crashes when index is out of range.
2015-12-15 08:25:43 +01:00
Gwendal Roué
3d03b32487
Restore Record.init(row:)
2015-12-15 08:06:16 +01:00
Gwendal Roué
b83a19c1fe
Make Record closer to RowConvertible and DatabasePersistable
2015-12-15 06:51:24 +01:00
Gwendal Roué
ca1ab4478b
Row.value(named:) returns nil if column is not there.
2015-12-15 06:50:03 +01:00
Gwendal Roué
fd96555a79
Drop Record.reload()
2015-12-14 18:35:17 +01:00
Gwendal Roué
c617b2aae1
v0.34.0
2015-12-14 08:28:31 +01:00
Gwendal Roué
ce3cee68ec
Typo
2015-12-14 08:06:21 +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é
6b22342bb5
Minor
2015-12-14 07:37:40 +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é
833a5af74f
v0.33.0
2015-12-11 13:24:01 +01:00
Gwendal Roué
1f3f2d04eb
Instead of disabling schema cache throughout the migrations, clear the schema cache after each migration.
2015-12-11 13:05:10 +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