pub type Config { Config( host: String, port: Int, database: String, username: String, password: String, ) }
Config( host: String, port: Int, database: String, username: String, password: String, )
pub fn adapter( config: Config, ) -> BasedAdapter(Config, Connection, a)
Returns a BasedAdapter that can be passed into based.register.
BasedAdapter
based.register