[SOLVED] DBMS -Database Systems Lab -SESSION 6

30.00 $

Category:

Description

5/5 - (2 votes)

Overview

This session takes the PDS to a logical conclusion by implementing a full set of functions necessary to implement a small database system.

 

While all the code return so far can be retained and used, they may require minor changes and renaming as suggested in the given pds.h file.

 

Testing

  1. Use contact_loader.c program to import contacts in bulk for testing. Input file with data is given to you.
  2. The following driver program is given to you:
    • c (generic testing with input data file like testcase.in).
    • This file takes a file with commands such as (CREATE, STORE, RETRIEVE, OPEN, CLOSE) inside.
  3. Test your program thoroughly with the above driver program with the test input file
  4. Do additional testing by creating your own test input files

Commands

  1. Use the following command for creating pds_create_schema executable:

gcc -o pds_create_schema pds_create_schema.c bst.c contact.c pds.c

Use pds_create_schema to create .db file using the following command:

pds_create_schema academia academia.txt

  1. Use the following command for creating pds_tester executable:

gcc -o pds_tester bst.c contact.c pds.c pds_tester.c

For testing using pds_tester, use the following command:

pds_tester testcase.in