Skip to content

Commit 182fe4e

Browse files
authored
docs: Show how to use named databases (#932)
1 parent 383a500 commit 182fe4e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/index.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,18 @@ APIs and Services". From there, look for "Databases" in the Category filter.
7474
Make sure that both "Cloud Datastore API" and "Google Cloud Firestore API" are
7575
enabled.
7676

77+
Accessing a specific project, database, or namespace
78+
====================================================
79+
80+
A client can be bound to a chosen Google Cloud project, database, and/or namespace
81+
by passing one or more of these options to the client constructor::
82+
83+
client = ndb.Client(
84+
project="your-project-id",
85+
database="your-database-id",
86+
namespace="your-namespace"
87+
)
88+
7789
Defining Entities, Keys, and Properties
7890
=======================================
7991

0 commit comments

Comments
 (0)