Commit c126543
sqlite: make sourceSQL and expandedSQL string-valued properties
Change sourceSQL and expandedSQL from being methods to being
string-valued properties. These fields
- are conceptually properties (and not actions),
- are derived deterministically from the current state of the object,
- require no parameters, and
- are inexpensive to compute.
Also, following the naming conventions of ECMAScript for new features,
most function names should usually contain a verb, whereas names of
(dynamically computed) properties generally should not, so the current
names also seem more appropriate for properties than for functions.
PR-URL: #54721
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent 67f5f46 commit c126543Copy full SHA for c126543
File tree
Expand file treeCollapse file tree
4 files changed
+47
-19
lines changedOpen diff view settings
Filter options
- doc/api
- src
- test/parallel
Expand file treeCollapse file tree
4 files changed
+47
-19
lines changedOpen diff view settings
Collapse file
+7-7Lines changed: 7 additions & 7 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
194 | 194 | |
195 | 195 | |
196 | 196 | |
197 | | - |
| 197 | + |
198 | 198 | |
199 | 199 | |
200 | 200 | |
201 | 201 | |
202 | 202 | |
203 | | - |
| 203 | + |
204 | 204 | |
205 | | - |
| 205 | + |
206 | 206 | |
207 | | - |
| 207 | + |
208 | 208 | |
209 | 209 | |
210 | 210 | |
| ||
293 | 293 | |
294 | 294 | |
295 | 295 | |
296 | | - |
| 296 | + |
297 | 297 | |
298 | 298 | |
299 | 299 | |
300 | 300 | |
301 | 301 | |
302 | | - |
| 302 | + |
303 | 303 | |
304 | | - |
| 304 | + |
305 | 305 | |
306 | 306 | |
307 | 307 | |
|
Collapse file
+31-4Lines changed: 31 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
18 | 18 | |
19 | 19 | |
20 | 20 | |
| 21 | + |
21 | 22 | |
| 23 | + |
22 | 24 | |
| 25 | + |
23 | 26 | |
24 | 27 | |
25 | 28 | |
| ||
31 | 34 | |
32 | 35 | |
33 | 36 | |
| 37 | + |
34 | 38 | |
35 | 39 | |
36 | 40 | |
| ||
643 | 647 | |
644 | 648 | |
645 | 649 | |
646 | | - |
| 650 | + |
647 | 651 | |
648 | 652 | |
649 | 653 | |
| ||
657 | 661 | |
658 | 662 | |
659 | 663 | |
660 | | - |
| 664 | + |
661 | 665 | |
662 | 666 | |
663 | 667 | |
| ||
717 | 721 | |
718 | 722 | |
719 | 723 | |
| 724 | + |
| 725 | + |
| 726 | + |
| 727 | + |
| 728 | + |
| 729 | + |
| 730 | + |
| 731 | + |
| 732 | + |
| 733 | + |
| 734 | + |
| 735 | + |
| 736 | + |
| 737 | + |
| 738 | + |
| 739 | + |
| 740 | + |
720 | 741 | |
721 | 742 | |
722 | 743 | |
| ||
730 | 751 | |
731 | 752 | |
732 | 753 | |
733 | | - |
734 | | - |
| 754 | + |
| 755 | + |
| 756 | + |
| 757 | + |
| 758 | + |
| 759 | + |
| 760 | + |
| 761 | + |
735 | 762 | |
736 | 763 | |
737 | 764 | |
|
Collapse file
+3-2Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
62 | 62 | |
63 | 63 | |
64 | 64 | |
65 | | - |
66 | | - |
| 65 | + |
| 66 | + |
| 67 | + |
67 | 68 | |
68 | 69 | |
69 | 70 | |
|
Collapse file
test/parallel/test-sqlite-statement-sync.js
Copy file name to clipboardExpand all lines: test/parallel/test-sqlite-statement-sync.js+6-6Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
135 | 135 | |
136 | 136 | |
137 | 137 | |
138 | | - |
139 | | - |
| 138 | + |
| 139 | + |
140 | 140 | |
141 | 141 | |
142 | 142 | |
| ||
145 | 145 | |
146 | 146 | |
147 | 147 | |
148 | | - |
| 148 | + |
149 | 149 | |
150 | 150 | |
151 | 151 | |
152 | | - |
153 | | - |
| 152 | + |
| 153 | + |
154 | 154 | |
155 | 155 | |
156 | 156 | |
| ||
164 | 164 | |
165 | 165 | |
166 | 166 | |
167 | | - |
| 167 | + |
168 | 168 | |
169 | 169 | |
170 | 170 | |
|
0 commit comments