Documentation
¶
Overview ¶
Package database describes the database a XenForo environment is configured to use, and how to reach it from a client running on the host.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OrbStackHost ¶
OrbStackHost returns the hostname OrbStack gives a compose service, which resolves from macOS without publishing ports: <service>.<project>.orb.local.
Types ¶
type Driver ¶
type Driver string
Driver identifies a database engine supported by the environment.
func Detect ¶
Detect resolves the driver selected by a set of compose contexts, as found in XF_CONTEXTS.
The first database context wins. The database engine is not declared anywhere else the host can read, so the context is the source of truth until XenForo itself can be asked.
func (Driver) DefaultPort ¶
DefaultPort returns the TCP port the driver listens on, or 0 for file-based drivers such as SQLite.