traits
Table of Contents
Traits
- ArangoAnalyzersTrait
- The database-level registry of declared **custom** analyzers, consumed by
the `arango:analyzers` action of `command:arangodb` (and signalled by the
`doctor`) — the analyzer counterpart of {@see ArangoIndexesTrait}.
- ArangoClientTrait
- Best-effort ArangoDB HTTP client builder for the `command:arangodb`
actions.
- ArangoCollectionsTrait
- Pure, side-effect-free helpers shared by the `command:arangodb`
dump / restore / collections actions.
- ArangoConfigTrait
- The command to manage an ArangoDB database.
- ArangoDumpTrait
- The command to manage an ArangoDB database.
- ArangoIndexesTrait
- The collection→indexes registry consumed by the `doctor` action of
`command:arangodb`, declared independently of the models: a map of collection
name to its declared indexes ({@see IndexDefinition} or {@see IndexOptions}
value objects, or raw definitions).
- ArangoMaskingTrait
- Compiles the **convenient** masking table and applies it to a dump with the
portable PHP masking engine (dump-only — the dump itself is anonymized).
- ArangoMigrationsTrait
- The migration settings of the `migrate` action of `command:arangodb`,
supplied via the command init keys
({@see \oihana\arango\commands\enums\ArangoCommandParam}): where the
version files live, the namespace they are declared in, and the tracking
collection name.
- ArangoModelsTrait
- The configured model list shared by the structure-aware actions of
`command:arangodb` (`views --diff/--sync` and `doctor`): the container
ids of the {@see \oihana\arango\models\Documents} definitions whose
declarations (`AQL::COLLECTION`, `AQL::INDEXES`, `AQL::VIEW`) are
inspected. Supplied via the `models` init key
({@see \oihana\arango\commands\enums\ArangoCommandParam::MODELS}).
- ArangoOptionsTrait
- Resolves the effective `arangodump` / `arangorestore` options by layering,
from the lowest to the highest precedence:
- ArangoProcessTrait
- Builds and runs the `arangodump` / `arangorestore` external processes
**without going through a shell**.
- ArangoProfileTrait
- Resolves the **named** and **external** dump/restore *profiles*.
- ArangoRestoreTrait
- The command to manage an ArangoDB database.
- ArangoRotationTrait
- Archive rotation for the `dump` action — **opt-in**.
- ArangoSearchAliasViewsTrait
- The database-level registry of declared `search-alias` views, consumed by the
`arango:views` action of `command:arangodb` — the federated counterpart of
{@see ArangoAnalyzersTrait}.
- DirectoryTrait
- Provides the dump/restore directory property and its initializer.