Updated database & Implemented Docker support. (unfinished)
This commit is contained in:
parent
c380556255
commit
85a81784f9
25 changed files with 752 additions and 105 deletions
|
@ -80,4 +80,15 @@
|
|||
{
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Constructs and retrieves the Data Source Name (DSN) string.
|
||||
*
|
||||
* @return string The DSN string for the database connection.
|
||||
*/
|
||||
public function getDsn(): string
|
||||
{
|
||||
return sprintf('mysql:host=%s;dbname=%s;port=%s;charset=utf8mb4', $this->host, $this->name, $this->port);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue