Foreword |
|
xiii | |
|
Foreword |
|
xvii | |
|
Author Biographies |
|
xxi | |
Author's Acknowledgments |
|
xxv | |
Symbian Acknowledgments |
|
xxvii | |
Publisher's Acknowledgements |
|
xxviii | |
|
|
1 | (8) |
|
|
1 | (1) |
|
Symbian Terminology and Version Numbering |
|
|
2 | (1) |
|
The Relational Model and the Structured Query Language (SQL) |
|
|
2 | (1) |
|
|
3 | (3) |
|
|
6 | (1) |
|
Tools and Troubleshooting |
|
|
6 | (1) |
|
Further Reading and Resources |
|
|
6 | (3) |
|
|
9 | (10) |
|
|
9 | (1) |
|
Overview of Symbian SQL APIs |
|
|
9 | (1) |
|
|
10 | (7) |
|
|
11 | (1) |
|
|
11 | (1) |
|
|
12 | (1) |
|
|
12 | (1) |
|
|
13 | (1) |
|
|
13 | (2) |
|
|
15 | (1) |
|
Updating Records Using Column Binding and Streaming |
|
|
15 | (1) |
|
|
16 | (1) |
|
|
17 | (1) |
|
|
17 | (2) |
|
|
19 | (32) |
|
|
20 | (1) |
|
|
20 | (1) |
|
SQL and the Relational Model |
|
|
21 | (1) |
|
|
21 | (13) |
|
The Information Principle |
|
|
21 | (2) |
|
The Sanctity of the Logical Level |
|
|
23 | (1) |
|
The Anatomy of the Logical Level |
|
|
24 | (1) |
|
|
25 | (1) |
|
|
26 | (4) |
|
Tables: Relation Variables |
|
|
30 | (2) |
|
|
32 | (1) |
|
|
33 | (1) |
|
|
34 | (5) |
|
|
34 | (1) |
|
|
35 | (2) |
|
|
37 | (1) |
|
|
38 | (1) |
|
|
39 | (6) |
|
|
39 | (1) |
|
|
40 | (1) |
|
|
40 | (1) |
|
|
41 | (2) |
|
|
43 | (2) |
|
The Manipulative Component |
|
|
45 | (3) |
|
Relational Algebra and Calculus |
|
|
45 | (1) |
|
The Relational Query Language |
|
|
46 | (1) |
|
|
47 | (1) |
|
The Meaning of Relational |
|
|
48 | (1) |
|
|
49 | (2) |
|
Everything you Ever Wanted to Know about SQL but Were Afraid to Ask |
|
|
51 | (112) |
|
|
52 | (2) |
|
|
53 | (1) |
|
|
53 | (1) |
|
|
54 | (2) |
|
|
55 | (1) |
|
|
55 | (1) |
|
|
56 | (4) |
|
|
58 | (1) |
|
|
58 | (1) |
|
|
59 | (1) |
|
|
60 | (1) |
|
|
60 | (2) |
|
|
60 | (2) |
|
|
62 | (1) |
|
|
62 | (48) |
|
|
63 | (1) |
|
|
64 | (5) |
|
|
69 | (7) |
|
|
76 | (2) |
|
|
78 | (3) |
|
|
81 | (4) |
|
|
85 | (1) |
|
|
85 | (9) |
|
|
94 | (2) |
|
|
96 | (4) |
|
|
100 | (3) |
|
|
103 | (1) |
|
|
104 | (4) |
|
|
108 | (2) |
|
|
110 | (5) |
|
|
110 | (4) |
|
|
114 | (1) |
|
|
115 | (1) |
|
|
115 | (22) |
|
|
116 | (5) |
|
|
121 | (4) |
|
|
125 | (4) |
|
|
129 | (2) |
|
|
131 | (6) |
|
|
137 | (6) |
|
|
138 | (1) |
|
|
139 | (3) |
|
|
142 | (1) |
|
|
143 | (18) |
|
|
143 | (2) |
|
|
145 | (7) |
|
|
152 | (6) |
|
|
158 | (1) |
|
|
159 | (1) |
|
|
160 | (1) |
|
|
160 | (1) |
|
|
161 | (2) |
|
|
163 | (16) |
|
|
163 | (3) |
|
|
164 | (1) |
|
|
164 | (1) |
|
|
164 | (2) |
|
|
166 | (5) |
|
How the Database Processes SQL |
|
|
166 | (1) |
|
|
167 | (1) |
|
|
168 | (3) |
|
|
171 | (6) |
|
|
171 | (2) |
|
|
173 | (1) |
|
|
173 | (3) |
|
Connections, Transactions and Locking |
|
|
176 | (1) |
|
Prepared Statements and Locking |
|
|
177 | (1) |
|
|
177 | (2) |
|
|
179 | (26) |
|
The Database Connection Class |
|
|
179 | (10) |
|
Connecting and Disconnecting |
|
|
179 | (3) |
|
Creating and Deleting Databases |
|
|
182 | (1) |
|
Attaching Additional Databases |
|
|
182 | (1) |
|
|
183 | (1) |
|
Copying and Deleting a Database File |
|
|
184 | (1) |
|
|
185 | (3) |
|
|
188 | (1) |
|
Retrieving the Security Policy |
|
|
189 | (1) |
|
The Prepared Statement Class |
|
|
189 | (7) |
|
Preparing and Executing SQL Statements |
|
|
189 | (2) |
|
|
191 | (3) |
|
|
194 | (2) |
|
Working with Variable-Length Data Objects |
|
|
196 | (4) |
|
|
196 | (1) |
|
Retrieving Large Amounts of Data |
|
|
197 | (1) |
|
|
198 | (2) |
|
|
200 | (2) |
|
|
202 | (1) |
|
|
203 | (2) |
|
SQLite Internals on Symbian |
|
|
205 | (74) |
|
Why SQLite is Right for Symbian |
|
|
206 | (1) |
|
|
207 | (43) |
|
|
209 | (12) |
|
|
221 | (7) |
|
|
228 | (1) |
|
|
228 | (13) |
|
|
241 | (6) |
|
|
247 | (3) |
|
SQLite Configuration Options |
|
|
250 | (4) |
|
|
251 | (1) |
|
|
252 | (1) |
|
|
252 | (1) |
|
|
253 | (1) |
|
|
254 | (1) |
|
SQLite Optimizations on Symbian OS |
|
|
254 | (24) |
|
|
256 | (1) |
|
Retaining Page Cache Contents |
|
|
256 | (2) |
|
Imposing a Soft Heap Limit |
|
|
258 | (1) |
|
Increasing the Maximum Cache Size |
|
|
258 | (4) |
|
Avoiding Unnecessary Reads |
|
|
262 | (2) |
|
Avoiding Unnecessary Writes |
|
|
264 | (2) |
|
Minimizing the Cost of Using Journal Files |
|
|
266 | (2) |
|
Mass Storage and Fast Retrieval of Binary Data (BLOBs) |
|
|
268 | (7) |
|
Background Database Compaction |
|
|
275 | (3) |
|
|
278 | (1) |
|
|
279 | (70) |
|
Design and Development Considerations |
|
|
280 | (4) |
|
|
281 | (1) |
|
Set Performance Objectives |
|
|
282 | (1) |
|
|
282 | (2) |
|
Develop Performance Tests |
|
|
284 | (1) |
|
|
284 | (1) |
|
An Introduction to Optimization |
|
|
284 | (2) |
|
Understand the Operation of the Application |
|
|
285 | (1) |
|
Identify Bottlencks Before Optimizing |
|
|
285 | (1) |
|
|
285 | (1) |
|
Maintain Performance Test Records |
|
|
286 | (1) |
|
Carry Out One Optimization at a Time |
|
|
286 | (1) |
|
Optimize in the Right Environment |
|
|
286 | (1) |
|
|
286 | (12) |
|
|
287 | (1) |
|
|
288 | (1) |
|
|
289 | (4) |
|
|
293 | (1) |
|
|
294 | (2) |
|
|
296 | (2) |
|
Symbian SQL Optimization Tips |
|
|
298 | (50) |
|
|
298 | (5) |
|
|
303 | (8) |
|
|
311 | (7) |
|
|
318 | (14) |
|
|
332 | (4) |
|
|
336 | (12) |
|
|
348 | (1) |
|
Using Symbian SQL: Three Case Studies |
|
|
349 | (20) |
|
|
349 | (6) |
|
|
350 | (1) |
|
|
351 | (1) |
|
Contacts Model on Symbian SQL |
|
|
352 | (2) |
|
Possible Future Improvements |
|
|
354 | (1) |
|
|
354 | (1) |
|
|
355 | (8) |
|
|
355 | (2) |
|
|
357 | (5) |
|
|
362 | (1) |
|
Wikipedia Demo Application |
|
|
363 | (4) |
|
Downloading the Symbian Wikipedia Demo Application |
|
|
363 | (1) |
|
Storing Wikipedia on a Phone |
|
|
363 | (1) |
|
Designing the Schema (the Wrong Way) |
|
|
364 | (1) |
|
Designing the Schema (the Right Way) |
|
|
365 | (1) |
|
Displaying the List of Articles |
|
|
366 | (1) |
|
Retrieving the Content of Articles |
|
|
367 | (1) |
|
|
367 | (1) |
|
|
367 | (2) |
|
Appendix A Troubleshooting |
|
|
369 | (12) |
|
|
369 | (4) |
|
|
373 | (4) |
|
|
377 | (1) |
|
|
378 | (2) |
|
|
380 | (1) |
|
Appendix B SDB Database Creation Tool |
|
|
381 | (6) |
|
Obtaining and Installing SDB |
|
|
381 | (1) |
|
|
381 | (2) |
|
SDBv1 Configuration Files |
|
|
383 | (4) |
|
Appendix C Symbian SQL Error Codes |
|
|
387 | (2) |
References |
|
389 | (2) |
Index |
|
391 | |