diff --git a/Cargo.lock b/Cargo.lock index da1f8e1..b3d227c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,7 +1,7 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] -name = "rapid_naive_sql" +name = "jsdb" version = "0.3.0-alpha" diff --git a/Cargo.toml b/Cargo.toml index 459bcaa..cf7e10d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,9 +1,9 @@ [package] -name = "rapid_naive_sql" +name = "jsdb" version = "0.3.0-alpha" -authors = ["Andrew Kushyk "] -edition = "2021" -description = "Rapid Naive SQL is a database API designed for high-performance data management" +authors = ["Andrew Kushyk "] +edition = "2024" +description = "JSDB - Just a Simple DataBase is a database API designed for high-performance data management" license = "GPL-3.0-or-later" repository = "https://gitlab.com/git-user-cpp/rapid_naive_sql" diff --git a/Makefile b/Makefile deleted file mode 100644 index b7a302b..0000000 --- a/Makefile +++ /dev/null @@ -1,33 +0,0 @@ -.PHONY: help - -help: - @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-15s\033[0m %s\n", $$1, $$2}' - -clean: ## Clean the project using cargo - cargo clean - -lint: ## Lint the project using cargo - cargo clippy - -fmt: ## Format the project using cargo - cargo fmt - -all: ## Use everything at once - cargo clippy - cargo fmt - cargo build - -check: ## Check the project using cargo - cargo check - -build: ## Build the project using cargo - cargo build - -build-release: ## Build the release using cargo - cargo build --release - -run: ## Run the project - cargo run - -run-release: ## Run the release project - cargo run --release \ No newline at end of file diff --git a/README.md b/README.md index 48eb900..8f40c75 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# JSDB - Just Simple DataBase +# JSDB - Just a Simple DataBase Simple Database implemented in Rust. @@ -15,8 +15,8 @@ Simple Database implemented in Rust. ## ⚠️ LICENSE ⚠️ - JSDB - Just Simple DataBase. - Copyright (C) 2024 Andrew Kushyk + JSDB - Just a Simple DataBase. + Copyright (C) 2025 Andrew Kushyk This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/images/large_logo.png b/images/large_logo.png deleted file mode 100644 index c4589fa..0000000 Binary files a/images/large_logo.png and /dev/null differ diff --git a/images/medium_logo.png b/images/medium_logo.png deleted file mode 100644 index 2b9c90e..0000000 Binary files a/images/medium_logo.png and /dev/null differ diff --git a/images/small_logo.png b/images/small_logo.png deleted file mode 100644 index 46d0cec..0000000 Binary files a/images/small_logo.png and /dev/null differ diff --git a/src/database/mod.rs b/src/database.rs similarity index 90% rename from src/database/mod.rs rename to src/database.rs index 9b027e5..8795cee 100644 --- a/src/database/mod.rs +++ b/src/database.rs @@ -1,6 +1,6 @@ /* - * NaiveSQL implemented in Rust. - * Copyright (C) 2024 Andrew Kushyk + * JSDB - Just Simple DataBase. + * Copyright (C) 2024-2025 Andrew Kushyk * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/database/database.rs b/src/database/database.rs index a6fb386..774b76e 100644 --- a/src/database/database.rs +++ b/src/database/database.rs @@ -1,6 +1,6 @@ /* - * NaiveSQL implemented in Rust. - * Copyright (C) 2024 Andrew Kushyk + * JSDB - Just Simple DataBase. + * Copyright (C) 2024-2025 Andrew Kushyk * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -24,10 +24,10 @@ use std::collections::HashMap; /// # Examples /// /// ``` -/// use rapid_naive_sql::RNSQL; -/// use rapid_naive_sql::database::table::Table; +/// use jsdb::JSDB; +/// use jsdb::database::table::Table; /// -/// let mut project: RNSQL = RNSQL::new(); +/// let mut project: JSDB = JSDB::new(); /// if let Some(database) = project.databases.get_mut("database name") { /// let tb1 = Table::create_table(); /// database.add_table("table name", tb1); diff --git a/src/database/row.rs b/src/database/row.rs index 01fe427..bed7afb 100644 --- a/src/database/row.rs +++ b/src/database/row.rs @@ -1,6 +1,6 @@ /* - * NaiveSQL implemented in Rust. - * Copyright (C) 2024 Andrew Kushyk + * JSDB - Just Simple DataBase. + * Copyright (C) 2024-2025 Andrew Kushyk * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -23,9 +23,9 @@ use std::collections::HashMap; /// # Examples /// /// ``` -/// use rapid_naive_sql::RNSQL; +/// use jsdb::JSDB; /// -/// let mut project = RNSQL::new(); +/// let mut project = JSDB::new(); /// /// if let Some(database) = project.databases.get_mut("database name") { /// if let Some(table) = database.tables.get_mut("table name") { diff --git a/src/database/table.rs b/src/database/table.rs index 0aa45b7..a31661c 100644 --- a/src/database/table.rs +++ b/src/database/table.rs @@ -1,6 +1,6 @@ /* - * NaiveSQL implemented in Rust. - * Copyright (C) 2024 Andrew Kushyk + * JSDB - Just Simple DataBase. + * Copyright (C) 2024-2025 Andrew Kushyk * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -24,10 +24,10 @@ use std::collections::HashMap; /// # Examples /// /// ``` -/// use rapid_naive_sql::RNSQL; -/// use rapid_naive_sql::database::row::Row; +/// use jsdb::JSDB; +/// use jsdb::database::row::Row; /// -/// let mut project: RNSQL = RNSQL::new(); +/// let mut project: JSDB = JSDB::new(); /// /// if let Some(database) = project.databases.get_mut("database name") { /// if let Some(table) = database.tables.get_mut("table name") { diff --git a/src/functionality/mod.rs b/src/functionality.rs similarity index 90% rename from src/functionality/mod.rs rename to src/functionality.rs index d620ee8..ee5ddf5 100644 --- a/src/functionality/mod.rs +++ b/src/functionality.rs @@ -1,6 +1,6 @@ /* - * NaiveSQL implemented in Rust. - * Copyright (C) 2024 Andrew Kushyk + * JSDB - Just Simple DataBase. + * Copyright (C) 2024-2025 Andrew Kushyk * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/functionality/database.rs b/src/functionality/database.rs index 4998534..716ac06 100644 --- a/src/functionality/database.rs +++ b/src/functionality/database.rs @@ -1,6 +1,6 @@ /* - * NaiveSQL implemented in Rust. - * Copyright (C) 2024 Andrew Kushyk + * JSDB - Just Simple DataBase. + * Copyright (C) 2024-2025 Andrew Kushyk * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/lib.rs b/src/lib.rs index e8e5e1c..238c1b6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,6 +1,6 @@ /* - * NaiveSQL implemented in Rust. - * Copyright (C) 2024 Andrew Kushyk + * JSDB - Just Simple DataBase. + * Copyright (C) 2024-2025 Andrew Kushyk * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -16,34 +16,35 @@ * along with this program. If not, see . */ -//! # Rapid Naive SQL +//! # Just a Simple DataBase //! -//! `Rapid Naive SQL` is a database API designed for high-performance data management +//! `JSDB` is a database API designed for high-performance data management -use database::database::Database; -use std::collections::HashMap; pub mod database; pub mod functionality; pub mod queries; +use database::database::Database; +use std::collections::HashMap; + /// Creates environment for holding databases /// /// # Examples /// /// ``` -/// use rapid_naive_sql::RNSQL; -/// use rapid_naive_sql::database::database::Database; +/// use jsdb::JSDB; +/// use jsdb::database::database::Database; /// -/// let mut project: RNSQL = RNSQL::new(); +/// let mut project: JSDB = JSDB::new(); /// let db1 = Database::create_database(); /// project.add_database("database name", db1); /// ``` #[derive(Debug)] -pub struct RNSQL { +pub struct JSDB { pub databases: HashMap>, } -impl RNSQL { +impl JSDB { /// Creates an empty environment for holding databases pub fn new() -> Self { Self { diff --git a/src/main.rs b/src/main.rs index 91a034a..412514c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,6 +1,6 @@ /* - * NaiveSQL implemented in Rust. - * Copyright (C) 2024 Andrew Kushyk + * JSDB - Just Simple DataBase. + * Copyright (C) 2024-2025 Andrew Kushyk * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -16,10 +16,10 @@ * along with this program. If not, see . */ -use rapid_naive_sql::database::database::Database; -use rapid_naive_sql::database::row::Row; -use rapid_naive_sql::database::table::Table; -use rapid_naive_sql::RNSQL; +use jsdb::JSDB; +use jsdb::database::database::Database; +use jsdb::database::row::Row; +use jsdb::database::table::Table; fn main() { const DB_NAME: &str = "db1"; @@ -27,7 +27,7 @@ fn main() { const RW_NAME: u32 = 1; const CL_NAME: &str = "cl1"; - let mut project = RNSQL::new(); + let mut project = JSDB::new(); println!("{:#?}\n\n", project); diff --git a/src/queries/mod.rs b/src/queries.rs similarity index 90% rename from src/queries/mod.rs rename to src/queries.rs index 55a4ab5..bbe0acc 100644 --- a/src/queries/mod.rs +++ b/src/queries.rs @@ -1,6 +1,6 @@ /* - * NaiveSQL implemented in Rust. - * Copyright (C) 2024 Andrew Kushyk + * JSDB - Just Simple DataBase. + * Copyright (C) 2024-2025 Andrew Kushyk * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/queries/parser.rs b/src/queries/parser.rs index 4998534..716ac06 100644 --- a/src/queries/parser.rs +++ b/src/queries/parser.rs @@ -1,6 +1,6 @@ /* - * NaiveSQL implemented in Rust. - * Copyright (C) 2024 Andrew Kushyk + * JSDB - Just Simple DataBase. + * Copyright (C) 2024-2025 Andrew Kushyk * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by