-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.phpstorm.meta.php
98 lines (86 loc) · 2.39 KB
/
.phpstorm.meta.php
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<?php
namespace PHPSTORM_META {
registerArgumentsSet(
'dromru_iterable_dbal_batch_size',
1_000,
5_000,
10_000,
50_000
);
registerArgumentsSet(
'dromru_iterable_dbal_connection_method',
[$connection, 'fetchFirstColumn'],
[$connection, 'fetchAllAssociative'],
[$connection, 'fetchAllAssociativeIndexed'],
[$connection, 'fetchAllKeyValue'],
[$connection, 'fetchAllNumeric']
);
expectedArguments(
\Drom\IterableUtils\Dbal\BatchedIdsQueryIterator::__construct(),
0,
argumentsSet('dromru_iterable_dbal_batch_size')
);
expectedArguments(
\Drom\IterableUtils\Dbal\BatchedIdsQueryIterator::__construct(),
1,
argumentsSet('dromru_iterable_dbal_connection_method')
);
expectedArguments(
\Drom\IterableUtils\Dbal\BatchedIdsQueryIterator::__construct(),
2,
<<<'SQL'
SELECT *
FROM table_name
WHERE id IN (:ids)
SQL
);
expectedArguments(
\Drom\IterableUtils\Dbal\BatchedIdsQueryIterator::__construct(),
3,
[
'ids' => $ids,
]
);
expectedArguments(
\Drom\IterableUtils\Dbal\BatchedIdsQueryIterator::__construct(),
4,
[
'ids' => \Doctrine\DBAL\Connection::PARAM_INT_ARRAY,
]
);
expectedArguments(
\Drom\IterableUtils\Dbal\BatchedMinMaxQueryIterator::__construct,
0,
argumentsSet('dromru_iterable_dbal_batch_size')
);
expectedArguments(
\Drom\IterableUtils\Dbal\BatchedMinMaxQueryIterator::__construct,
1,
argumentsSet('dromru_iterable_dbal_connection_method')
);
expectedArguments(
\Drom\IterableUtils\Dbal\BatchedMinMaxQueryIterator::__construct(),
2,
<<<'SQL'
SELECT *
FROM table_name
WHERE id BETWEEN :minId AND :maxId
SQL
);
expectedArguments(
\Drom\IterableUtils\Dbal\BatchedMinMaxQueryIterator::__construct(),
3,
[
'minId' => $minId,
'maxId' => $maxId,
]
);
expectedArguments(
\Drom\IterableUtils\Dbal\BatchedMinMaxQueryIterator::__construct(),
4,
[
'minId' => \Doctrine\DBAL\ParameterType::INTEGER,
'maxId' => \Doctrine\DBAL\ParameterType::INTEGER,
]
);
}