0.1.0
This commit is contained in:
11
kb-store/src/core.rs
Normal file
11
kb-store/src/core.rs
Normal file
@@ -0,0 +1,11 @@
|
||||
// file: kb-store/src/core.rs
|
||||
// version: 1
|
||||
|
||||
//! Store-neutral contracts.
|
||||
|
||||
/// Store health summary.
|
||||
#[derive(Clone, Debug, Eq, PartialEq)]
|
||||
pub struct StoreHealth {
|
||||
/// Whether the backend is available.
|
||||
pub available: bool,
|
||||
}
|
||||
14
kb-store/src/lib.rs
Normal file
14
kb-store/src/lib.rs
Normal file
@@ -0,0 +1,14 @@
|
||||
// file: kb-store/src/lib.rs
|
||||
// version: 1
|
||||
|
||||
#![forbid(unsafe_code)]
|
||||
#![deny(unreachable_pub)]
|
||||
#![warn(missing_docs)]
|
||||
|
||||
//! Consolidated storage crate.
|
||||
|
||||
pub mod core;
|
||||
pub mod postgres;
|
||||
|
||||
/// Store health summary.
|
||||
pub use crate::core::StoreHealth;
|
||||
9
kb-store/src/postgres.rs
Normal file
9
kb-store/src/postgres.rs
Normal file
@@ -0,0 +1,9 @@
|
||||
// file: kb-store/src/postgres.rs
|
||||
// version: 1
|
||||
|
||||
//! PostgreSQL backend boundary.
|
||||
|
||||
/// PostgreSQL backend migration status.
|
||||
pub fn migration_status() -> &'static str {
|
||||
return "pending-source-port";
|
||||
}
|
||||
Reference in New Issue
Block a user