Gwendal Roué
695adcacf7
Code cleanup
2015-09-05 21:33:09 +02:00
Gwendal Roué
2e6f19a09b
Documentation
2015-09-05 21:26:22 +02:00
Gwendal Roué
0265798123
Extract protocols RowConvertible, DatabaseTableMapping, DatabaseStorable
2015-09-05 21:23:58 +02:00
Gwendal Roué
f3a2e5f243
Drop RowModel.setDatabaseValue(_:forColumn:).
...
This leaves RowModel.updateFromRow(_) as the only method that
updates a RowModel. RowModel.updateFromRow was introduced in order to let models
update compound properties such as CLLocationCoordinate2D. The problem was that
RowModel.updateFromRow could be overriden so that it would handle 100% of the
updating job, leaving RowModel.setDatabaseValue as a method that could not
reliably be used to update a RowModel, and thus had to be dropped.
2015-09-05 19:15:42 +02:00
Gwendal Roué
6ed8d61380
RowModel no longer requires subclasses to declare the primary key.
2015-09-05 17:30:32 +02:00
Gwendal Roué
d4a3d110c8
Move the decision to use SQLITE_OPEN_NOMUTEX to the DatabaseQueue class.
2015-09-05 15:47:29 +02:00
Gwendal Roué
b62d432d68
Use SQLITE_OPEN_NOMUTEX flag
2015-09-05 15:31:01 +02:00
Gwendal Roué
116b1d48a7
Rename Row.columns to Row.columnNames (consistent with SelectStatement.columnNames)
2015-09-05 14:37:37 +02:00
Gwendal Roué
e87752d43c
Rename RowModel.edited to RowModel.databaseEdited.
2015-09-05 12:44:12 +02:00
Gwendal Roué
df78541430
Row.columns, Row.databaseValues
2015-09-05 12:37:46 +02:00
Gwendal Roué
8fc4927eb7
RowModel cleanup
2015-09-05 12:36:06 +02:00
Gwendal Roué
a2f7bd67ec
RowMode.exists() is now final.
2015-09-04 20:31:53 +02:00
Gwendal Roué
b5c834ca61
RowModel.reload() is now final. Override didFetch() for custom reloading.
2015-09-04 20:31:35 +02:00
Gwendal Roué
51826ecd56
Row adopts CustomStringConvertible
2015-09-04 18:30:56 +02:00
Gwendal Roué
f38b509890
DatabaseValue adopts CustomStringConvertible
2015-09-04 18:30:49 +02:00
Gwendal Roué
cb68bb4b2a
Remove license prefix in Swift files
2015-09-04 16:35:54 +02:00
Gwendal Roué
ca2ba3e0f5
v0.11.0
2015-09-04 15:01:11 +02:00
Gwendal Roué
d209e4427a
Fetching methods are not available on the fetched type themselves:
2015-09-04 14:58:43 +02:00
Gwendal Roué
3e12fbace9
v0.10.0
2015-09-04 08:29:09 +02:00
Gwendal Roué
2caf0f65b5
Simplify RowModel.updateFromRow()
2015-09-04 08:10:59 +02:00
Gwendal Roué
f38052f510
RowModel.didFetch() event
2015-09-03 18:21:15 +02:00
Gwendal Roué
6ebc2f441a
RowModel.insert() updates the ID with updateFromRow().
2015-09-03 14:29:12 +02:00
Gwendal Roué
5fd80035e0
Test that RowModel.reload() uses updateFromRow()
2015-09-03 13:56:41 +02:00
Gwendal Roué
20c72d7ce4
Inner documentation
2015-09-03 13:20:24 +02:00
Gwendal Roué
3f87a6e409
RowModel use case: updating a compound properties such as CLLocationCoordinate2D that does not fit in a single column.
2015-09-03 08:58:44 +02:00
Gwendal Roué
7e8b58d6f5
Private documentation for the need of value() methods that return DatabaseValueConvertible?
2015-09-03 07:58:21 +02:00
Gwendal Roué
ff616cfcc0
Tests DatabaseValue adoption of Equatable
2015-09-02 14:20:29 +02:00
Gwendal Roué
c96c6b960c
DatabaseValue adopts DatabaseValueConvertible
2015-09-02 13:36:20 +02:00
Gwendal Roué
86ecea053b
v0.9.0
2015-08-25 13:00:23 +02:00
Gwendal Roué
bf2c93f9f7
Xcode7b6
2015-08-25 12:34:01 +02:00
Gwendal Roué
fe547d7128
DatabaseQueue.inTransaction() is now declared as rethrows.
2015-08-25 08:23:05 +02:00
Gwendal Roué
3d4c86d4ee
Rename QueryArguments to StatementArguments
2015-08-20 08:14:17 +02:00
Gwendal Roué
26b2353782
Drop DatabaseError _domain and _code properties that are no longer required by Xcode7b5.
2015-08-20 07:47:44 +02:00
Gwendal Roué
e8c6240e0e
Fix documentation layout of Database.executeMultiStatement
2015-08-18 09:04:36 +02:00
Gwendal Roué
f3ec29faf2
v0.8.0
2015-08-18 08:20:59 +02:00
Gwendal Roué
7508883527
Minor clean up after #6
2015-08-18 08:16:29 +02:00
Gwendal Roué
58df4e669f
Merge branch 'master' of https://github.com/peter-ss/GRDB.swift
2015-08-18 07:42:17 +02:00
peter-ss
7d5533432b
Refactored UpdateStatement.Changes into DatabaseChanges.
...
Updated unit tests and README accordingly.
2015-08-17 13:31:37 -07:00
peter-ss
1f74138a9f
Support for multiple statement execution via sqlite3_exec()
2015-08-17 10:59:05 -07:00
Gwendal Roué
acf0ca297a
#4 WIP: Fix bad code introduced by f2c4af921d
2015-08-17 17:15:18 +02:00
Gwendal Roué
f2c4af921d
#4 WIP: Have Statement raise a fatal error if the provided SQL string contains multiple SQL statements. Test that trailing semicolon is both accepted and optional.
2015-08-17 16:35:08 +02:00
Gwendal Roué
56818fb208
Make Statement.arguments setter public
2015-08-17 15:14:50 +02:00
Gwendal Roué
9d5d1eb9b5
RowModel.exists(db) tests
2015-08-17 15:07:01 +02:00
Davor Bauk
07e6d62df8
Made members of UpdateStatement.Changes public
2015-08-06 20:44:30 -04:00
Gwendal Roué
0aaeaaab04
RowModel clean up
2015-08-05 13:57:57 +02:00
Gwendal Roué
d395493e21
RowModel simplification
2015-08-05 13:25:57 +02:00
Gwendal Roué
dbc98184aa
Clean up
2015-07-31 11:06:16 +02:00
Gwendal Roué
eb18ea8e6a
v0.7.0
2015-07-30 14:12:41 +02:00
Gwendal Roué
25b02b2a54
RowModel.delete return whether a row was deleted or not
2015-07-30 14:10:40 +02:00
Gwendal Roué
4d2503e8b3
Replace RowModelError.InvalidPrimaryKey with a fatal error
2015-07-30 13:40:57 +02:00