KumbiaPHP  beta2
Framework PHP
 Todo Estructuras de Datos Namespaces Archivos Funciones Variables Páginas
Namespaces | Constant Groups | Variables
Referencia del Archivo adapters.php

Ir al código fuente de este archivo.

Namespaces

 Test
 

Constant Groups

 Test
 

Variables

 $config = Config::read('databases')
 
 $user = "root"
 
 $password = "hea101"
 
if(isset($config->database->pdo)) else
 
 $dbname = "test"
 
 $db = new Db($host, $user, $password, $dbname)
 
$db debug = true
 
 $total_time = 0
 
 $test = true
 
 $test_name = "CREAR Y BORRAR UNA TABLA"
 
 $init_time = $start_benchmark = microtime(true)
 
 try
 
if(!$value1) $value2
 
 $start_benchmark = microtime(true)
 
if(!$value2) $value3 = $db->insert("kumbia_test", array("'Hello'", "'2005-02-04'"), array("texto", "fecha"))
 
if(count($value3)!=2) $value4 = $db->in_query_assoc("SELECT * FROM kumbia_test {$db->limit(1)}")
 
if(count($value4[0])!=3) $value5 = $db->in_query_num("SELECT * FROM kumbia_test {$db->limit(1)}")
 
if(count($value5[0])!=3) $value6 = $db->in_query("SELECT * FROM kumbia_test {$db->limit(1)}")
 
if(count($value6[0])!=6) if(!isset($config->
database->pdo)) 
$value8 = $db->fetch_array($value1)
 

Documentación de las variables

$config = Config::read('databases')

Definición en la línea 25 del archivo adapters.php.

$db = new Db($host, $user, $password, $dbname)

Definición en la línea 35 del archivo adapters.php.

$dbname = "test"

Definición en la línea 34 del archivo adapters.php.

$init_time = $start_benchmark = microtime(true)

Definición en la línea 44 del archivo adapters.php.

$password = "hea101"

Definición en la línea 28 del archivo adapters.php.

$start_benchmark = microtime(true)

Definición en la línea 88 del archivo adapters.php.

catch (Exception $e) if ($test) $test = true

Definición en la línea 42 del archivo adapters.php.

$test_name = "CREAR Y BORRAR UNA TABLA"

Definición en la línea 43 del archivo adapters.php.

$total_time = 0

Definición en la línea 40 del archivo adapters.php.

$user = "root"

Definición en la línea 27 del archivo adapters.php.

if (!$value1) $value2
Valor inicial:
= $db->create_table("test.kumbia_test", array(
"id" => array(
"type" => db::TYPE_INTEGER,
"not_null" => true,
"primary" => true,
"auto" => true
),
"texto" => array(
"type" => db::TYPE_VARCHAR,
"not_null" => true,
"size" => 40
),
"fecha" => array(
"type" => db::TYPE_DATE,
)
))

Definición en la línea 50 del archivo adapters.php.

if (!is_array($value2)) $value3 = $db->insert("kumbia_test", array("'Hello'", "'2005-02-04'"), array("texto", "fecha"))

Definición en la línea 98 del archivo adapters.php.

if (count($value3)!=2) $value4 = $db->in_query_assoc("SELECT * FROM kumbia_test {$db->limit(1)}")

Definición en la línea 192 del archivo adapters.php.

if (count($value4[0])!=3) $value5 = $db->in_query_num("SELECT * FROM kumbia_test {$db->limit(1)}")

Definición en la línea 196 del archivo adapters.php.

if (count($value5[0])!=3) $value6 = $db->in_query("SELECT * FROM kumbia_test {$db->limit(1)}")

Definición en la línea 200 del archivo adapters.php.

if (count($value6[0])!=6) if (!isset($config->database->pdo)) $value8 = $db->fetch_array($value1)

Definición en la línea 210 del archivo adapters.php.

$db debug = true

Definición en la línea 39 del archivo adapters.php.

if (isset($config->database->pdo)) else
Valor inicial:
{
$host = "localhost"

Definición en la línea 32 del archivo adapters.php.

try
Valor inicial:
{
$value1 = $db->drop_table("kumbia_test")

Definición en la línea 45 del archivo adapters.php.