Pawn2:Storage
From Adapt
Storage engines in PAWN are composed of two parts. First is a general storage connection. This comprises the storage driver, and driver settings. The second part of the engine is the path mapper. The path mapper translates the PAWN-mapped path of an item to a local storage engine location.
- Storage Driver
- Handles the retrieval and storage of bits supplied by a client.
- Each driver instance has a set of parameters associated with it (ie, user/pass, etc)
- Storage Mapper
- A mapping agent supplied by a storage engine to map the PAWN context of a file to a storage driver representation.
- multiple mappers may be configured for each driver instance.
A typical configuration for PAWN would likely be a single storage engine defined for a domain and a domain-wide storage mapper that creates paths based on templates. A most complex example may be a single engine for a domain, but individual storage mappers for each package template specified.