Skip to content

natalievalcin/InMemoryDB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

InMemoryDB

Data Processing and Storage

This repository contains a simple implementation of an in-memory key-value database with transaction support. The database allows you to perform operations like get, put, begin_transaction, commit, and rollback.

How to Run

  1. Clone the Repository:
  2. Navigate to the Project directory
  3. Compile the Code
  4. Run the Program
  5. View Output

Sample Usage

You can uncomment the sample operations in the main method of InMemoryDBClass to see the functionality in action. The code demonstrates basic usage of the database operations, such as starting a transaction, updating values, and committing or rolling back transactions.

Modifications for Future Assignments

  1. Enhanced Comments and Documentation: Add detailed comments explaining each method, its purpose, and any specific conditions. Provide documentation for the class and interface to make it easier for others to understand and use the code.
  2. Expand Test Cases: Extend the existing test cases to cover more scenarios, ensuring comprehensive functionality and edge case testing.
  3. Use Assertions: Integrate assertions to verify that the program behaves as expected. This can help in automatic testing and grading.
  4. Error Handling Improvements: Refine the exception messages for better clarity and guidance on what went wrong.
  5. Input Validation: Implement input validation to handle potential edge cases and prevent unexpected behavior.
  6. Utilize Logging: Incorporate logging mechanisms to capture and report events within the program, aiding in debugging and monitoring.
  7. Specific Programming Language Determine which coding language should be used so to have consistency in expected output

About

Data Processing and Storage

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages