based/testing
Types
A mock connection
pub type Connection {
Connection(c: Nil)
}
Constructors
-
Connection(c: Nil)
Functions
pub fn with_connection(
returned: Result(Returned(a), Nil),
callback: fn(DB(a, Connection)) -> b,
) -> b
For testing code without hitting a real database