Library Group: database

Generated by php build/docs/rvn-docs.php. Do not edit this file by hand.

| Symbol | Kind | Summary | @return |
| --- | --- | --- | --- |
| corePath() | function | Resolves the canonical SQLite file path from configured base-path input. | string Absolute SQLite file path. |
| looksLikeFilePath() | function | Returns true when one configured path already points to a SQLite file. | bool True when the path ends with .db or .sqlite. |
| Raven\Lib\Database\DbDriver::driver() | method | Returns the canonical driver slug from the database config array. | string Canonical driver slug: sqlite, mysql, or pgsql. |
| Raven\Lib\Database\DbDriver::prefix() | method | Returns the sanitized table name prefix from the database config array. | string Table prefix string, empty when not configured. |
| Raven\Lib\Database\MysqlConfig::__construct() | method | Stores a normalized MySQL config section. | (No @return.) |
| Raven\Lib\Database\MysqlConfig::dsn() | method | Returns the PDO DSN string for MySQL. | string MySQL PDO DSN. |
| Raven\Lib\Database\MysqlConfig::fromConfig() | method | Builds a MySQL config helper from the Raven database config payload. | self MySQL helper backed by the mysql config section. |
| Raven\Lib\Database\MysqlConfig::password() | method | Returns the configured MySQL password. | string MySQL password, or empty string when not configured. |
| Raven\Lib\Database\MysqlConfig::username() | method | Returns the configured MySQL username. | string MySQL username, or empty string when not configured. |
| Raven\Lib\Database\PgsqlConfig::__construct() | method | Stores a normalized PostgreSQL config section. | (No @return.) |
| Raven\Lib\Database\PgsqlConfig::dsn() | method | Returns the PDO DSN string for PostgreSQL. | string PostgreSQL PDO DSN. |
| Raven\Lib\Database\PgsqlConfig::fromConfig() | method | Builds a PostgreSQL config helper from the Raven database config payload. | self PostgreSQL helper backed by the pgsql config section. |
| Raven\Lib\Database\PgsqlConfig::password() | method | Returns the configured PostgreSQL password. | string PostgreSQL password, or empty string when not configured. |
| Raven\Lib\Database\PgsqlConfig::username() | method | Returns the configured PostgreSQL username. | string PostgreSQL username, or empty string when not configured. |
| Raven\Lib\Database\SqlInsert::insert() | method | Returns a plain INSERT statement with named placeholders for each column. | string Raw SQL string ready for use with PDO::prepare(). |
| Raven\Lib\Database\SqlInsert::insertIgnore() | method | Returns a driver-appropriate INSERT that silently skips duplicate rows. | string Raw SQL string ready for use with PDO::prepare(). |
| Raven\Lib\Database\SqliteBootstrap::bootstrap() | method | Applies mandatory SQLite PRAGMAs to a freshly opened connection. | (No @return.) |
| Raven\Lib\Database\SqliteBootstrap::ensureDir() | method | Creates the parent directory of an SQLite database file when it does not exist. | (No @return.) |
| Raven\Lib\Database\SqliteConfig::__construct() | method | Stores the configured SQLite base path, trimming any trailing slash. | (No @return.) |
| Raven\Lib\Database\SqliteConfig::fromConfig() | method | Builds a SQLite path helper directly from the Raven database config payload. | self SQLite path helper initialized from sqlite.path. |
| Raven\Lib\Database\SqliteConfig::path() | method | Returns the absolute SQLite file path for the given Raven canonical key. | string Absolute path to the SQLite database file. |
| Raven\Lib\Database\SqlTable::appTable() | method | Returns the prefixed app-database table name for a given base table. | string Fully prefixed table name ready for use in SQL. |

Parameter Details

corePath()

  • File: private/lib/Database/SqliteConfig.php
  • Params: (none)

looksLikeFilePath()

  • File: private/lib/Database/SqliteConfig.php
  • Params:
  • string $path Candidate configured path.

