firestore.DatabaseBuilder class
Stay organized with collections
Save and categorize content based on your preferences.
Signature:
export declare class DatabaseBuilder
Constructors
Methods
firestore.DatabaseBuilder.(constructor)
Constructs a new instance of the DatabaseBuilder
class
Signature:
constructor(database: string, options: DeploymentOptions);
Parameters
firestore.DatabaseBuilder.document()
Signature:
document<Path extends string>(path: Path): DocumentBuilder<Path>;
Parameters
Parameter |
Type |
Description |
path |
Path |
|
Returns:
DocumentBuilder<Path>
firestore.DatabaseBuilder.namespace()
Signature:
namespace(namespace: string): NamespaceBuilder;
Parameters
Parameter |
Type |
Description |
namespace |
string |
|
Returns:
NamespaceBuilder
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 2023-04-24 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-04-24 UTC."],[],[],null,["# firestore.DatabaseBuilder class\n\n**Signature:** \n\n export declare class DatabaseBuilder \n\nConstructors\n------------\n\n| Constructor | Modifiers | Description |\n|---------------------------------------------------------------------------------------------------------------------------|-----------|----------------------------------------------------------|\n| [(constructor)(database, options)](./firebase-functions.firestore.databasebuilder.md#firestoredatabasebuilderconstructor) | | Constructs a new instance of the `DatabaseBuilder` class |\n\nMethods\n-------\n\n| Method | Modifiers | Description |\n|-------------------------------------------------------------------------------------------------------------|-----------|-------------|\n| [document(path)](./firebase-functions.firestore.databasebuilder.md#firestoredatabasebuilderdocument) | | |\n| [namespace(namespace)](./firebase-functions.firestore.databasebuilder.md#firestoredatabasebuildernamespace) | | |\n\nfirestore.DatabaseBuilder.(constructor)\n---------------------------------------\n\nConstructs a new instance of the `DatabaseBuilder` class\n\n**Signature:** \n\n constructor(database: string, options: DeploymentOptions);\n\n### Parameters\n\n| Parameter | Type | Description |\n|-----------|--------------------------------------------------------------------------------------------|-------------|\n| database | string | |\n| options | [DeploymentOptions](./firebase-functions.deploymentoptions.md#deploymentoptions_interface) | |\n\nfirestore.DatabaseBuilder.document()\n------------------------------------\n\n**Signature:** \n\n document\u003cPath extends string\u003e(path: Path): DocumentBuilder\u003cPath\u003e;\n\n### Parameters\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| path | Path | |\n\n**Returns:**\n\n[DocumentBuilder](./firebase-functions.firestore.documentbuilder.md#firestoredocumentbuilder_class)\\\u003cPath\\\u003e\n\nfirestore.DatabaseBuilder.namespace()\n-------------------------------------\n\n**Signature:** \n\n namespace(namespace: string): NamespaceBuilder;\n\n### Parameters\n\n| Parameter | Type | Description |\n|-----------|--------|-------------|\n| namespace | string | |\n\n**Returns:**\n\n[NamespaceBuilder](./firebase-functions.firestore.namespacebuilder.md#firestorenamespacebuilder_class)"]]