0.1.0
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
# file: kb_store_sqlite/Cargo.toml
|
||||
# version: 1
|
||||
|
||||
[package]
|
||||
name = "kb_store_sqlite"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
license.workspace = true
|
||||
publish.workspace = true
|
||||
|
||||
[dependencies]
|
||||
kb_core = { path = "../kb_core" }
|
||||
kb_model = { path = "../kb_model" }
|
||||
kb_store_core = { path = "../kb_store_core" }
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
@@ -0,0 +1,17 @@
|
||||
<!-- file: kb_store_sqlite/README.md -->
|
||||
<!-- version: 1 -->
|
||||
|
||||
# kb_store_sqlite
|
||||
|
||||
Ce crate conserve une compatibilité SQLite limitée pour les tests, imports et corpus legacy.
|
||||
|
||||
## Rôle dans l'écosystème
|
||||
|
||||
Ce module fait partie du découpage strict de Khadhroony Bot2. Il doit conserver des dépendances limitées et ne pas contourner les interfaces communes du workspace.
|
||||
|
||||
## Règles locales
|
||||
|
||||
- Les commentaires de code restent en anglais.
|
||||
- La documentation Markdown reste en français.
|
||||
- Les exports publics sont contrôlés depuis `lib.rs` lorsque le crate expose une bibliothèque.
|
||||
- Les binaires utilisent `main.rs` avec les attributs Rust obligatoires.
|
||||
@@ -0,0 +1,12 @@
|
||||
// file: kb_store_sqlite/src/lib.rs
|
||||
// version: 1
|
||||
|
||||
//! SQLite storage implementation boundary for tests and legacy imports.
|
||||
#![warn(missing_docs)]
|
||||
#![deny(unreachable_pub)]
|
||||
#![forbid(unsafe_code)]
|
||||
|
||||
mod store;
|
||||
|
||||
/// Minimal store handle placeholder.
|
||||
pub use crate::store::SqliteStore;
|
||||
@@ -0,0 +1,18 @@
|
||||
// file: kb_store_sqlite/src/store.rs
|
||||
// version: 1
|
||||
|
||||
//! Store implementation scaffold for the `kb_store_sqlite` crate.
|
||||
|
||||
/// Minimal store handle placeholder.
|
||||
#[derive(Clone, Debug, Eq, PartialEq)]
|
||||
pub struct SqliteStore {
|
||||
/// Database URL or file path.
|
||||
pub database_url: std::string::String,
|
||||
}
|
||||
|
||||
impl SqliteStore {
|
||||
/// Creates a new store handle.
|
||||
pub fn new(database_url: impl std::convert::Into<std::string::String>) -> Self {
|
||||
return Self { database_url: database_url.into() };
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user