see on GitHub

Commands: How to get database configuration?

GetDatabaseConfiguration from admin database commands can be used to retrieve database configuration.

Syntax

RavenJObject getDatabaseConfiguration();

Return Value
RavenJObject Database configuration in JSON format

Example

RavenJObject configuration = store
	.getDatabaseCommands()
		.getAdmin()
		.getDatabaseConfiguration();