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', -1, $db));
18 var_dump(dba_fetch('foo', -1, $db));
19 var_dump(dba_fetch('foo', -1, $db));
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'], -1, $db));
28 var_dump(dba_fetch(['foo', 'bar'], -1, $db));
29 var_dump(dba_fetch(['foo', 'bar'], -1, $db));
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', -1, $db));
38 var_dump(dba_fetch('[foo]bar', -1, $db));
39 var_dump(dba_fetch('[foo]bar', -1, $db));
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', 0, $db));
48 var_dump(dba_fetch('[foo]bar', 1, $db));
49 var_dump(dba_fetch('[foo]bar', 2, $db));
50 dba_close($db);