Beancount.Schemas.Close (beancount_ex v0.6.0)

Copy Markdown View Source

Persisted close directive (table beancount_closes).

Storage-layer counterpart of Beancount.Directives.Close.

Fields

  • date - the day the account closes.
  • account - account being closed, e.g. "Assets:Bank".
  • metadata - arbitrary key/value map.
  • file_order - zero-based position of the directive in the source.

Example

%Beancount.Schemas.Close{
  date: ~D[2026-12-31],
  account: "Assets:Bank",
  metadata: %{},
  file_order: 5
}

Summary

Types

t()

@type t() :: %Beancount.Schemas.Close{
  __meta__: term(),
  account: term(),
  date: term(),
  file_order: term(),
  id: term(),
  inserted_at: term(),
  metadata: term(),
  updated_at: term()
}