Protected_Protected_Protected_Protected Static_StaticPKEY_The string identifier for primary keys, mapped to 'id' by default.
Protected_Resolves the canonical database path for a record, respecting standard collection structures and hierarchical subcollection configurations.
Optionaluid: stringProtected_Processes raw data entries to convert relational reference objects into native database foreign key IDs
if the adapter has been configured with useNativeForeignKeys = true.
Executes an aggregation operation (sum, avg, distinct, min, max, count) on a query. The default implementation fetches all matching records and performs in-memory aggregation. Specific database adapters should override this to perform native query aggregation.
The Query instance defining the collection and filters.
The aggregate operation.
Optionalproperty: stringThe name of the property to aggregate.
A promise resolving to the aggregated result.
Mocks the create database action, storing the item in the local fixture map.
Generates a random alphanumeric ID via faker.
The DataObject to save.
A promise resolving to the DataObject populated with the new URI.
Mocks the delete action by removing the key from the static fixture map.
The target DataObject.
A promise resolving to the cleared DataObject.
Mocks the deleteCollection action by looping through all fixtures and deleting matches.
The collection name prefix.
OptionalbatchSize: numberUnused in Mock adapter.
A promise resolving on completion.
Removes a middleware from the pipeline by its class name.
The exact name of the middleware class to remove.
Orchestrates the sequential execution of all attached middlewares for a given action.
The payload traversing the middlewares.
The context (READ, CREATE, UPDATE, DELETE).
Whether to run the before or after pipeline.
Optionalparams: MiddlewareParamsOptional parameters passed down to the middlewares.
A promise resolving to the potentially mutated DataObject.
Mocks the find action by executing manual object comparison over the local fixtures array.
The query context target.
Iterated list of filters.
Extracted sorting/limit conditions.
A promise resolving to the found items array and metadata.
Unsupported stub for creating tables.
Empty strings.
Unsupported stub for altering schemas.
Empty arrays.
Helper method to extract the destination collection name from a DataObject.
The DataObject evaluating the context.
The resolved collection string.
Retrieves a specific configuration parameter.
The parameter key to fetch.
The value associated with the key, or undefined.
Returns true if a given middleware is attached
boolean
Process Query instance and return result
Array
Executes a raw query on the backend. Only supported by SQL adapters.
Optionalparams: any[]Mocks the read action by looking up the URI in the local fixtures.
The unpopulated DataObject with a target URI.
A promise resolving to the hydrated DataObject.
Overrides or adds a backend configuration parameter dynamically.
The parameter key to modify.
The new value to assign.
Mocks the update action by merging the new state into the static fixture dictionary.
The mutated DataObject.
A promise resolving to the DataObject.
Staticdao2backendHelper translating DataObjects references to backend string URIs.
The Backend record footprint.
A promise resolving to the processed object.
StaticgetRetrieves a single fixture by its collection URI.
The URI key.
The raw object fixture.
StaticgetReturns the complete dictionary of injected fixtures.
The fixture store object.
StaticinjectInject fixtures data to backend adapter
BackendRecordType
In-memory mock adapter used strictly for testing and validation. Intercepts database calls and reads/writes to a static local fixture dictionary. Does not support SQL operations.