Database
WeeSpeed uses the lightweight Medoo as the database engine.
Medoo is a lightweight PHP database framework that provides an easy-to-use API and supports MySQL, MSSQL, SQLite, MariaDB, Oracle, Sybase, PostgreSQL and other databases.
Configuration
After adding the database configuration environment variable to the .env file, WeeSpeed will automatically connect to the database.
Database Driver
Medoo uses PDO as the database driver. PDO is the database abstraction layer officially provided by PHP. It provides a unified interface, allowing us to use the same code to operate different databases.
Please make sure that the database PDO driver you configured is installed.
Use
After configuring the database, you can use the Db class in the controller to manipulate the database.