@@ -100,41 +100,27 @@ protected function processColumn(mixed $value): mixed
100
100
}
101
101
102
102
/**
103
- * Process the results of a columns query.
104
- *
105
103
* {@inheritDoc}
106
- * @param array<array-key, array<array-key, mixed>> $results
107
- * @return array<array-key, array{
108
- * name: string,
109
- * type_name: string,
110
- * type: string,
111
- * collation: null,
112
- * nullable: bool,
113
- * default: scalar,
114
- * auto_increment: false,
115
- * comment: null
116
- * }>
104
+ * @param list<array{COLUMN_NAME: string, SPANNER_TYPE: string, IS_NULLABLE: string, COLUMN_DEFAULT: mixed}> $results
117
105
*/
118
106
public function processColumns ($ results )
119
107
{
120
108
return array_map (static function (array $ result ) {
121
109
return [
122
110
'name ' => $ result ['COLUMN_NAME ' ],
123
- 'type_name ' => preg_replace ("/\([^)]+\)/ " , "" , $ result ['SPANNER_TYPE ' ]),
124
111
'type ' => $ result ['SPANNER_TYPE ' ],
125
- 'collation ' => null ,
112
+ 'type_name ' => ( string ) preg_replace ( " /\([^)]+\)/ " , "" , $ result [ ' SPANNER_TYPE ' ]) ,
126
113
'nullable ' => $ result ['IS_NULLABLE ' ] !== 'NO ' ,
127
114
'default ' => $ result ['COLUMN_DEFAULT ' ],
128
115
'auto_increment ' => false ,
116
+ 'generation ' => null ,
129
117
'comment ' => null ,
130
118
];
131
119
}, $ results );
132
120
}
133
121
134
122
/**
135
- * {@inheritDoc}
136
- * @param array{ index_name: string }&array<string, mixed> $results
137
- * @return array<array-key, string>
123
+ * @inheritDoc
138
124
*/
139
125
public function processIndexes ($ results )
140
126
{
@@ -144,9 +130,7 @@ public function processIndexes($results)
144
130
}
145
131
146
132
/**
147
- * {@inheritDoc}
148
- * @param array{key_name: string}&array<string, mixed> $results
149
- * @return array<array-key, string>
133
+ * @inheritDoc
150
134
*/
151
135
public function processForeignKeys ($ results )
152
136
{
0 commit comments