Page 208 -
P. 208

hashes and databases



                     Test Drive





           Change your program in IDLE to use the new version of the function (which now talks
           to TVN’s database). Save your program under a new name and press F5 to run it.    Load this!






                                                                          Download surfersDB.sdb from the
                                                                          Head First Programming website before
                                                                          running this test drive.









































           Now, as well as working with data in files, you can extract data from a database
           system. Your program fully integrates with TVN’s SQLite3 technology.  The program displays similar
                                                                                 output to before... only, this

           Send off that code to TVN, and sit back and wait for the              time, the data is coming from
                                                                                 a database, NOT a file!
           money to roll in...
                                                                                       you are here 4    173
   203   204   205   206   207   208   209   210   211   212   213