1: <?php
2: namespace Datadepo\Api\DataStores;
3: use Datadepo\Api\Structures;
4:
5: interface IDataStore
6: {
7:
8: /**
9: * @param \Datadepo\Api\IniConfiguration $configuration
10: * @return void
11: */
12: function setIniConfiguration(\Datadepo\Api\IniConfiguration $configuration);
13:
14: /**
15: * @return void
16: */
17: function connect();
18:
19: /**
20: * @param string $names,...
21: * @return array
22: */
23: function getConfig($names);
24:
25: /**
26: * @param string $name
27: * @param mixed $value
28: * @return void
29: */
30: function setConfig($name, $value);
31:
32: /**
33: * @param string $name
34: * @param array $codes
35: * @return array
36: */
37: function getChecksums($name, $codes);
38:
39:
40: /* Data lines insert / update */
41:
42: /**
43: * @return void
44: */
45: function startChunkProcess();
46:
47: /**
48: * @return void
49: */
50: function endChunkProcess();
51:
52: /**
53: * @param Structures\AbstractStructure $line
54: * @return void
55: */
56: function insertRow(Structures\AbstractStructure $line);
57:
58: /**
59: * @param Structures\AbstractStructure $line
60: * @return void
61: */
62: function updateRow(Structures\AbstractStructure $line);
63:
64: }