Raven\Lib\Database\DbDriver::driver()

  • File: private/lib/Database/DbDriver.php
  • Params:
  • array<string, mixed> $config Raven database configuration array.

Raven\Lib\Database\DbDriver::prefix()

  • File: private/lib/Database/DbDriver.php
  • Params:
  • array<string, mixed> $config Raven database configuration array.

Raven\Lib\Database\MysqlConfig::__construct()

  • File: private/lib/Database/MysqlConfig.php
  • Params:
  • array<string, mixed> $settings MySQL connection settings.

Raven\Lib\Database\MysqlConfig::dsn()

  • File: private/lib/Database/MysqlConfig.php
  • Params: (none)

Raven\Lib\Database\MysqlConfig::fromConfig()

  • File: private/lib/Database/MysqlConfig.php
  • Params:
  • array<string, mixed> $config Raven database configuration array.

Raven\Lib\Database\MysqlConfig::password()

  • File: private/lib/Database/MysqlConfig.php
  • Params: (none)

Raven\Lib\Database\MysqlConfig::username()

  • File: private/lib/Database/MysqlConfig.php
  • Params: (none)

Raven\Lib\Database\PgsqlConfig::__construct()

  • File: private/lib/Database/PgsqlConfig.php
  • Params:
  • array<string, mixed> $settings PostgreSQL connection settings.

Raven\Lib\Database\PgsqlConfig::dsn()

  • File: private/lib/Database/PgsqlConfig.php
  • Params: (none)

Raven\Lib\Database\PgsqlConfig::fromConfig()

  • File: private/lib/Database/PgsqlConfig.php
  • Params:
  • array<string, mixed> $config Raven database configuration array.

Raven\Lib\Database\PgsqlConfig::password()

  • File: private/lib/Database/PgsqlConfig.php
  • Params: (none)

Raven\Lib\Database\PgsqlConfig::username()

  • File: private/lib/Database/PgsqlConfig.php
  • Params: (none)

Raven\Lib\Database\SqlInsert::insert()

  • File: private/lib/Database/SqlInsert.php
  • Params:
  • string $table Target table name.
  • array<int, string> $columns Ordered list of column names to insert.

Raven\Lib\Database\SqlInsert::insertIgnore()

  • File: private/lib/Database/SqlInsert.php
  • Params:
  • string $driver PDO driver name: sqlite, mysql, or pgsql.
  • string $table Target table name.
  • array<int, string> $columns Ordered list of column names to insert.
  • array<int, string> $conflictColumns Columns that define the uniqueness conflict (SQLite/PgSQL).

Raven\Lib\Database\SqliteBootstrap::bootstrap()

  • File: private/lib/Database/SqliteBootstrap.php
  • Params:
  • PDO $pdo SQLite PDO connection to initialize.

Raven\Lib\Database\SqliteBootstrap::ensureDir()

  • File: private/lib/Database/SqliteBootstrap.php
  • Params:
  • string $path Absolute path to the SQLite database file (not the directory itself).

Raven\Lib\Database\SqliteConfig::__construct()

  • File: private/lib/Database/SqliteConfig.php
  • Params:
  • string $basePath Configured SQLite path value from the database config (file or directory).

Raven\Lib\Database\SqliteConfig::fromConfig()

  • File: private/lib/Database/SqliteConfig.php
  • Params:
  • array<string, mixed> $config Raven database configuration array.

Raven\Lib\Database\SqliteConfig::path()

  • File: private/lib/Database/SqliteConfig.php
  • Params:
  • string $key Canonical path key: 'core', 'pages', 'auth', or 'taxonomy'.

Raven\Lib\Database\SqlTable::appTable()

  • File: private/lib/Database/SqlTable.php
  • Params:
  • string $driver Database driver identifier (reserved for future quoting strategies).
  • string $prefix Configured table prefix (e.g. \rvn_\).
  • string $table Base table name without prefix.