Skip to content

Commit

Permalink
feat: app config
Browse files Browse the repository at this point in the history
  • Loading branch information
apskhem committed May 7, 2024
1 parent 1f121ed commit fe9f7ed
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
23 changes: 23 additions & 0 deletions hermes/bin/src/runtime_extensions/app_config.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
///! Hermes application configuration for modules.

/// Configuration struct for SQLite database.
///
/// This struct holds configuration options for SQLite database, including the path to the database
/// file and the maximum size of the database.

use crate::app::HermesAppName;

pub(crate) struct SqliteConfig {
/// Path to the SQLite database file.
db_file: Option<String>,
/// Maximum size of the SQLite database in bytes.
max_db_size: u32,
}

pub(crate) fn get_app_persistent_sqlite_db_cfg(_app_name: &HermesAppName) -> Option<SqliteConfig> {
todo!()
}

pub(crate) fn get_app_inmemory_sqlite_db_cfg(_app_name: &HermesAppName) -> Option<SqliteConfig> {
todo!()
}
1 change: 1 addition & 0 deletions hermes/bin/src/runtime_extensions/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

use tracing::{span, Level};

pub(crate) mod app_config;
pub(crate) mod bindings;
pub mod hermes;
pub(crate) mod wasi;
Expand Down

0 comments on commit fe9f7ed

Please sign in to comment.