Riptide.Store.Postgres.child_spec

You're seeing just the function child_spec, go back to Riptide.Store.Postgres module for more information.

Convenience implementation of Supervisor.child_spec/1 to start up a Postgrex pool with name :postgres

Examples

children = [
  {Riptide.Store.Postgres, [
    hostname: "localhost",
    database: "riptide",
    username: "postgres",
    password: "postgres",
  ]},
  Riptide,
]
opts = [strategy: :one_for_one, name: Riptide.Supervisor]
Supervisor.start_link(children, opts)