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