Skip to main content

Home > git-documentdb > DatabaseOpenResult

DatabaseOpenResult type#

Result of opening database

Signature:
export declare type DatabaseOpenResult = DatabaseInfo & {
isNew: boolean;
isCreatedByGitDDB: boolean;
isValidVersion: boolean;
};
References:

DatabaseInfo

Remarks#

  • isNew: Whether a repository is newly created or existing.

  • isCreatedByGitDDB: Whether a repository is created by GitDocumentDB or other means.

  • isValidVersion: Whether a repository version equals to the current databaseVersion of GitDocumentDB.