pooly 0.2.1

A protobuf to Postgres adapter + connection pooling middleware.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::models::utils::time;

#[derive(Clone)]
pub struct Clock;

impl Clock {

    pub fn new() -> Clock {
        Clock {}
    }

    pub fn now_seconds(&self) -> u64 {
        time::now_seconds()
    }

}