NexBase.Conn (nex_base v0.4.3)

Represents a database connection configuration.

Created by NexBase.init/1 and piped through query chains:

conn = NexBase.init(url: "postgres://localhost/mydb")
conn |> NexBase.from("users") |> NexBase.run()

Summary

Types

t()

@type t() :: %NexBase.Conn{
  adapter: :postgres | :sqlite,
  name: atom(),
  repo_config: keyword(),
  repo_module: module()
}