Version 1.0

This commit is contained in:
Artur Welp
2019-03-11 19:44:28 -03:00
parent d61f18b04d
commit 06b6875ca9
110 changed files with 31928 additions and 0 deletions
+15
View File
@@ -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");
+40
View File
@@ -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");
*/
+8
View File
@@ -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/');