-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcode.power
More file actions
83 lines (78 loc) · 3.23 KB
/
code.power
File metadata and controls
83 lines (78 loc) · 3.23 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 UPDATE batch.
*
* This method returns the ordered list of entity IDs that were affected
* by the last UPDATE operation or batch of UPDATE operations.
*
* Behavioral notes:
* - IDs are resolved deterministically (ID, GUID, or WHERE-clause fallback).
* - The order of IDs reflects the order in which they were resolved.
* - IDs may represent one or many rows, depending on the UPDATE scope.
* - When `$reset` is enabled, the internal update ID bucket is cleared
* after the values are retrieved.
*
* @param bool $reset Whether to reset the internal update ID bucket
* after retrieval.
*
* @return array<int|string> The affected entity IDs.
*
* @since 5.1.4
*/
public function updateids(bool $reset = false): array;
/**
* Update rows in the database (with remapping and filtering columns option)
*
* @param array $data Dataset to update in database [array of arrays (key => value)]
* @param string $key Dataset key column to use in updating the values in the Database
* @param string $table The table where the data is being updated
* @param array $columns Data columns for remapping and filtering
*
* @return bool
* @since 3.2.0
**/
public function rows(array $data, string $key, string $table, array $columns = []): bool;
/**
* Update items in the database (with remapping and filtering columns option)
*
* @param array $data Data to updated in database (array of objects)
* @param string $key Dataset key column to use in updating the values in the Database
* @param string $table The table where the data is being update
* @param array $columns Data columns for remapping and filtering
*
* @return bool
* @since 3.2.0
**/
public function items(array $data, string $key, string $table, array $columns = []): bool;
/**
* Update row in the database
*
* @param array $data Dataset to update in database (key => value)
* @param string $key Dataset key column to use in updating the values in the Database
* @param string $table The table where the data is being updated
*
* @return bool
* @since 3.2.0
**/
public function row(array $data, string $key, string $table): bool;
/**
* Update item in the database
*
* @param object $data Dataset to update in database (key => value)
* @param string $key Dataset key column to use in updating the values in the Database
* @param string $table The table where the data is being updated
*
* @return bool
* @since 3.2.0
**/
public function item(object $data, string $key, string $table): bool;
/**
* Update a single column value for all rows in the table
*
* @param mixed $value The value to assign to the column
* @param string $key Dataset key column to use in updating the values in the Database
* @param string $table The table where the update should be applied
*
* @return bool True on success, false on failure
* @since 5.1.1
*/
public function column(mixed $value, string $key, string $table): bool;