Version 1.0
This commit is contained in:
Executable
+15
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
use BBOrm\Connections as Connections;
|
||||
|
||||
global $DB;
|
||||
|
||||
$DB = Connection::open([
|
||||
'driver' => 'pgsql',
|
||||
'host' => 'localhost',
|
||||
'prefix' => '_urfat',
|
||||
'name' => 'urfat',
|
||||
'user' => 'urfat',
|
||||
'pass' => 'urfat']);
|
||||
|
||||
Connections::add_connection($DB, "default");
|
||||
Executable
+40
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
use BBOrm\Connections as Connections;
|
||||
|
||||
/*
|
||||
* PostgreSQL
|
||||
*
|
||||
* Connections::add_connection(Connection::open([
|
||||
'driver' => 'pgsql',
|
||||
'host' => 'localhost',
|
||||
'prefix' => '_urfat',
|
||||
'name' => 'urfat',
|
||||
'user' => 'urfat',
|
||||
'pass' => 'urfat'])
|
||||
, "default");
|
||||
*/
|
||||
|
||||
/*
|
||||
* Mysql
|
||||
*
|
||||
* Connections::add_connection(Connection::open([
|
||||
'driver' => 'mysql',
|
||||
'host' => 'localhost',
|
||||
'prefix' => '_urfat',
|
||||
'name' => 'urfat',
|
||||
'user' => 'urfat',
|
||||
'pass' => 'urfat'])
|
||||
, "default");
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
* Sqlite
|
||||
*
|
||||
Connections::add_connection(Connection::open([
|
||||
'driver' => 'sqlite',
|
||||
'prefix' => '_urfat',
|
||||
'name' => 'database.db'])
|
||||
, "default");
|
||||
*/
|
||||
Executable
+8
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
define('APP_LANG', 'pt_br');
|
||||
|
||||
define('DIR_CONFIG', __DIR__.'/');
|
||||
define('DIR_ROOT', __DIR__.'/../');
|
||||
define('DIR_APPLICATION', DIR_ROOT . 'application/');
|
||||
define('DIR_MODULE', DIR_APPLICATION . 'module/');
|
||||
Reference in New Issue
Block a user