Gwendal Roué
3c822399b1
Restore DatabaseValue.description into its previous behavior, and test that \n or \t are described as "\\n" and "\\t" (avoid multi-line DatabaseValue description)
2016-10-08 14:38:30 +02:00
Gwendal Roué
a51ccad560
Code cleanup
2016-10-08 11:52:46 +02:00
Gwendal Roué
b8ab30fc22
DatabaseValue.description now returns the SQL literal representation of the value
2016-10-08 11:51:10 +02:00
Gwendal Roué
1244b6b283
Move == operators inside their adopting type
2016-09-30 06:00:50 +02:00
Gwendal Roué
5a572b25a0
Refactor the query interface types to enhance extensibility
2016-09-27 23:11:21 +02:00
Gwendal Roué
f573046107
Merge branch 'Swift2.3' of github.com:groue/GRDB.swift
...
Conflicts:
CHANGELOG.md
GRDB.swift.podspec
GRDB/Core/DatabaseValue.swift
GRDB/Core/Row.swift
GRDB/Core/RowAdapter.swift
GRDB/Record/Record.swift
README.md
Support/Info.plist
Tests/Public/Core/DatabaseValue/DatabaseValueTests.swift
Tests/Public/Record/MinimalPrimaryKeyRowIDTests.swift
Tests/Public/Record/MinimalPrimaryKeySingleTests.swift
Tests/Public/Record/PrimaryKeyMultipleTests.swift
Tests/Public/Record/PrimaryKeyRowIDTests.swift
Tests/Public/Record/PrimaryKeySingleTests.swift
Tests/Public/Record/PrimaryKeySingleWithReplaceConflictResolutionTests.swift
2016-09-16 06:46:42 +02:00
Gwendal Roué
f5cb34f506
DatabaseValue no longer adopts StatementColumnConvertible; DatabaseValue.fromDatabaseValue() no longer returns nil for NULL ( fixes #119 )
2016-09-16 05:48:09 +02:00
Gwendal Roué
a8b067885f
Merge branch 'master' of github.com:groue/GRDB.swift into Swift3
...
Conflicts:
DemoApps/GRDBDemoiOS/GRDBDemoiOS.xcodeproj/project.pbxproj
GRDB/Core/Database.swift
README.md
TODO.md
2016-09-08 08:37:58 +02:00
Gwendal Roué
854c070b82
Xcode Version 8.0 beta 6 (8S201h)
2016-08-16 17:47:57 +02:00
Gwendal Roué
b5bb92459d
WatchOS framework (adresses #96 )
2016-08-10 06:27:50 +02:00
Gwendal Roué
0b568b2d28
Documentation
2016-06-14 19:23:36 +02:00
Gwendal Roué
d52c552721
Xcode 8 WIP
2016-06-14 12:51:33 +02:00
Gwendal Roué
2a5bdbcbdc
BROKEN - Xcode 8 WIP
2016-06-14 09:08:43 +02:00
Gwendal Roué
6ac2cd4686
Merge branch 'master' of github.com:groue/GRDB.swift into Swift3bis
...
Conflicts:
DemoApps/GRDBDemoiOS7/GRDBDemoiOS7/AppDatabase.swift
DemoApps/GRDBDemoiOS7/GRDBDemoiOS7/Person.swift
DemoApps/GRDBDemoiOS7/GRDBDemoiOS7/PersonEditionViewController.swift
DemoApps/GRDBDemoiOS7/GRDBDemoiOS7/PersonsViewController.swift
GRDB/Core/Support/Foundation/NSNumber.swift
GRDB/Core/Support/StandardLibrary/StandardLibrary.swift
GRDB/Record/FetchedRecordsController.swift
Tests/Public/Core/DatabaseValueConvertible/NSNumberTests.swift
Tests/Public/FetchedRecordsController/FetchedRecordsControllerTests.swift
2016-06-07 19:01:08 +02:00
Gwendal Roué
1d4bff1add
#68 : conversion error messages contain the "database" word.
2016-06-05 14:57:07 +02:00
Gwendal Roué
88c284dbf1
Merge branch 'master' into Swift3bis
...
Conflicts:
GRDB/Core/Database.swift
GRDB/FetchRequest/QueryInterfaceRequest.swift
GRDB/FetchRequest/SQLCollation.swift
GRDB/FetchRequest/SQLFunction.swift
GRDB/FetchRequest/SQLOperator.swift
GRDB/FetchRequest/SQLSelectQuery.swift
README.md
2016-06-02 20:47:04 +02:00
Gwendal Roué
aa6097dff8
swift-DEVELOPMENT-SNAPSHOT-2016-05-31-a
2016-06-02 19:58:58 +02:00
Gwendal Roué
7c4ff7677d
swift-DEVELOPMENT-SNAPSHOT-2016-05-09-a
2016-06-02 08:38:15 +02:00
swiftlyfalling
30bc7e4f6c
Replace most uses of #if SQLITE_HAS_CODEC with the appropriate USING_BUILTIN_SQLITE or USING_SQLCIPHER defines.
...
This enables easier compilation of a custom version of SQLite that
itself uses the SQLITE_HAS_CODEC define. (ex. If building SQLite with
the SQLite Encryption Extension.)
The SQLITE_HAS_CODEC define is now only used to guard use of the SQLite
encryption APIs.
GRDBCipher builds define USING_BUILTIN_SQLITE and USING_SQLCIPHER.
2016-05-30 18:19:45 -04:00
Gwendal Roué
4185de77e0
Remove DatabaseValue.failableValue()
2016-05-18 18:40:03 +02:00
Gwendal Roué
023d757964
Attempt to fix CocoaPods
2016-04-05 08:53:02 +02:00
Gwendal Roué
3e0fcc4b87
New GRDBCipherOSX target + tests
2016-04-03 11:40:34 +02:00
Gwendal Roué
644ec3caec
DatabaseValue.value() raises a fatal error when conversion of a non-NULL value fails.
2016-03-25 20:17:31 +01:00
Gwendal Roué
5ed3b39219
Rename DatabaseValue.unsafeValue() to failableValue()
2016-03-25 18:46:24 +01:00
Gwendal Roué
ee55afe8c0
Row.value() no longer turns non-NULL values to nil, should the conversion fail.
2016-03-25 18:28:42 +01:00
Gwendal Roué
6bfab3d04a
DatabaseValue.value() no longer turns non-NULL values to nil, should the conversion fail. The new method DatabaseValue.unsafeValue() has the old, information-discarding, behavior.
2016-03-25 13:56:38 +01:00
Gwendal Roué
c6f96906ca
Avoid build errors by using ad-hoc Swift modules that import the right sqlite3 header depending on the platform (MacOSX, iPhoneOS, iPhoneSimulator).
2016-03-17 08:54:09 +01:00
Gwendal Roué
94e4fa42bf
DatabaseValue adopts StatementColumnConvertible. Stronger tests for DatabaseValue adoption of StatementColumnConvertible and DatabaseValueConvertible.
2016-02-07 12:44:09 +01:00
Gwendal Roué
0ae37db4ec
Typo
2016-02-07 12:13:33 +01:00
Gwendal Roué
8237ec8a2a
Minor
2016-02-07 12:13:02 +01:00
Gwendal Roué
db73bf9295
Documentation
2016-01-19 20:03:25 +01:00
Gwendal Roué
f8b2fa0cc8
Cleanup
2016-01-19 14:25:25 +01:00
Gwendal Roué
f7874bd745
Fix DatabaseValue.hashValue
2016-01-17 14:28:29 +01:00
Gwendal Roué
a384051942
Remove all DatabaseValue initializers, but the low-level ones
2016-01-14 19:58:19 +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é
3deedffb77
Rename databaseEdited to hasPersistentChangedValues
2015-12-16 13:37:02 +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é
bf48bd6ac2
Remove a bunch of self.
2015-12-01 09:07:55 +01:00
Gwendal Roué
195dbf518f
Restore DatabaseValue and Row value() methods that return nil, Int64, Double, String or NSData.
2015-11-20 08:48:28 +01:00
Gwendal Roué
cc1d6a300f
Documentation
2015-11-20 08:41:59 +01:00
Gwendal Roué
4c8c9f8432
DatabaseValue exposes its SQLite storage, and adopts Hashable.
2015-11-20 08:34:22 +01:00
Gwendal Roué
ce42192334
Documentation
2015-11-19 08:20:28 +01:00
Gwendal Roué
865431c58a
Functions
2015-11-18 18:18:31 +01:00
Gwendal Roué
32b9971cfa
minor
2015-11-17 08:28:25 +01:00
Gwendal Roué
0ada90777a
minor
2015-11-15 13:25:58 +01:00
Gwendal Roué
561ae52422
Turn initializers of DatabaseValue, Row, RowConvertible and StatementArguments from AnyObject, NSArray and NSDictionary to failable initializers.
2015-11-13 10:04:08 +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é
5c1e320d97
NSData is now the type responsible for SQLite blobs.
2015-10-13 19:52:40 +02:00
Gwendal Roué
990c34e1d9
Assume NSData WIP
2015-10-13 09:06:36 +02:00
Gwendal Roué
1a640c2f10
Improve value conversion error reporting
2015-10-01 08:51:55 +02:00