Lines Matching refs:db
13 $db = dba_open($filename, 'n', 'inifile');
14 dba_insert('foo', 23, $db);
15 dba_insert('foo', 42, $db);
16 dba_insert('foo', 1337, $db);
17 var_dump(dba_fetch('foo', $db, -1));
18 var_dump(dba_fetch('foo', $db, -1));
19 var_dump(dba_fetch('foo', $db, -1));
20 dba_close($db);
23 $db = dba_open($filename, 'n', 'inifile');
24 dba_insert(['foo', 'bar'], 23, $db);
25 dba_insert(['foo', 'bar'], 42, $db);
26 dba_insert(['foo', 'bar'], 1337, $db);
27 var_dump(dba_fetch(['foo', 'bar'], $db, -1));
28 var_dump(dba_fetch(['foo', 'bar'], $db, -1));
29 var_dump(dba_fetch(['foo', 'bar'], $db, -1));
30 dba_close($db);
33 $db = dba_open($filename, 'n', 'inifile');
34 dba_insert('[foo]bar', 23, $db);
35 dba_insert('[foo]bar', 42, $db);
36 dba_insert('[foo]bar', 1337, $db);
37 var_dump(dba_fetch('[foo]bar', $db, -1));
38 var_dump(dba_fetch('[foo]bar', $db, -1));
39 var_dump(dba_fetch('[foo]bar', $db, -1));
40 dba_close($db);
43 $db = dba_open($filename, 'n', 'inifile');
44 dba_insert('[foo]bar', 23, $db);
45 dba_insert('[foo]bar', 42, $db);
46 dba_insert('[foo]bar', 1337, $db);
47 var_dump(dba_fetch('[foo]bar', $db, 0));
48 var_dump(dba_fetch('[foo]bar', $db, 1));
49 var_dump(dba_fetch('[foo]bar', $db, 2));
50 dba_close($db);