import { Datastore } from "https://deno.land/x/google_datastore@0.2.1/mod.ts";
An interface to Google Datastore. This is the main class users should use to connect to a Google Datastore instance.
Example
import { Datastore } from "https://deno.land/x/google_datastore/mod.ts";
import keys from "./service-account.json" assert { type: "json" };
const datastore = new Datastore(keys);
const result = await datastore.query({ kind: "book" });
Constructors
Properties
APIs related to managing operations (long running processes).
Methods
Allocates IDs for the given keys, which is useful for referencing an entity before it is inserted.
Commits a transaction, optionally creating, deleting or modifying some entities.
An async iterable that yields up each commit response for each batch of mutations being sent.
Looks up entities by key.
Run a query and convert the return entities to objects, resolving with an array containing all the results.
If an error occurs, the promise will be rejected with an instance of
DatastoreError
containing more information about the error.
Prevents the supplied keys' IDs from being auto-allocated by Cloud Datastore.
Queries for aggregations.
Perform a query and return the entities as a stream.