IFetchStrategy
interface IFetchStrategy (View source)
This interface defines the strategy for fetching data from a database.
Implementations of this interface should provide specific methods for retrieving data according to the defined strategy.
Methods
string
getResourceId(mixed $resource)
Gets a unique identifier for the given resource.
array
cacheResults(mixed $resource)
Caches the results from a statement for future use
void
handleFetchReset(mixed $resource)
Handles resetting the fetch position and caching results if not already cached
Details
string
getResourceId(mixed $resource)
Gets a unique identifier for the given resource.
array
cacheResults(mixed $resource)
Caches the results from a statement for future use
void
handleFetchReset(mixed $resource)
Handles resetting the fetch position and caching results if not already cached