Skip to content

Commit

Permalink
chore: add debug trait to DatabaseBuilder and ModelBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-herlemont committed Dec 27, 2023
1 parent eab2764 commit c344194
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/database_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use std::sync::atomic::AtomicU64;
use std::sync::{Arc, RwLock};

/// Builder that allows you to create a [`Database`](crate::Database) instance via [`create`](Self::create) or [`open`](Self::open) etc. and [define](Self::define) models.
#[derive(Debug)]
pub struct DatabaseBuilder {
cache_size_bytes: Option<usize>,
models_builder: HashMap<String, ModelBuilder>,
Expand Down Expand Up @@ -321,6 +322,7 @@ impl DatabaseBuilder {
}
}

#[derive(Debug)]
pub(crate) struct ModelBuilder {
pub(crate) model: DatabaseModel,
pub(crate) native_model_options: NativeModelOptions,
Expand Down

0 comments on commit c344194

Please sign in to comment.