PostgresToEcto (PostgresToEcto v0.1.2)

Copy Markdown View Source

Generate Ecto source from an explicitly configured PostgreSQL profile.

The generator validates a profile, introspects its selected PostgreSQL tables, and renders one managed baseline migration.

Summary

Types

generation_option()

@type generation_option() :: {:dry_run, boolean()} | {:force, boolean()}

Functions

generate(profile_module, options \\ [])

@spec generate(module(), [generation_option()]) ::
  {:ok, PostgresToEcto.Result.t()} | {:error, PostgresToEcto.Result.t()}