Skip to main content

Zymba Documentation

SQL.ResultSet

object @SQL.ResultSet(@Base) {
close() {}
countFields(): int {}
countRows(): int {}
exit() {}
fetch(bool $indexed): object {}
fetchAll(bool $indexed): object {}
fetchAllOfField(int $index): object {}
fetchTail(bool $indexed): object {}
fetchTailOfField(int $index): object {}
getFieldName(int $index): string {}
getFieldTable(int $index): string {}
getFieldType(int $index): int {}
getPosition(): int {}
hasMore(): bool {}
listFieldNames(): object {}
next(): object {}
reset(): $this {}
seek(int $position): $this {}
skip(int $offset): $this {}
}

Abstract SQL result set prototype.

Prototype

Base

Methods

Closes this result set and frees its associated resources.

$this.close(): void
$this.countFields(): int
Returns
TypeValue
int
$this.countRows(): int
Returns
TypeValue
int

Closes this result set and frees its associated resources for the purpose of contextualization.

$this.exit(): void
$this.fetch(bool $indexed): object
Parameters
NameTypeValueDefault
indexedboolfalse
Returns
TypeValue
object
null
$this.fetchAll(bool $indexed): object
Parameters
NameTypeValueDefault
indexedboolfalse
Returns
TypeValue
object[row, ...]
$this.fetchAllOfField(int $index): object
Parameters
NameTypeValueDefault
indexint0
Returns
TypeValue
object[value, ...]
$this.fetchTail(bool $indexed): object
Parameters
NameTypeValueDefault
indexedboolfalse
Returns
TypeValue
object[row, ...]
$this.fetchTailOfField(int $index): object
Parameters
NameTypeValueDefault
indexint0
Returns
TypeValue
object[value, ...]
$this.getFieldName(int $index): string
Parameters
NameTypeValueDefault
indexint0
Returns
TypeValue
string
$this.getFieldTable(int $index): string
Parameters
NameTypeValueDefault
indexint0
Returns
TypeValue
string
$this.getFieldType(int $index): int
Parameters
NameTypeValueDefault
indexint0
Returns
TypeValue
int
string
$this.getPosition(): int
Returns
TypeValue
int
$this.hasMore(): bool
Returns
TypeValue
bool
$this.listFieldNames(): object
Returns
TypeValue
object[field, ...]
$this.next(): object
Returns
TypeValue
object[position: row]
null
$this.reset(): this
Returns
TypeValue
$this
$this.seek(int $position): this
Parameters
NameTypeValueDefault
positionint0
Returns
TypeValue
$this
$this.skip(int $offset): this
Parameters
NameTypeValueDefault
offsetint1
Returns
TypeValue
$this