Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# ecs-165a-database
# RedoxQL - ecs-165a-database
🦀 RedoxQL written in Rust and Python 🚀

![Rust](https://img.shields.io/badge/Rust-1A5D8A?style=for-the-badge&logo=rust&logoColor=white)
![Python](https://img.shields.io/badge/Python-3776AB?style=for-the-badge&logo=python&logoColor=white)

![image](https://github.com/user-attachments/assets/2ac1e769-afdf-4905-8d99-d18df26cc7ff)

> [!IMPORTANT]
> Read the Structure section — We use both Rust and Python and they go in different places

Expand Down
19 changes: 19 additions & 0 deletions python/lstore/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,25 @@
from typing import Final
from .lstore import RDatabase, RTable, hello_from_rust

def print_logo():
logo = r"""
______ _ _____ _
| ___ \ | | | _ | |
| |_/ /___ __| | _____ _| | | | |
| // _ \/ _` |/ _ \ \/ / | | | |
| |\ \ __/ (_| | (_) > <\ \/' / |____
\_| \_\___|\__,_|\___/_/\_\\_/\_\_____/

=======================================

RedoxQL is an L-Store database written
in Rust and Python.

Milestone: 1
"""

print(logo)

__all__: Final[list[str]] = [
"lstore",
]
3 changes: 3 additions & 0 deletions simple_tester.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
from lstore.db import Database
from lstore.query import Query
from lstore import show_logo

show_logo()

db = Database()
grades_table = db.create_table('Grades', 5, 0)
Expand Down