Code Monkey home page Code Monkey logo

rusql's Introduction

RUSQL

RUSQL is a SQLite-like database implemented in the Rust programming language.

Overview

RUSQL is a SQLite-like database implemented in the Rust programming language. It provides a colorful and interactive interface for viewing and printing database schemas, making it easy to visualize the structure of your data. RUSQL aims to provide a lightweight, efficient, and easy-to-use database solution for Rust applications. It supports a subset of SQL syntax and provides basic database functionalities such as creating tables, inserting data, and querying data.

Getting Started

To get started with RUSQL, follow these steps:

git clone https://github.com/HN026/Rusql.git
cd Rusql
cargo build
cargo run

Features

  • Lightweight and efficient
  • Supports a subset of SQL syntax
  • Basic CRUD operations
  • Implemented in Rust

Current Features

  • CREATE TABLE: Create a new table with specified columns and data types.
  • DROP TABLE: Delete an existing table.
  • INSERT: Insert new data into a table.
  • LIST TABLES: Lists the Tables Inside the Database.
  • Command History: View the history of commands, with suggestions and persistent saving across sessions.

Future Improvements

  • SELECT: Retrieve data from a table.
  • UPDATE: Update existing data in a table.
  • DELETE: Delete data from a table.
  • Data persistence: Save data to disk and load it back into the database across sessions.
  • Improved error handling: Provide more detailed error messages and handle more edge cases.
  • Support for more SQL syntax: Add support for more complex SQL queries and statements.
  • Testing: Implement unit tests and integration tests to ensure the reliability and correctness of the database.

MetaCommands

For information on the available meta commands, see the Meta Commands documentation.

Contributing to RUSQL

First off, thank you for considering contributing to RUSQL. It's people like you that make RUSQL such a great tool.

Where do I go from here?

If you've noticed a bug or have a feature request, make sure to check our Issues to see if someone else in the community has already created a ticket. If not, go ahead and make one!

Fork & create a branch

If this is something you think you can fix, then fork RUSQL and create a branch with a descriptive name.

A good branch name would be (where issue #123 is the ticket you're working on):

git checkout -b feature/123-AddNewFeature

Formatting

$ cargo fmt

Usage

For usage examples, please refer to the following screenshots:

CREATE TABLE

INSERT INTO TABLE

DELETE TABLE

LIST TABLES

You can also find SQL schema examples in the Schemas file.

License

This project is licensed under the MIT License.

Contact

Feel free to connect with me on LinkedIn and GitHub.

rusql's People

Contributors

hn026 avatar

Stargazers

Spaghetti Sensei avatar Ayman Makroo avatar Musharaf Aijaz Baba avatar

Watchers

 avatar

Forkers

musharraffaijaz

rusql's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.