PHP VersionPress\Database Namespace

Сlasses

Name Description
Database DB access class used by VersionPress, and VersionPress only. It is a proxy to `$wpdb` with the same API but always uses the original, unrewritten `query()` implementation. The client code usually just accesses the `$database` object which it gets from the DI container. VersionPress code almost never uses $wpdb directly.
DbSchemaInfo Describes parts of the DB schema, specifically telling how to identify entities and what are the relationships between them. The information is loaded from a *.neon file which is described in `schema-readme.md`.
EntityInfo Info about an entity. Basically represents a section of the YAML schema file - find the parsing logic in the constructor.
ParsedQueryData
ShortcodesInfo Describes shortcodes and their references to DB entities.
ShortcodesReplacer Class for replacing IDs in shortcodes with VPIDs (and vice versa).
SqlQueryParser
TableSchemaStorage This class acts as a storage for DDL scripts of site's tables. It saves the DDL scripts as individual files (.sql) to a directory specified in the constructor. Also, it automatically removes and restores the prefix.
VpidRepository
WpdbMirrorBridge Bridge between hooks in {@see wpdb} and {@see Mirror}. Transforms WordPress data to the form suitable for Mirror.