1<?php
2require_once '../../MPLT.php';
3$timer = new MPLT();
4require_once '../../src/dalmp.php';
5# ------------------------------------------------------------------------------
6
7$user = getenv('MYSQL_USER') ?: 'root';
8$password = getenv('MYSQL_PASS') ?: '';
9$host = getenv('MYSQL_HOST') ?: '127.0.0.1';
10$port = getenv('MYSQL_PORT') ?: '3306';
11
12$db = new DALMP\Database("utf8://$user:$password@$host:$port/dalmp");
13$db->debug();
14
15$values = array(
16    array(1,2,3),
17    array(1,3),
18    array('date','select', 3),
19    array('niño','coraçao', 'Ú'),
20    array(null,5,7)
21);
22
23$rs = $db->multipleInsert('tests', array('col1', 'col2', 'col3'), $values);
24
25var_dump($rs);
26
27print_r($db->FetchMode('ASSOC')->GetALL('SELECT * FROM tests'));
28
29# ------------------------------------------------------------------------------
30echo PHP_EOL, str_repeat('-', 80),PHP_EOL,'Time: ',$timer->getPageLoadTime(),' - Memory: ',$timer->getMemoryUsage(1),PHP_EOL,str_repeat('-', 80),PHP_EOL;
31