blob: f382f22912443655f86340891a490830498a0101 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
<?php
/**
* Isis db migration tool.
*/
// Import Malete Library.
require 'contrib/malete/php/Isis.php';
// Import Spyc.
include('contrib/spyc/spyc.php');
// Import Isis interface.
require 'interface.php';
// Autoloader.
function __autoload($class) {
require_once 'classes/' .$class. '.php';
}
// Test database connection.
$schema = Spyc::YAMLLoad('schemas/anu10.yaml');
$db = new MaleteDb($schema);
//$db = new PhpIsisDb($schema);
if ($db) {
$result = $db->read(1);
//$result = $db->rows();
echo '<pre>';
print_r($result);
echo '</pre>';
}
?>
|