based_pg

Types

pub type Config {
  Config(
    host: String,
    port: Int,
    database: String,
    username: String,
    password: String,
  )
}

Constructors

  • Config(
      host: String,
      port: Int,
      database: String,
      username: String,
      password: String,
    )

Functions

pub fn adapter(
  config: Config,
) -> BasedAdapter(Config, Connection, a)

Returns a BasedAdapter that can be passed into based.register.

Search Document