O'Reilly logo

Learning D by Michael Parker

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

MovieMan – the database

MovieMan does not use any database software, but it still needs to store the movie data the user enters. Ideally, the data would be stored on disk, preferably in a platform-specific, per-user, application data directory, but the goal behind MovieMan is to demonstrate D language features, not to develop a fully featured program. To keep things simple, the book implementation will keep the movie data in memory. A good exercise for the reader after finishing the book could be to implement the saving and loading of the movie data to and from disk.

This section lays out the database API. It won't be fully implemented at this point; we'll complete the implementation later with features from the next two chapters. Using the skeleton ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required