AshCommanded.Commanded.Sections.ApplicationSection (AshCommanded v0.1.0)

View Source

Defines the schema for the application section of the Commanded DSL.

The application section allows configuring a Commanded application for an Ash domain, specifying settings such as the event store adapter, pubsub mechanism, and registry.

Example

defmodule MyApp.Domain do
  use Ash.Domain
  
  commanded do
    application do
      otp_app :my_app
      event_store Commanded.EventStore.Adapters.EventStore
      pubsub :local
      registry :local
      include_supervisor? true
      prefix "MyApp"
    end
  end
  
  # resources...
end

Summary

Functions

Returns the entities for the application section.

Returns the schema for the application section.

Functions

entities()

Returns the entities for the application section.

The application section doesn't define entities, only configuration options.

schema()

Returns the schema for the application section.