pub type Database = Database;Aliased Type§
pub struct Database {
pub driver: Driver,
pub path: String,
}Fields§
§driver: DriverDatabase driver. Possible values are: sqlite3, and mysql.
path: StringDatabase connection string. The format depends on the database driver.
For sqlite3, the format is path/to/database.db, for example:
./storage/tracker/lib/database/sqlite3.db.
For Mysql, the format is mysql://db_user:db_user_password:port/db_name, for
example: mysql://root:password@localhost:3306/torrust.