MCPcopy Create free account
hub / github.com/Autoparallel/learner / with_database_path

Method with_database_path

crates/learner/src/lib.rs:431–434  ·  view source on GitHub ↗

Sets the database file path. # Arguments `database_path` - Path where the SQLite database file should be stored # Examples ```no_run # use learner::Config; # use std::path::PathBuf; let config = Config::default().with_database_path(&PathBuf::from("~/papers/db.sqlite")); ```

(mut self, database_path: &Path)

Source from the content-addressed store, hash-verified

429 /// let config = Config::default().with_database_path(&PathBuf::from("~/papers/db.sqlite"));
430 /// ```
431 pub fn with_database_path(mut self, database_path: &Path) -> Self {
432 self.database_path = database_path.to_path_buf();
433 self
434 }
435
436 /// Sets the path for retriever configuration files.
437 ///

Callers 3

initFunction · 0.80
test_learner_creationFunction · 0.80
create_test_learnerFunction · 0.80

Calls

no outgoing calls

Tested by 2

test_learner_creationFunction · 0.64
create_test_learnerFunction · 0.64