1 use crate::source::secret::Secret;
2 use diesel::{result::Error, *};
5 /// Initialize the Secrets from the DB.
6 /// Warning: You should only call this once.
7 pub fn init(conn: &PgConnection) -> Result<Secret, Error> {
12 fn read_secrets(conn: &PgConnection) -> Result<Secret, Error> {
13 use crate::schema::secret::dsl::*;
14 secret.first::<Secret>(conn)