Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please provide a complete code for creating a database in c++. sql test case In this assignment, you will write a program that allows a

Please provide a complete code for creating a database in c++. image text in transcribed

sql test case

image text in transcribed

In this assignment, you will write a program that allows a database user to manage the metadata of their relational data. By metadata, we mean the database's high-level information (e.g., database's name, creation time, owner) as well as the properties of the tables (e.g., table's names, attributes, constraints). System Design - You are free (in fact, encouraged) to come up with your own design - For instance, Sqlite3 uses one single file for each "database." - Here is one possible design: - One Linux directory > a database O One regular file > a table Implementation - The program should not use an external database library or an existing SQL parser/compiler. - Any programming language is acceptable, e.g., Python, Java, C/C++, Go - Please pick one that you are most comfortable/proficient with - If you want to choose a language not mentioned above, please contact the TA before you start coding - Functionalities: - Database creation, deletion - Table creation, deletion, update, and query Interface - A similar but simpler interface than Sqlite3 - Examples (on a Linux terminal): - \#./> \# CREATE DATABASE db_name >; - The shell should prompt whether the command is successful or failed - If failed, don't crash but gracefully prompt why - Then when you check your file system, it might look like this: - /your_home/cs457/pa1/db_name - \#./> \# USE db_1; CREATE TABLE test_tbl (a1 int, a2 char(9)); - If successful, then your file system might look like this

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Harness The Power Of Big Data The IBM Big Data Platform

Authors: Paul Zikopoulos, David Corrigan James Giles Thomas Deutsch Krishnan Parasuraman Dirk DeRoos Paul Zikopoulos

1st Edition

0071808183, 9780071808187

More Books

Students also viewed these Databases questions

Question

Provide examples of KPIs in Human Capital Management.

Answered: 1 week ago

Question

What are OLAP Cubes?

Answered: 1 week ago