FetchStrategy
class FetchStrategy implements IFetchStrategy (View source)
Traits
The GenericDatabase\Helpers\Types\Specials\Resources trait provides methods for working with resources.
Provides caching functionality for fetch operations, allowing results to be stored and retrieved efficiently. It maintains the state of cached results, their positions, and handles resetting fetch positions when necessary.
Methods
Gets a unique identifier for the given resource.
Caches the results from a statement for future use
Handles resetting the fetch position and caching results if not already cached
Caches the results from a statement for future use
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
string
cacheResource(mixed $resource)
Caches the results from a statement for future use