An AggregateField is a class that contains data that defines an aggregation.
DatastoreIdiomatic class for interacting with Cloud Datastore. Uses the lower-level DatastoreClient class under the hood.
In addition to the constructor options shown here, the Datastore class constructor accepts the same options accepted by DatastoreClient.
The Datastore EmulatorMake sure you have the gcloud SDK installed, then run:
$ gcloud beta emulators datastore start --no-legacy
You will see the following printed:
\[datastore\] API endpoint: http://localhost:8005 \[datastore\] If you are using a library that supports the DATASTORE\_EMULATOR\_HOST environment variable, run: \[datastore\] \[datastore\] export DATASTORE\_EMULATOR\_HOST=localhost:8005 \[datastore\] \[datastore\] Dev App Server is now running.
Set that environment variable and your localhost Datastore will automatically be used. You can also pass this address in manually with apiEndpoint
.
Additionally, DATASTORE_PROJECT_ID
is recognized. If you have this set, you don't need to provide a projectId
.
See Cloud Datastore Concepts Overview
DatastoreAdminClientGoogle Cloud Datastore Admin API
The Datastore Admin API provides several admin services for Cloud Datastore.
Concepts: Project, namespace, kind, and entity as defined in the Google Cloud Datastore API.
Operation: An Operation represents work being performed in the background.
EntityFilter: Allows specifying a subset of entities in a project. This is specified as a combination of kinds and namespaces (either or both of which may be all).
Export/Import Service:
Index Service:
Operation Service:
Each RPC normalizes the partition IDs of the keys in its input entities, and always returns entities with keys with normalized partition IDs. This applies to all keys and entities, including those in values, except keys with both an empty path and an empty or unset partition ID. Normalization of input keys sets the project ID (if not already set) to the project ID from the request.
v1
DatastoreRequestHandle 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.
Index KeyBuild a Datastore Key object.
PropertyFilterA PropertyFilter is a filter that gets applied to a query directly.
QueryBuild a Query object.
**Queries are built with {module:datastore#createQuery} and .**
TransactionA transaction is a set of Datastore operations on one or more entities. Each transaction is guaranteed to be atomic, which means that transactions are never partially applied. Either all of the operations in the transaction are applied, or none of them are applied.
Interfaces BooleanObject DatastoreOptions EntityProtoReduceAccumulator EntityProtoReduceData ExportEntitiesConfig ImportEntitiesConfig KeyToLegacyUrlSafeCallback LongRunningCallback TransactionOptions Variables v1 Functions and(filters)export declare function and(filters: EntityFilter[]): CompositeFilter;
Parameter Name Description filters
EntityFilter[]
CompositeFilter
or(filters)
export declare function or(filters: EntityFilter[]): CompositeFilter;
Parameter Name Description filters
EntityFilter[]
CompositeFilter
Type Aliases Entity
export type Entity = any;
Fallback
export type Fallback = boolean | 'rest' | 'proto';
InsertCallback
export type InsertCallback = CommitCallback;
InsertResponse
export type InsertResponse = CommitResponse;
LongRunningResponse
export type LongRunningResponse = [Operation, google.longrunning.IOperation];
PathType
export type PathType = string | number | entity.Int;
UpdateCallback
export type UpdateCallback = CommitCallback;
UpdateResponse
export type UpdateResponse = CommitResponse;
UpsertCallback
export type UpsertCallback = CommitCallback;
UpsertResponse
export type UpsertResponse = CommitResponse;
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