zhamao-framework/docs/api/ZM/MySQL/MySQLStatementWrapper.md

292 lines
3.0 KiB
Markdown
Raw Normal View History

2022-03-27 16:42:36 +08:00
# ZM\MySQL\MySQLStatementWrapper
## getIterator
```php
public function getIterator(): ResultStatement
```
### 描述
获取结果的迭代器
wrapper method
### 返回
| 类型 | 描述 |
| ---- | ----------- |
| ResultStatement | |
## columnCount
```php
public function columnCount(): int
```
### 描述
获取列数
wrapper method
### 返回
| 类型 | 描述 |
| ---- | ----------- |
| int | |
## fetchNumeric
```php
public function fetchNumeric(): array|false|mixed
```
### 描述
wrapper method
### 返回
| 类型 | 描述 |
| ---- | ----------- |
| array|false|mixed | |
## fetchAssociative
```php
public function fetchAssociative(): array|false|mixed
```
### 描述
wrapper method
### 返回
| 类型 | 描述 |
| ---- | ----------- |
| array|false|mixed | |
## fetchOne
```php
public function fetchOne(): false|mixed
```
### 描述
wrapper method
### 返回
| 类型 | 描述 |
| ---- | ----------- |
| false|mixed | |
## fetchAllNumeric
```php
public function fetchAllNumeric(): array
```
### 描述
wrapper method
### 返回
| 类型 | 描述 |
| ---- | ----------- |
| array | |
## fetchAllAssociative
```php
public function fetchAllAssociative(): array
```
### 描述
wrapper method
### 返回
| 类型 | 描述 |
| ---- | ----------- |
| array | |
## fetchAllKeyValue
```php
public function fetchAllKeyValue(): array
```
### 描述
wrapper method
### 返回
| 类型 | 描述 |
| ---- | ----------- |
| array | |
## fetchAllAssociativeIndexed
```php
public function fetchAllAssociativeIndexed(): array
```
### 描述
wrapper method
### 返回
| 类型 | 描述 |
| ---- | ----------- |
| array | |
## fetchFirstColumn
```php
public function fetchFirstColumn(): array
```
### 描述
wrapper method
### 返回
| 类型 | 描述 |
| ---- | ----------- |
| array | |
## iterateNumeric
```php
public function iterateNumeric(): Traversable
```
### 描述
wrapper method
### 返回
| 类型 | 描述 |
| ---- | ----------- |
| Traversable | |
## iterateAssociative
```php
public function iterateAssociative(): Traversable
```
### 描述
wrapper method
### 返回
| 类型 | 描述 |
| ---- | ----------- |
| Traversable | |
## iterateKeyValue
```php
public function iterateKeyValue(): Traversable
```
### 描述
wrapper method
### 返回
| 类型 | 描述 |
| ---- | ----------- |
| Traversable | |
## iterateAssociativeIndexed
```php
public function iterateAssociativeIndexed(): Traversable
```
### 描述
wrapper method
### 返回
| 类型 | 描述 |
| ---- | ----------- |
| Traversable | |
## iterateColumn
```php
public function iterateColumn(): Traversable
```
### 描述
wrapper method
### 返回
| 类型 | 描述 |
| ---- | ----------- |
| Traversable | |
## rowCount
```php
public function rowCount(): int
```
### 描述
wrapper method
### 返回
| 类型 | 描述 |
| ---- | ----------- |
| int | |
## free
```php
public function free(): void
```
### 描述
wrapper method
### 返回
| 类型 | 描述 |
| ---- | ----------- |
| void | |