-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcode.power
More file actions
83 lines (77 loc) · 2.3 KB
/
code.power
File metadata and controls
83 lines (77 loc) · 2.3 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/**
* Get the IDs affected by the most recent actions batch.
*
* This method returns the complete set of entity IDs affected by the most
* recent persistence operations, regardless of whether the underlying
* action was an INSERT, UPDATE, or a mixture of both.
*
* Behavioral notes:
* - IDs from INSERT and UPDATE operations are merged into a single set.
* - The internal ID buckets for both operations are reset immediately
* after retrieval to prevent cross-contamination between batches.
* - Duplicate IDs are removed while preserving their original order.
* - The returned IDs represent *all* entities affected during the
* most recent execution cycle.
*
* @return array<int|string> The affected entity IDs.
*
* @since 5.1.4
*/
public function ids(): array;
/**
* Set the current active table
*
* @param string $table The table that should be active
*
* @return self
* @since 3.2.2
*/
public function table(string $table): self;
/**
* Get list of items
*
* @param array $values The ids of the items
* @param string $key The key of the values
*
* @return array|null The item object or null
* @since 3.2.2
*/
public function get(array $values, string $key = 'guid'): ?array;
/**
* Get the values
*
* @param array $values The list of values (to search by).
* @param string $key The key on which the values being searched.
* @param string $get The key of the values we want back
*
* @return array|null The array of found values.
* @since 3.2.2
*/
public function values(array $values, string $key = 'guid', string $get = 'id'): ?array;
/**
* Set items
*
* @param array $items The list of items
* @param string $key The key on which the items should be set
*
* @return bool
* @since 3.2.2
*/
public function set(array $items, string $key = 'guid'): bool;
/**
* Delete items
*
* @param array $values The item key value
* @param string $key The item key
*
* @return bool
* @since 3.2.2
*/
public function delete(array $values, string $key = 'guid'): bool;
/**
* Get the current active table
*
* @return string
* @since 3.2.2
*/
public function getTable(): string;