Skip to content

Commit

Permalink
docs: Show how to use named databases
Browse files Browse the repository at this point in the history
  • Loading branch information
rwhogg committed Nov 24, 2023
1 parent 383a500 commit 5a9c0de
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/index.rst
Expand Up @@ -74,6 +74,18 @@ APIs and Services". From there, look for "Databases" in the Category filter.
Make sure that both "Cloud Datastore API" and "Google Cloud Firestore API" are
enabled.

Accessing a specific project, database, or namespace
====================================================

A client can be bound to a chosen Google Cloud project, database, and/or namespace
by passing one or more of these options to the client constructor::

client = ndb.Client(
project="your-project-id",
database="your-database-id",
namespace="your-namespace"
)

Defining Entities, Keys, and Properties
=======================================

Expand Down

0 comments on commit 5a9c0de

Please sign in to comment.