pub mod types;
pub mod filters;
pub mod user;
pub mod post;
pub mod comment;
pub mod role;
pub mod post_status;
pub use types::*;
pub use filters::*;
pub use user::User;
pub use post::Post;
pub use comment::Comment;
pub use role::Role;
pub use post_status::PostStatus;
pub struct PraxClient<E: prax_query::QueryEngine> {
engine: E,
}
impl<E: prax_query::QueryEngine> PraxClient<E> {
pub fn new(engine: E) -> Self {
Self { engine }
}
pub fn user(&self) -> user::UserOperations<E> {
user::UserOperations::new(&self.engine)
}
pub fn post(&self) -> post::PostOperations<E> {
post::PostOperations::new(&self.engine)
}
pub fn comment(&self) -> comment::CommentOperations<E> {
comment::CommentOperations::new(&self.engine)
}
}