Commit Graph
8949 Commits
Author SHA1 Message Date
Gwendal Roué 405b537ef2 Typo 2018-04-22 13:32:26 +02:00
Gwendal Roué 6722ea8676 Typo 2018-04-22 13:29:52 +02:00
Gwendal Roué d3879567c4 New "Examples of Record Definitions" chapter (addresses #338) 2018-04-22 13:26:40 +02:00
Gwendal Roué 4c6147fc37 Documentation 2018-04-22 12:05:11 +02:00
Gwendal Roué b2d2d17dda #330 follow-up: extract QualifiedAllColumns from AllColumns 2018-04-22 07:26:08 +02:00
Gwendal Roué 2dae6d945f #330 follow-up: extract QualifiedColumn from Column 2018-04-22 07:17:26 +02:00
Gwendal Roué ddc551626c Merge pull request #337 from groue/GRDB3-autoIncrementedPrimaryKey
Foster auto-incremented primary keys
2018-04-22 06:39:42 +02:00
Gwendal Roué 7aacaef2cd Foster autoIncrementedPrimaryKey in documentation 2018-04-21 20:11:34 +02:00
Gwendal Roué e80dab2ea9 Documentation for TableDefinition.autoIncrementedPrimaryKey 2018-04-21 19:42:27 +02:00
Gwendal Roué 822ff97050 Tests for TableDefinition.autoIncrementedPrimaryKey 2018-04-21 19:41:45 +02:00
Gwendal Roué 73e89f76aa Introduce TableDefinition.autoIncrementedPrimaryKey 2018-04-21 19:41:21 +02:00
Gwendal Roué c21a330dce Cleanup 2018-04-21 19:40:30 +02:00
Gwendal Roué b8fc762e11 Cleanup 2018-04-21 19:28:58 +02:00
Gwendal Roué e44249be1c Merge pull request #336 from groue/GRDB3-LogicalOperatorRefactoring
Enhancements to logical operators
2018-04-21 19:06:36 +02:00
Gwendal Roué f4ab65e399 Fix typo 2018-04-21 17:21:16 +02:00
Gwendal Roué d63565f191 Documentation for joined(operator:) 2018-04-21 17:17:46 +02:00
Gwendal Roué 729f6bdc6c Tests for joined(operator:) 2018-04-21 17:05:03 +02:00
Gwendal Roué c691625b15 Dedicated implementations for AND and OR sql operators. Introduce joined(operator:) 2018-04-21 16:53:44 +02:00
Gwendal Roué 4e57bf5a0e Fix a youth error: DatabaseDateComponents initializer from DateComponents is no longer failable 2018-04-21 15:27:21 +02:00
Gwendal Roué 223d0a3fd3 Merge remote-tracking branch 'origin/development' into GRDB3 2018-04-21 15:20:36 +02:00
Gwendal Roué 00fa47b6b7 Family gets bigger :-) 2018-04-21 15:04:54 +02:00
Gwendal Roué f52536f4ae Append #334 to CHANGELOG 2018-04-21 15:04:37 +02:00
Gwendal Roué 76e1d4381d Merge pull request #334 from sobri909/development
Improve date parsing performance and memory footprint
2018-04-21 14:49:13 +02:00
Gwendal Roué 6c5d6ba631 SQLiteDateParser: tighten vsscanf format 2018-04-21 10:37:03 +02:00
Gwendal Roué 1311f6c87c SQLiteDateParser: fix nanosecond parsing 2018-04-21 10:17:07 +02:00
Gwendal Roué 219f96a11a More DatabaseDateComponents parsing tests 2018-04-21 10:16:49 +02:00
Gwendal Roué 8b175280fa TODO 2018-04-21 07:40:11 +02:00
Gwendal Roué 632bce5521 SQLiteDateParser: don't parse garbage into nanoseconds 2018-04-20 19:41:34 +02:00
Gwendal Roué 316d28746b SQLiteDateParser: optimize nanoseconds parsing 2018-04-20 19:26:42 +02:00
Gwendal Roué 9efe4a6efa Add a sanity check 2018-04-20 19:18:46 +02:00
Gwendal Roué 85fbf64068 Add missing imports (should fix travis issues) 2018-04-20 19:17:24 +02:00
Gwendal Roué 282255b841 No need for useScanfStrategy any longer 2018-04-20 19:14:58 +02:00
Gwendal Roué 9e380e5fea Cleanup 2018-04-20 19:14:32 +02:00
Gwendal Roué f12495b24a New DateParsingTests in GRDBOSXPerformanceTests 2018-04-20 19:06:02 +02:00
Gwendal Roué 266040747e Date adopts StatementColumnConvertible 2018-04-20 18:42:12 +02:00
Gwendal Roué 11a4a6acbd Documentation 2018-04-20 18:41:58 +02:00
Gwendal Roué c70689fe54 Check useScanfStrategy in DatabaseDateComponents.init(sqliteStatement:index:)
...so that we can eventually compare gains
2018-04-20 18:34:19 +02:00
Gwendal Roué 936b31f1f0 DatabaseDateComponents adopts StatementColumnConvertible
We'll need benchmarks to evaluate the gain, here
2018-04-20 14:04:12 +02:00
Gwendal Roué 8915672ce5 SQLiteDateParser: parse C strings
Since the goal of this PR is efficiency, we'll soon parse Date and
DatabaseDateComponents right from raw SQLite buffers.
2018-04-20 13:51:20 +02:00
Gwendal Roué 0640f90fc1 (whitespace) 2018-04-20 13:32:50 +02:00
Gwendal Roué d1a0e8d906 SQLiteDateParser.components(from:) is not public 2018-04-20 13:31:57 +02:00
Gwendal Roué e9a668ca56 SQLiteDateParser: no more static methods 2018-04-20 13:31:35 +02:00
Gwendal Roué 27194c802d SQLiteDateParser: use withUnsafeMutablePointer instead of allocations
OK, not really: the nanosecond components remains in the heap.
But we may find a way to put 11 chars on the stack.
2018-04-20 13:30:26 +02:00
Gwendal Roué 7aabfeaeac SQLiteDateParser: get rid of the mutex 2018-04-20 13:09:22 +02:00
Gwendal Roué 6d9bce3a25 Add SQLiteDateParser.swift to GRDBCustom and GRDBCipher
... so that all GRDB flavors can use the new technique.
GRDB has three distinct projects since #282.
2018-04-20 13:08:17 +02:00
Gwendal Roué efa0e3850f GRDB3 TODO 2018-04-20 06:16:10 +02:00
Gwendal Roué 1e7e011a61 Merge pull request #335 from groue/GRDB3-RowLookup
Row scopes collection, breadth-first scope search
2018-04-20 06:00:52 +02:00
Gwendal Roué e45642b6c1 Cleanup 2018-04-19 21:48:12 +02:00
Gwendal Roué b550e2bfd5 Cleanup 2018-04-19 21:45:40 +02:00
Gwendal Roué 4b3854d05d Finally, the meat: perform breadth-first search in let record = row[key], and in FetchableRecord & Decodable 2018-04-19 20:46:58 +02:00