From 88085579eb5344427adbb4c9b7c7438fc510f6d1 Mon Sep 17 00:00:00 2001 From: git-user-cpp Date: Fri, 15 Mar 2024 12:32:51 +0200 Subject: [PATCH] v0.1.0-remake --- .gitignore | 1 + CONTRIBUTING.md | 36 +++++++ Makefile | 24 +++++ src/main.rs | 9 +- .../controller/create_table_handler.rs | 31 ------- src/main_module/controller/mod.rs | 19 ---- src/main_module/mod.rs | 20 ---- src/main_module/model/data/data_handler.rs | 41 -------- src/main_module/model/data/data_object.rs | 32 ------- src/main_module/model/data/mod.rs | 22 ----- src/main_module/model/data/table.rs | 93 ------------------- src/main_module/model/data/table_row.rs | 61 ------------ src/main_module/model/mod.rs | 20 ---- .../queries/commands/create_table_command.rs | 40 -------- .../queries/commands/insert_into_command.rs | 27 ------ src/main_module/model/queries/commands/mod.rs | 21 ----- .../model/queries/commands/querry_command.rs | 21 ----- src/main_module/model/queries/mod.rs | 23 ----- src/main_module/model/queries/query.rs | 23 ----- .../model/queries/query_element.rs | 21 ----- src/main_module/model/queries/query_entity.rs | 19 ---- .../model/queries/query_keyword.rs | 25 ----- 22 files changed, 63 insertions(+), 566 deletions(-) create mode 100644 CONTRIBUTING.md create mode 100644 Makefile delete mode 100644 src/main_module/controller/create_table_handler.rs delete mode 100644 src/main_module/controller/mod.rs delete mode 100644 src/main_module/mod.rs delete mode 100644 src/main_module/model/data/data_handler.rs delete mode 100644 src/main_module/model/data/data_object.rs delete mode 100644 src/main_module/model/data/mod.rs delete mode 100644 src/main_module/model/data/table.rs delete mode 100644 src/main_module/model/data/table_row.rs delete mode 100644 src/main_module/model/mod.rs delete mode 100644 src/main_module/model/queries/commands/create_table_command.rs delete mode 100644 src/main_module/model/queries/commands/insert_into_command.rs delete mode 100644 src/main_module/model/queries/commands/mod.rs delete mode 100644 src/main_module/model/queries/commands/querry_command.rs delete mode 100644 src/main_module/model/queries/mod.rs delete mode 100644 src/main_module/model/queries/query.rs delete mode 100644 src/main_module/model/queries/query_element.rs delete mode 100644 src/main_module/model/queries/query_entity.rs delete mode 100644 src/main_module/model/queries/query_keyword.rs diff --git a/.gitignore b/.gitignore index f419dc7..112b9bd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /.idea /target +/.vscode \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..bd77035 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,36 @@ +# **Contributing to RapidNaiveSQL** + +## _Each contribution must be only in English and licensed as in LICENSE, without any additional terms or conditions._ + +## How to make a contribution? +First of all you'd better check the "Project" section to be aware of development process. + +1. Fork a repository. +2. Create a new branch (the branch name should be like this: ``` username_featurename_version ``` for instance ```git-user-cpp_addedmenu_v0_1_X```). +3. Provide your changes in that branch. +4. **Test** if everything works properly. +5. Then you can create a pull request. + +## How to report an issue? +1. Make sure the problem ain't on your side. +2. Check everything properly. +3. If you're entirely sure about an issue open it in "Issues" section: +``` +Problem: + + +Steps to reproduce: + + +Expected behaviour: + + +Screenshots: + + +Environment: + + RapidNaiveSQL version: + Rust version: + OS info: +``` \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c7a4cdd --- /dev/null +++ b/Makefile @@ -0,0 +1,24 @@ +.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 + +build: ## Build the project using cargo + cargo build + +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 + +run: ## Run the project + cargo run \ No newline at end of file diff --git a/src/main.rs b/src/main.rs index fc38689..6f3b172 100644 --- a/src/main.rs +++ b/src/main.rs @@ -16,11 +16,6 @@ * along with this program. If not, see . */ -use crate::main_module::model::data::data_object::DataObject; - -pub mod main_module; - fn main() { - let new_obj = DataObject::new("name", "Oleg"); - println!("{:?}", new_obj); -} + println!("database"); +} \ No newline at end of file diff --git a/src/main_module/controller/create_table_handler.rs b/src/main_module/controller/create_table_handler.rs deleted file mode 100644 index c30d5ce..0000000 --- a/src/main_module/controller/create_table_handler.rs +++ /dev/null @@ -1,31 +0,0 @@ -/* - * NaiveSQL implemented in Rust. - * Copyright (C) 2024 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 - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -use crate::main_module::model::data::data_handler::DataHandler; - -pub struct CreateTableHandler { - data_handler: DataHandler, -} - -impl CreateTableHandler { - pub fn new() -> Self { - let data_handler = DataHandler::new(); - - CreateTableHandler { data_handler } - } -} diff --git a/src/main_module/controller/mod.rs b/src/main_module/controller/mod.rs deleted file mode 100644 index 030e024..0000000 --- a/src/main_module/controller/mod.rs +++ /dev/null @@ -1,19 +0,0 @@ -/* - * NaiveSQL implemented in Rust. - * Copyright (C) 2024 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 - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -pub mod create_table_handler; diff --git a/src/main_module/mod.rs b/src/main_module/mod.rs deleted file mode 100644 index 8596cba..0000000 --- a/src/main_module/mod.rs +++ /dev/null @@ -1,20 +0,0 @@ -/* - * NaiveSQL implemented in Rust. - * Copyright (C) 2024 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 - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -pub mod controller; -pub mod model; diff --git a/src/main_module/model/data/data_handler.rs b/src/main_module/model/data/data_handler.rs deleted file mode 100644 index b46b5c4..0000000 --- a/src/main_module/model/data/data_handler.rs +++ /dev/null @@ -1,41 +0,0 @@ -/* - * NaiveSQL implemented in Rust. - * Copyright (C) 2024 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 - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -use std::collections::{HashMap, HashSet}; - -use crate::main_module::model::data::table::Table; - -pub struct DataHandler { - tables: HashMap, -} - -impl DataHandler { - pub fn new() -> Self { - DataHandler { - tables: HashMap::new(), - } - } - - pub fn create_new_table(str: &str, set: HashSet) { - todo!() - } - - pub fn insert_into_table() { - todo!() - } -} diff --git a/src/main_module/model/data/data_object.rs b/src/main_module/model/data/data_object.rs deleted file mode 100644 index 1f8a9c1..0000000 --- a/src/main_module/model/data/data_object.rs +++ /dev/null @@ -1,32 +0,0 @@ -/* - * NaiveSQL implemented in Rust. - * Copyright (C) 2024 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 - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -#[derive(Debug)] -pub struct DataObject { - field_name: String, - value: String, -} - -impl DataObject { - pub fn new(field_name: &str, field_value: &str) -> Self { - DataObject { - field_name: String::from(field_name), - value: String::from(field_value), - } - } -} diff --git a/src/main_module/model/data/mod.rs b/src/main_module/model/data/mod.rs deleted file mode 100644 index 103cbc9..0000000 --- a/src/main_module/model/data/mod.rs +++ /dev/null @@ -1,22 +0,0 @@ -/* - * NaiveSQL implemented in Rust. - * Copyright (C) 2024 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 - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -pub mod data_handler; -pub mod data_object; -pub mod table; -pub mod table_row; diff --git a/src/main_module/model/data/table.rs b/src/main_module/model/data/table.rs deleted file mode 100644 index 13248ac..0000000 --- a/src/main_module/model/data/table.rs +++ /dev/null @@ -1,93 +0,0 @@ -/* - * NaiveSQL implemented in Rust. - * Copyright (C) 2024 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 - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -use std::collections::{HashMap, HashSet}; - -use crate::main_module::model::data::data_object::DataObject; - -pub struct Table { - error_id: String, - error_arg: String, - error_rws: String, - column_names: HashSet, - rows: HashMap>, -} - -impl Table { - pub fn new() -> Self { - Table { - error_id: String::from("[ERROR] [Incorrect ID]"), - error_arg: String::from("[ERROR] [Incorrect rows in insert data package"), - error_rws: String::from("[ERROR] [Trying to reach an empty row]"), - column_names: HashSet::new(), - rows: HashMap::new(), - } - } - - fn generate_unique_id() { - todo!() - } - - fn verify_id() { - todo!() - } - - fn verify_field() { - todo!() - } - - fn verify_rows() { - todo!() - } - - fn verify_column_names_correct() { - todo!() - } - - fn verify_id_and_field() { - todo!() - } - - fn verify_id_and_columns() { - todo!() - } - - pub fn row_is_empty() { - todo!() - } - - pub fn get_field_value() { - todo!() - } - - pub fn add_row() { - todo!() - } - - pub fn return_row() { - todo!() - } - - pub fn remove_row() { - todo!() - } - - pub fn update_row_field_values() { - todo!() - } -} diff --git a/src/main_module/model/data/table_row.rs b/src/main_module/model/data/table_row.rs deleted file mode 100644 index b37004c..0000000 --- a/src/main_module/model/data/table_row.rs +++ /dev/null @@ -1,61 +0,0 @@ -/* - * NaiveSQL implemented in Rust. - * Copyright (C) 2024 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 - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -use crate::main_module::model::data::data_object::DataObject; - -pub struct TableRow { - incorrect_field_name: String, - fields: Vec, -} - -impl TableRow { - pub fn new(fields: Vec) -> Self { - TableRow { - incorrect_field_name: String::from("[ERROR] [Incorrect field name]"), - fields, - } - } - - pub fn add_field(data_object: DataObject) { - todo!() - } - - pub fn insert_field(data_object: DataObject) { - todo!() - } - - pub fn remove_field(field: String) { - todo!() - } - - pub fn remove_field_value(field: String) { - todo!() - } - - pub fn get_field_data_obj(field: String) { - todo!() - } - - pub fn replace_existing_obj_value(current: DataObject, new: DataObject) { - todo!() - } - - fn find_data_obj(field: String) { - todo!() - } -} diff --git a/src/main_module/model/mod.rs b/src/main_module/model/mod.rs deleted file mode 100644 index 0e4109d..0000000 --- a/src/main_module/model/mod.rs +++ /dev/null @@ -1,20 +0,0 @@ -/* - * NaiveSQL implemented in Rust. - * Copyright (C) 2024 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 - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -pub mod data; -pub mod queries; diff --git a/src/main_module/model/queries/commands/create_table_command.rs b/src/main_module/model/queries/commands/create_table_command.rs deleted file mode 100644 index cc3b9d4..0000000 --- a/src/main_module/model/queries/commands/create_table_command.rs +++ /dev/null @@ -1,40 +0,0 @@ -/* - * NaiveSQL implemented in Rust. - * Copyright (C) 2024 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 - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -use std::collections::HashSet; - -use crate::main_module::model::data::data_handler::DataHandler; -use crate::main_module::model::queries::commands::querry_command::QueryCommand; - -pub struct CreateTableCommand {} - -impl QueryCommand for CreateTableCommand { - fn execute_command(command_line: String) { - let binding = command_line.replace("\\);", ""); - let binding = binding.split(" \\("); - let mut command_addr = binding; - - let table_name = command_addr.next().unwrap(); - let column_name = command_addr.next().unwrap(); - let mut column_names: HashSet = HashSet::new(); - column_names.insert(column_name.to_string()); - let temp: HashSet = HashSet::new(); - - DataHandler::create_new_table(table_name, temp); - } -} diff --git a/src/main_module/model/queries/commands/insert_into_command.rs b/src/main_module/model/queries/commands/insert_into_command.rs deleted file mode 100644 index 3201689..0000000 --- a/src/main_module/model/queries/commands/insert_into_command.rs +++ /dev/null @@ -1,27 +0,0 @@ -/* - * NaiveSQL implemented in Rust. - * Copyright (C) 2024 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 - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -use crate::main_module::model::queries::commands::querry_command::QueryCommand; - -pub struct InsertIntoCommand {} - -impl QueryCommand for InsertIntoCommand { - fn execute_command(command_line: String) { - todo!() - } -} diff --git a/src/main_module/model/queries/commands/mod.rs b/src/main_module/model/queries/commands/mod.rs deleted file mode 100644 index 968283a..0000000 --- a/src/main_module/model/queries/commands/mod.rs +++ /dev/null @@ -1,21 +0,0 @@ -/* - * NaiveSQL implemented in Rust. - * Copyright (C) 2024 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 - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -pub mod create_table_command; -pub mod insert_into_command; -pub mod querry_command; diff --git a/src/main_module/model/queries/commands/querry_command.rs b/src/main_module/model/queries/commands/querry_command.rs deleted file mode 100644 index a478b5c..0000000 --- a/src/main_module/model/queries/commands/querry_command.rs +++ /dev/null @@ -1,21 +0,0 @@ -/* - * NaiveSQL implemented in Rust. - * Copyright (C) 2024 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 - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -pub trait QueryCommand { - fn execute_command(command_line: String); -} diff --git a/src/main_module/model/queries/mod.rs b/src/main_module/model/queries/mod.rs deleted file mode 100644 index c2747b7..0000000 --- a/src/main_module/model/queries/mod.rs +++ /dev/null @@ -1,23 +0,0 @@ -/* - * NaiveSQL implemented in Rust. - * Copyright (C) 2024 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 - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -pub mod commands; -pub mod query; -pub mod query_element; -pub mod query_entity; -pub mod query_keyword; diff --git a/src/main_module/model/queries/query.rs b/src/main_module/model/queries/query.rs deleted file mode 100644 index 0db0c9e..0000000 --- a/src/main_module/model/queries/query.rs +++ /dev/null @@ -1,23 +0,0 @@ -/* - * NaiveSQL implemented in Rust. - * Copyright (C) 2024 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 - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -use crate::main_module::model::queries::query_element::QueryElement; - -pub struct Query { - query_elements: Vec, -} diff --git a/src/main_module/model/queries/query_element.rs b/src/main_module/model/queries/query_element.rs deleted file mode 100644 index c107e4e..0000000 --- a/src/main_module/model/queries/query_element.rs +++ /dev/null @@ -1,21 +0,0 @@ -/* - * NaiveSQL implemented in Rust. - * Copyright (C) 2024 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 - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -pub struct QueryElement { - query_composition: Vec, -} diff --git a/src/main_module/model/queries/query_entity.rs b/src/main_module/model/queries/query_entity.rs deleted file mode 100644 index 27d370e..0000000 --- a/src/main_module/model/queries/query_entity.rs +++ /dev/null @@ -1,19 +0,0 @@ -/* - * NaiveSQL implemented in Rust. - * Copyright (C) 2024 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 - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -pub struct QueryEntity {} diff --git a/src/main_module/model/queries/query_keyword.rs b/src/main_module/model/queries/query_keyword.rs deleted file mode 100644 index f31e369..0000000 --- a/src/main_module/model/queries/query_keyword.rs +++ /dev/null @@ -1,25 +0,0 @@ -/* - * NaiveSQL implemented in Rust. - * Copyright (C) 2024 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 - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -pub enum QueryKeyword { - CREATE_TABLE, - SELECT, - UPDATE, - DELETE, - INSERT_INTO, -}