16 require
'../../../_src/_config.php';
29 postgresqlQuery(
$cf[
'postgresql'][
'connection'],
"INSERT INTO test ( nome, timestamp ) VALUES ( '$nome', '$tempo' )" );
32 $tx =
'INSERT e SELECT standard (1 elemento): ' . PHP_EOL;
46 $tx .=
'INSERT e SELECT preparata (2 elementi): ' . PHP_EOL;
50 $tx .=
'SELECT in cache pre INSERT (2 elementi): ' . PHP_EOL;
51 $tx .= print_r(
postgresqlCachedQuery(
$cf[
'memcache'][
'connection'],
$cf[
'postgresql'][
'connection'],
'SELECT * FROM test',
false,
false ),
true );
64 $tx .=
'INSERT preparata per testare la cache' . PHP_EOL;
65 $tx .=
'SELECT in cache post INSERT (2 elementi invece di 3): ' . PHP_EOL;
69 $tx .=
'SELECT standard post INSERT (3 elementi): ' . PHP_EOL;
$cf['ricerca']['template']
postgresqlQuery( $c, $q, $p=false, &$e=array())
postgresqlCachedQuery( $m, $c, $q, $p=false, $t=MEMCACHE_DEFAULT_TTL, &$e=array())
postgresqlPreparedQuery( $c, $q, $p=array(), &$e=array())