MCPcopy Create free account
hub / github.com/aiscriptdev/aiscript / get_sqlite_url

Method get_sqlite_url

aiscript-runtime/src/config/db.rs:48–55  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

46
47impl DatabaseConfig {
48 pub fn get_sqlite_url(&self) -> Option<String> {
49 self.sqlite.as_ref().and_then(|c| {
50 c.url
51 .clone()
52 .map(Into::into)
53 .or_else(|| c.database.as_ref().map(|db| format!("sqlite://{}", db)))
54 })
55 }
56
57 pub fn get_postgres_url(&self) -> Option<String> {
58 self.postgresql.as_ref().and_then(|c| {

Callers 1

get_sqlite_connectionFunction · 0.80

Calls 2

as_refMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected