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: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[package]
name = "rapid_naive_sql"
name = "jsdb"
version = "0.3.0-alpha"
authors = ["Andrew Kushyk <akushyk799 at proton.me>"]
edition = "2021"
description = "Rapid Naive SQL is a database API designed for high-performance data management"
authors = ["Andrew Kushyk <akushyk799 at gmail.com>"]
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"

Expand Down
33 changes: 0 additions & 33 deletions Makefile

This file was deleted.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# JSDB - Just Simple DataBase
# JSDB - Just a Simple DataBase

Simple Database implemented in Rust.

Expand All @@ -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
Expand Down
Binary file removed images/large_logo.png
Binary file not shown.
Binary file removed images/medium_logo.png
Binary file not shown.
Binary file removed images/small_logo.png
Binary file not shown.
4 changes: 2 additions & 2 deletions src/database/mod.rs → src/database.rs
Original file line number Diff line number Diff line change
@@ -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
Expand Down
10 changes: 5 additions & 5 deletions src/database/database.rs
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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<String> = RNSQL::new();
/// let mut project: JSDB<String> = JSDB::new();
/// if let Some(database) = project.databases.get_mut("database name") {
/// let tb1 = Table::create_table();
/// database.add_table("table name", tb1);
Expand Down
8 changes: 4 additions & 4 deletions src/database/row.rs
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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") {
Expand Down
10 changes: 5 additions & 5 deletions src/database/table.rs
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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<String> = RNSQL::new();
/// let mut project: JSDB<String> = JSDB::new();
///
/// if let Some(database) = project.databases.get_mut("database name") {
/// if let Some(table) = database.tables.get_mut("table name") {
Expand Down
4 changes: 2 additions & 2 deletions src/functionality/mod.rs → src/functionality.rs
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/functionality/database.rs
Original file line number Diff line number Diff line change
@@ -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
Expand Down
23 changes: 12 additions & 11 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -16,34 +16,35 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

//! # 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<String> = RNSQL::new();
/// let mut project: JSDB<String> = JSDB::new();
/// let db1 = Database::create_database();
/// project.add_database("database name", db1);
/// ```
#[derive(Debug)]
pub struct RNSQL<Value> {
pub struct JSDB<Value> {
pub databases: HashMap<String, Database<Value>>,
}

impl<Value> RNSQL<Value> {
impl<Value> JSDB<Value> {
/// Creates an empty environment for holding databases
pub fn new() -> Self {
Self {
Expand Down
14 changes: 7 additions & 7 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -16,18 +16,18 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

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";
const TB_NAME: &str = "tb1";
const RW_NAME: u32 = 1;
const CL_NAME: &str = "cl1";

let mut project = RNSQL::new();
let mut project = JSDB::new();

println!("{:#?}\n\n", project);

Expand Down
4 changes: 2 additions & 2 deletions src/queries/mod.rs → src/queries.rs
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/queries/parser.rs
Original file line number Diff line number Diff line change
@@ -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
Expand Down