logo

Developing a Command Line Text-Based User Interface for Memory Database

Build a simplistic in-memory database accessible through a naive command-line text-based user interface.

13 Pages1316 Words373 Views
   

Added on  2023-06-04

About This Document

This article discusses the development of a command line text-based user interface for memory database. It covers features like file converter, srchindx, binary search tree, error handling, indexer, and structural requirements. The article also includes references to related studies.

Developing a Command Line Text-Based User Interface for Memory Database

Build a simplistic in-memory database accessible through a naive command-line text-based user interface.

   Added on 2023-06-04

ShareRelated Documents
Computer Science
Developing a Command Line Text-Based User Interface for Memory Database_1
Table of Contents
1. Introduction.................................................................................................................................1
2. Description...................................................................................................................................1
3. File converter...............................................................................................................................1
4. Srchindx.......................................................................................................................................1
5. Binary search tree........................................................................................................................2
6. Error handling.............................................................................................................................2
7. Indexer..........................................................................................................................................2
8. Structural requirement...............................................................................................................3
9. Conclusion....................................................................................................................................7
References............................................................................................................................................8
Developing a Command Line Text-Based User Interface for Memory Database_2
1. Introduction
The main aim of this project is to develop a naive command line text based user
interface to access the memory database. The c source code is used have used for the
command line interface. All the data must be stored in the directory of memory database. The
user can enter all the commands on a single line command to interact with the memory
database.
2. Description
To create the naïve interface, the text based command line is used, where it creates the
user interface data in a single line command. Creating the program can save the script file on
a naïve interface. The user can enter one time command and does not return the no argument,
but enters the command to enter the new line character of the memory database. The
execution of the command line block is completed and prints the message of the return code.
The user command line code will execute each scripts of the command line with the
following steps mentioned below (Curry, 2016).
To create new command line of the encountered can be exit, it will be processing of
the user confirmation is accepted and deleting the all data structure of the storing file data.
All the command line input displays the output redirection file and creates the new
files, directory and links using the user interface command prompt. It creates new file which
contains the absolute path name, relative pathname, bare filename, of the current directory.
3. File converter
The file converter used for data records can convert the binary files to text files. User
can enter the command line one by one and use the binary file of the file converter. Let us
consider the infile directory and out file directory to be used in the database. The infile can be
used for the input file of the directory and outfile directory can be used for all the data stored
on the text files. User can create the command line of the text file in which it can contain the
flight’s data records with the whitespace character to display the information in the format of
AirlineCodeFlightNumber, OriginAirportCode, DestinationAirportCode , Departure Date of
the text files. It displays the set of file stored on the outfile directory. For example, the
airlines can be stored in the format pf Airline.txt (Jin, Yan, 2012).
4. Srchindx
The command line argument that has used to executing directory of the index files
that has specified the inverted-index-file name path of the directory files. The index file of the
1
Developing a Command Line Text-Based User Interface for Memory Database_3
path can search the flight records of the airport code database. The executing of the command
line interface can be used for searching the flight data records with the destination airport
ALT in all the files of the stored data directory and we can use the hash mapping of the
binary search tree all the data will be stored in the array of linked list format of text files.
5. Binary search tree
The binary search tree can be used for the binary tree of the data structure which uses
the sub tree of the node. The binary tree of the data value contains the left child node and the
right child node of the path directory text files.
6. Error handling
The error handling is used for the text files, where the user can run the naïve interface
program of the command line arguments, to execute and display the error message of the path
directory. It prints the output error massage to stop. The Error handling methods can be used
for the file directory, indexer, file converter and srchindx programs. The executing of the
program can be a wrong argument which can be passed on the directory. Let us display the
message of the wrong step. To specify the input file provider, it can be wrong and does not
open the file on the path directory. Let us display the message in the invalid commands, on
the naïve interface path directory (Lee and Yan, 2014).
7. Indexer
The indexer file can be used for mapping of each airline codes, to find the subset of
the file that contains the text file code. The indexer can be mainly used for the specified
airline code, which will display the text file on the command line user interface. The
2
Developing a Command Line Text-Based User Interface for Memory Database_4

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
Movie Project
|8
|598
|172

Operation System Assignment 2022
|43
|1891
|22

Automated Account Management, Designing and Implementing File Systems in Linux
|11
|647
|305

Server Administration and Management with Shell Scripts and ZFS Volume
|13
|695
|492

Operating System Assignment: Role of CLI
|19
|4179
|182

Linux File System: Automated Account Management, Designing File Systems, File System Management with Scripts
|12
|721
|455