A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cloud.google.com/nodejs/docs/reference/datastore/6.4.8/datastore/datastorerequest.html below:

Class DatastoreRequest | Node.js client library

Skip to main content Class DatastoreRequest

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 Type Name Description entity.Key key AllocateIdsOptions | number options Returns Type Description Promise<AllocateIdsResponse> allocateIds(key, options, callback)
allocateIds(key: entity.Key, options: AllocateIdsOptions | number, callback: AllocateIdsCallback): void;
Parameters Type Name Description entity.Key key AllocateIdsOptions | number options AllocateIdsCallback callback Returns createReadStream(keys, options)
createReadStream(keys: Entities, options?: CreateReadStreamOptions): Transform;

Retrieve the entities as a readable object stream.

Parameters Type Name Description Entities keys

Datastore key object(s).

CreateReadStreamOptions options

Optional configuration. See for a complete list of options.

Returns Type Description Transform delete(keys, gaxOptions)
delete(keys: Entities, gaxOptions?: CallOptions): Promise<DeleteResponse>;
Parameters Type Name Description Entities keys CallOptions gaxOptions Returns Type Description Promise<DeleteResponse> delete(keys, callback)
delete(keys: Entities, callback: DeleteCallback): void;
Parameters Type Name Description Entities keys DeleteCallback callback Returns delete(keys, gaxOptions, callback)
delete(keys: Entities, gaxOptions: CallOptions, callback: DeleteCallback): void;
Parameters Type Name Description Entities keys CallOptions gaxOptions DeleteCallback callback Returns get(keys, options)
get(keys: entity.Key | entity.Key[], options?: CreateReadStreamOptions): Promise<GetResponse>;
Parameters Type Name Description entity.Key | entity.Key[] keys CreateReadStreamOptions options Returns Type Description Promise<GetResponse> get(keys, callback)
get(keys: entity.Key | entity.Key[], callback: GetCallback): void;
Parameters Type Name Description entity.Key | entity.Key[] keys GetCallback callback Returns get(keys, options, callback)
get(keys: entity.Key | entity.Key[], options: CreateReadStreamOptions, callback: GetCallback): void;
Parameters Type Name Description entity.Key | entity.Key[] keys CreateReadStreamOptions options GetCallback callback Returns merge(entities)
merge(entities: Entities): Promise<CommitResponse>;
Parameter Type Name Description Entities entities Returns Type Description Promise<CommitResponse> merge(entities, callback)
merge(entities: Entities, callback: SaveCallback): void;
Parameters Type Name Description Entities entities SaveCallback callback Returns prepareEntityObject_(obj)
static prepareEntityObject_(obj: Entity): PrepareEntityObjectResponse;

Format a user's input to mutation methods. This will create a deep clone of the input, as well as allow users to pass an object in the format of an entity.

Both of the following formats can be supplied supported:

datastore.save({ key: datastore.key('Kind'), data: { foo: 'bar' } }, (err) => {})

const entity = { foo: 'bar' } entity[datastore.KEY] = datastore.key('Kind') datastore.save(entity, (err) => {})

[#1803]https://github.com/GoogleCloudPlatform/google-cloud-node/issues/1803

Parameter Type Name Description Entity obj

The user's input object.

Returns Type Description PrepareEntityObjectResponse prepareGaxRequest_(config, callback)
prepareGaxRequest_(config: RequestConfig, callback: Function): void;
Parameters Type Name Description RequestConfig config Function callback Returns request_(config, callback)
request_(config: RequestConfig, callback: RequestCallback): void;
Parameters Type Name Description RequestConfig config RequestCallback callback Returns requestStream_(config)
requestStream_(config: RequestConfig): AbortableDuplex;

Make a request as a stream.

Parameter Type Name Description RequestConfig config

Configuration object.

Returns Type Description AbortableDuplex runQuery(query, options)
runQuery(query: Query, options?: RunQueryOptions): Promise<RunQueryResponse>;
Parameters Type Name Description Query query RunQueryOptions options Returns Type Description Promise<RunQueryResponse> runQuery(query, options, callback)
runQuery(query: Query, options: RunQueryOptions, callback: RunQueryCallback): void;
Parameters Type Name Description Query query RunQueryOptions options RunQueryCallback callback Returns runQuery(query, callback)
runQuery(query: Query, callback: RunQueryCallback): void;
Parameters Type Name Description Query query RunQueryCallback callback Returns runQueryStream(query, options)
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 Type Name Description Query query

Query object.

RunQueryStreamOptions options

Optional configuration.

Returns Type Description Transform

Except 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