PHP Classes

File: backend/Database/config.php

Recommend this page to a friend!
  Classes of Rodrigo Faustino   App MFE   backend/Database/config.php   Download  
File: backend/Database/config.php
Role: Auxiliary script
Content type: text/plain
Description: Configuration script
Class: App MFE
Single-page application with micro-frontends
Author: By
Last change:
Date: 8 hours ago
Size: 1,069 bytes
 

Contents

Class file image Download
<?php
return [
   
'database' => [
       
'driver' => 'sqlite', // 'pgsql', 'mysql', 'sqlite', 'sqlsrv' ,
       
'mysql' => [
           
'host' => 'localhost',
           
'db_name' => 'a01_teste',
           
'username' => 'root',
           
'password' => 'root123',
           
'charset' => 'utf8'
       
],
       
'sqlite' => [
           
'path' => 'agenda.db',
        ],
       
'sqlsrv' => [
           
'host' => 'localhost',
           
'db_name' => 'a01_teste',
           
'username' => 'root',
           
'password' => 'root123',
           
'charset' => 'utf8'
       
],
       
'pgsql' => [
           
'host' => 'localhost',
           
'db_name' => 'postgres',
           
'username' => 'root',
           
'password' => 'root123',
           
'port' => '5432',
           
'charset' => 'utf8'
       
],
       
'mongodb' => [
           
'host' => 'localhost',
           
'db_name' => 'a01_teste_mongo',
           
'username' => 'mongo_user',
           
'password' => 'mongo_password',
           
'port' => '27017',
        ]
    ]

];