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

//! 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;
pub use posts::{NewPost, PatchPost, Post};
pub use sections::{NewSection, PatchSection, Section};
pub use versions::{NewVersion, PatchVersion, Version};
pub const MAX_POSTS: u32 = 64;
pub const MAX_SECTIONS: u32 = 64;
pub const MAX_VERSIONS: u32 = 16;