Stay organized with collections Save and categorize content based on your preferences.
Handle logic for Datastore API operations. Handles request logic for Datastore.
Creates requests to the Datastore endpoint. Designed to be inherited by the Datastore and Transaction classes.
Package@google-cloud/datastore Properties datastore Property Value Type Description Datastore id Property Value Type Description string | undefined requestCallbacks_requestCallbacks_: Array<(err: Error | null, resp: Entity | null) => void> | Entity;
Property Value Type Description Array<(err: Error | null, resp: Entity | null) => void> | Entity requests_
requests_: Entity | {
mutations: Array<{}>;
};
Property Value Type Description Entity | { mutations: Array<{}>; } Methods allocateIds(key, options)
allocateIds(key: entity.Key, options: AllocateIdsOptions | number): Promise<AllocateIdsResponse>;
Parameters Name Description key entity.Key
AllocateIdsOptions | number
allocateIds(key: entity.Key, options: AllocateIdsOptions | number, callback: AllocateIdsCallback): void;
Parameters Name Description key entity.Key
AllocateIdsOptions | number
AllocateIdsCallback
createReadStream(keys: Entities, options?: CreateReadStreamOptions): Transform;
Retrieve the entities as a readable object stream.
Parameters Name Description keysEntities
Datastore key object(s).
optionsCreateReadStreamOptions
Optional configuration. See for a complete list of options.
Returns Type Description Transform delete(keys, gaxOptions)delete(keys: Entities, gaxOptions?: CallOptions): Promise<DeleteResponse>;
Parameters Name Description keys Entities
CallOptions
delete(keys: Entities, callback: DeleteCallback): void;
Parameters Name Description keys Entities
DeleteCallback
delete(keys: Entities, gaxOptions: CallOptions, callback: DeleteCallback): void;
Parameters Name Description keys Entities
CallOptions
DeleteCallback
get(keys: entity.Key | entity.Key[], options?: CreateReadStreamOptions): Promise<GetResponse>;
Parameters Name Description keys entity.Key | entity.Key[]
CreateReadStreamOptions
get(keys: entity.Key | entity.Key[], callback: GetCallback): void;
Parameters Name Description keys entity.Key | entity.Key[]
GetCallback
get(keys: entity.Key | entity.Key[], options: CreateReadStreamOptions, callback: GetCallback): void;
Parameters Name Description keys entity.Key | entity.Key[]
CreateReadStreamOptions
GetCallback
merge(entities: Entities): Promise<CommitResponse>;
Parameter Name Description entities Entities
merge(entities: Entities, callback: SaveCallback): void;
Parameters Name Description entities Entities
SaveCallback
prepareGaxRequest_(config: RequestConfig, callback: Function): void;
Parameters Name Description config RequestConfig
Function
request_(config: RequestConfig, callback: RequestCallback): void;
Parameters Name Description config RequestConfig
RequestCallback
requestStream_(config: RequestConfig): AbortableDuplex;
Make a request as a stream.
Parameter Name Description configRequestConfig
Configuration object.
Returns Type Description AbortableDuplex runQuery(query, options)runQuery(query: Query, options?: RunQueryOptions): Promise<RunQueryResponse>;
Parameters Name Description query Query
RunQueryOptions
runQuery(query: Query, options: RunQueryOptions, callback: RunQueryCallback): void;
Parameters Name Description query Query
RunQueryOptions
RunQueryCallback
runQuery(query: Query, callback: RunQueryCallback): void;
Parameters Name Description query Query
RunQueryCallback
runQueryStream(query: Query, options?: RunQueryStreamOptions): Transform;
Get a list of entities as a readable object stream.
See for a list of all available options.
Parameters Name Description queryQuery
Query object.
optionsRunQueryStreamOptions
Optional configuration.
Returns Type Description TransformExcept as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4