Skip to main content

Home > git-documentdb > Validator > validateDbName

Validator.validateDbName() method#

Validate dbName

Signature:
validateDbName(dbName: string): void;

Parameters#

ParameterTypeDescription
dbNamestring
Returns:

void

Remarks#

- dbName allows Unicode characters except for OS reserved filenames and the following characters: \< \> : " ¥ / \\ | ? * \\0
- dbName cannot end with a period or a white space.
- dbName does not allow '.' and '..'.

Exceptions#

Err.InvalidDbNameCharacterError