ParsePdoDsn
- Full name:
\Qubus\Expressive\ParsePdoDsn - This class is marked as final and can't be subclassed
- This class is a Final class
Constants
| Constant | Visibility | Type | Value |
SQLITE_DRIVERS | private | | ['sqlite', 'sqlite2', 'sqlite3'] |
Properties
driver
parameters
private array $parameters
path
Methods
__construct
public __construct(string $driver, array $parameters = [], ?string $path = null): mixed
Parameters:
| Parameter | Type | Description |
$driver | string | |
$parameters | array | |
$path | ?string | |
fromString
public static fromString(string $dsn): self
- This method is static. Parameters:
| Parameter | Type | Description |
$dsn | string | |
fromPdoDsn
private static fromPdoDsn(string $dsn): self
- This method is static. Parameters:
| Parameter | Type | Description |
$dsn | string | |
fromUri
private static fromUri(string $uri): self
- This method is static. Parameters:
| Parameter | Type | Description |
$uri | string | |
driver
isSqlite
host
port
database
public database(): ?string
path
username
public username(): ?string
password
public password(): ?string
charset
public charset(): ?string
get
public get(string $key, mixed $default = null): mixed
Parameters:
| Parameter | Type | Description |
$key | string | |
$default | mixed | |
has
public has(string $key): bool
Parameters:
| Parameter | Type | Description |
$key | string | |
parameters
public parameters(): array
toArray
toPdoDsn
public toPdoDsn(): string
toString
public toString(): string
__toString
public __toString(): string
isSqliteDriver
private static isSqliteDriver(string $driver): bool
- This method is static. Parameters:
| Parameter | Type | Description |
$driver | string | |