Commit Graph
55 Commits
Author SHA1 Message Date
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é cf1b2fbc2e Rename Row(dictionary:) to Row(_:) 2015-12-26 13:07:40 +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é 7a3795acc9 Row.value(atIndex:) reliably crashes when index is out of range. 2015-12-15 08:25:43 +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é 6b22342bb5 Minor 2015-12-14 07:37:40 +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é 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é b179ce2437 minor 2015-11-15 13:26:55 +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é 0123d22812 Declare DatabaseGenerator.next() as mutating 2015-10-31 08:33:12 +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é 7656fadfcc More precise Row.value(…) documentation 2015-10-26 21:39:42 +01:00
Gwendal Roué 8604392c72 More precise Row.value(…) documentation 2015-10-26 21:31:53 +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é aa59b24bb5 Empty Row() initializer 2015-10-10 21:04:20 +02:00
Gwendal Roué 074b81a1ed Improve conversion error reporting 2015-10-03 11:23:02 +02:00
Gwendal Roué 1a640c2f10 Improve value conversion error reporting 2015-10-01 08:51:55 +02:00
Gwendal Roué 6579e016e0 Row.hasColumn(_) 2015-10-01 06:36:17 +02:00
Gwendal Roué c3a705493c Improve Row.value(named:) error reporting when column name is invalid 2015-09-30 22:14:11 +02:00
Gwendal Roué d11d6fa492 Make Row a final class. 2015-09-24 18:58:47 +02:00
Gwendal Roué 5c13660022 Rename MetalType -> SQLiteStatementConvertible 2015-09-24 09:12:30 +02:00
Gwendal Roué c927faa6ad Row documentation 2015-09-24 08:45:12 +02:00
Gwendal Roué ba4a729ba9 Row documentation 2015-09-24 08:35:35 +02:00
Gwendal Roué d153b5e91b Documentation 2015-09-23 22:19:47 +02:00
Gwendal Roué 48e4cb9a0c Remove from DatabaseValue support for metal access, since it does not improve performance. 2015-09-23 19:09:23 +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é ad2bc3f2e6 Metal rows: improve speed of named column access. 2015-09-23 08:04:19 +02:00
Gwendal Roué 3ec12b0f9b Metal documentation WIP 2015-09-23 04:56:43 +02:00
Gwendal Roué 7622b100f3 Make Row a struct, since making it a class does not noticeably improve performances. 2015-09-22 22:44:25 +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é dcbc5ef3f5 Drop obsolete MetalRow 2015-09-16 22:02:39 +02:00
Gwendal Roué 4b049eefda Row.metalFetch(), the base for future Int.metalFetch() and Person.metalFetch() 2015-09-16 21:53:35 +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é 7a9446fc20 Metal API performance is identical to FMDB's. 2015-09-16 13:54:44 +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é 2a6fbe6053 Experiment with unsafe but fast rows 2015-09-15 20:38:14 +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é 41d210f7b7 Row[] and Row.value(named:) are case-insensitive. 2015-09-10 08:19:50 +02:00