From 003008877a28b7c35eac6abb75f32e9cac0bb147 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=E1=BA=A1=20Quang=20Kh=C3=B4i?= Date: Fri, 16 Aug 2024 10:15:33 +0700 Subject: [PATCH] Move mod get_knowledge to mod core --- src/{ => core}/get_knowledge.rs | 0 src/core/mod.rs | 1 + src/lib.rs | 1 - src/working_database.rs | 2 +- 4 files changed, 2 insertions(+), 2 deletions(-) rename src/{ => core}/get_knowledge.rs (100%) diff --git a/src/get_knowledge.rs b/src/core/get_knowledge.rs similarity index 100% rename from src/get_knowledge.rs rename to src/core/get_knowledge.rs diff --git a/src/core/mod.rs b/src/core/mod.rs index 49bd116..fbd9ec7 100644 --- a/src/core/mod.rs +++ b/src/core/mod.rs @@ -1,2 +1,3 @@ /*! This file contains the core logic of the application. */ +pub mod get_knowledge; \ No newline at end of file diff --git a/src/lib.rs b/src/lib.rs index 223e955..5dbfb97 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -11,4 +11,3 @@ mod postgresql_queries; mod app_fn_impl; mod preparation; mod sqlite_queries; -mod get_knowledge; diff --git a/src/working_database.rs b/src/working_database.rs index 3e9719a..00515e1 100644 --- a/src/working_database.rs +++ b/src/working_database.rs @@ -2,7 +2,7 @@ use std::env::var; use std::time::SystemTime; use postgres::error::SqlState; use rusqlite::{Connection}; -use crate::get_knowledge::get_tables; +use crate::core::get_knowledge::get_tables; use crate::database::connect; use crate::postgresql_queries::query_get_self_references_tables; use crate::table::{build_base_simple_table, create_tables_table, insert_new_table, Table};