Kickstarts redbean for you. This method should be called before you start using
RedBean. The Setup() method can be called without any arguments, in this case it will
try to create a SQLite database in /tmp called red.db (this only works on UNIX-like systems).
public static setup ( string $dsn = NULL, string $username = NULL, string $password = NULL, boolean $frozen = FALSE ) : ToolBox | ||
$dsn | string | Database connection string |
$username | string | Username for database |
$password | string | Password for database |
$frozen | boolean | TRUE if you want to setup in frozen mode |
Результат | ToolBox |