HomeDevCentral

New class in database library: EmptyDatabaseResult
8773313ab006Unpublished

Unpublished Commit · Learn More

Repository Importing: This repository is still importing.

Description

New class in database library: EmptyDatabaseResult

Represents an empty result for databases libraries not returning
an iterator on exec queries.

Invoke:
$result = new EmptyDatabaseResult();

$result->numRows() will always return 0.
$result->fetchRow() will always return null.
Iterator won't behave like an empty array.

Details

Provenance
derecksonAuthored on
Parents
rOBSIDIAN001c128f9bcf: Improve code comments
Branches
Unknown
Tags
Unknown