MCPcopy Create free account
hub / github.com/Kilerd/rubble / postgres

Method postgres

src/data.rs:13–16  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

11
12impl RubbleData {
13 pub fn postgres(&self) -> PooledConnection<ManagedPgConn> {
14 let pool = self.pool.clone();
15 pool.get().unwrap()
16 }
17
18 pub fn render(&self, template_name: &str, data: &Context) -> String {
19 self.tera.render(template_name, data).unwrap()

Callers 15

from_requestMethod · 0.80
homepageFunction · 0.80
single_articleFunction · 0.80
get_article_by_urlFunction · 0.80
admin_authenticationFunction · 0.80
admin_panelFunction · 0.80
admin_show_pageFunction · 0.80
article_creationFunction · 0.80
article_editFunction · 0.80
article_saveFunction · 0.80
article_updateFunction · 0.80
article_deletionFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected