#[macro_use]
extern crate diesel_migrations;
-use chrono::NaiveDateTime;
use diesel::{result::Error, *};
use regex::Regex;
use serde::{Deserialize, Serialize};
use std::{env, env::VarError};
pub mod aggregates;
-pub mod schema;
pub mod source;
pub mod views;
(limit, offset)
}
-pub fn naive_now() -> NaiveDateTime {
- chrono::prelude::Utc::now().naive_utc()
-}
-
pub fn is_email_regex(test: &str) -> bool {
EMAIL_REGEX.is_match(test)
}