This repository has been archived on 2023-07-04. You can view files and clone it, but cannot push or open issues/pull-requests.
blog/src/db/mod.rs

15 lines
450 B
Rust
Raw Normal View History

2021-11-23 09:32:08 +01:00
//! The db module contains all Diesel-related logic. This is to prevent the various Diesel imports
//! from poluting other modules' namespaces.
pub mod posts;
pub mod sections;
pub mod versions;
2021-11-23 09:32:08 +01:00
pub use posts::{NewPost, PatchPost, Post};
2021-11-23 20:21:29 +01:00
pub use sections::{NewSection, PatchSection, Section};
pub use versions::{NewVersion, PatchVersion, Version};
2021-11-28 21:45:29 +01:00
pub const MAX_POSTS: u32 = 64;
pub const MAX_SECTIONS: u32 = 64;
pub const MAX_VERSIONS: u32 = 16;